Need help building GSI

I got errors with repo init -u https://gitlab.e.foundation/e/os/releases.git -b refs/tags/v1-pie
Tried instead with ...-b refs/tags/v0.9.4-pie and the the repo sync is running. I’ll go and make my lunch while it completes :slight_smile:

1 Like

The buildbot_treble.sh script is running, and I’m seeing this message many times, but the script continues to run. Is this normal?

fatal: Resolve operation not in progress, we are not resuming.
error: no cherry-pick or revert in progress
fatal: revert failed
fatal: Resolve operation not in progress, we are not resuming.

Doesn’t look like good news!

That’s because “v1-pie” is a branch and not a tag so you have to remove the “refs/tags/”.

OK. I’ll carry on with the v0.9.4-pie tag for now and see what happens

Have you started with an empty source folder? Better you will make a complete fresh start

So rm -rf * in my working directory, then start from repo init…`?

Or will repo init.. and `repo sync… amount to the same thing?

best rm -rf (I do it with my file explorer :wink: )

Started again from scratch. Woking with -b v1-pie

Seeing lots of these messages

fatal: Resolve operation not in progress, we are not resuming.
error: no cherry-pick or revert in progress
fatal: revert failed

but the script continues to run. Is this normal?

As far as I remember (my last build is 2 month ago) Yes. There are some files which are patched in the los souces.

And after 34 minutes, the script fails…

Applying GSI-specific patches
Applying: Revert "Enable dyanmic image size for GSI"
[detached HEAD 527ef96] Revert "tinycompress: Use generated kernel headers"
 Date: Wed Aug 5 15:12:32 2020 +0000
 1 file changed, 1 insertion(+), 1 deletion(-)
fatal: previous rebase directory .git/rebase-apply still exists but mbox given.
rm: cannot remove 'vendor/qcom/opensource/cryptfs_hw': Is a directory
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

CHECK PATCH STATUS NOW!

Couldn't locate the top of the tree.  Try setting TOP.
build/envsetup.sh: line 645: vendor/lineage/build/tools/roomservice.py: No such file or directory
cat: /build/envsetup.sh: No such file or directory
cat: /vendor/lineage/build/envsetup.sh: No such file or directory
cat: /build/envsetup.sh: No such file or directory
cat: /vendor/lineage/build/envsetup.sh: No such file or directory
build/envsetup.sh: line 64: build/soong/soong_ui.bash: No such file or directory

** Don't have a product spec for: 'lineage_treble_a64_aeN'
** Do you have the right repo manifest?

build/envsetup.sh: line 1603: make: command not found

#### failed to build some targets  ####

mv: cannot stat 'system.img': No such file or directory
treble_build_los/buildbot_treble.sh: line 107: zip: command not found
treble_build_los/buildbot_treble.sh: line 123: cd: vendor/lineage: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
Buildbot completed in 34 minutes and 24 seconds

And that’s me done for today. The weather has improved so I’m off to do something outside. I’ll decide tomorrow whether to come back to this, or to build an up-to-date unofficial (non-GSI) ROM

there is something wrong with the sources.

Never seen such an error before :frowning:

I would prefer that you will run a ‘repo sync --force-sync’ direct from terminal.
You will get some sync errors. delete the folders and run sync once more.
If the sync finish successful run from root source folder
‘treble_build_los/buildbot_treble.sh’

That’s what I did. I ran the commands that are in your script manually in the terminal. In this case they were

repo init -u https://gitlab.e.foundation/e/os/releases.git -b v1-pie
git clone https://github.com/MyOxy/e_gsi_localmanifest .repo/local_manifest
repo sync -j4 --force-sync
nano treble_build_los/buildbot_treble.sh # to choose which variant to build
bash treble_build_los/buildbot_treble.sh

mhm, not really sure how I can help.
In .repo/local_manifests you have a ‘manifest.GSI.xml’, right ?
and in your source tree you have 3 special folders

  • treble_build_los
  • treble_experimentations
  • teble_patches
    in /vendor you have the folder
  • hardware_overlay
  • interfaces
  • vdnk
  • vdnk-test
    in /device you have the folder
  • phh

If yes, The buildbot should work. I can check it here, but that will need time, because I’m still on Q-GSI building

Don’t worry - I’ll try to figure it out. (It’s started raining again)
The script is failing to apply a patch in the vendor/lineage repo. My git knowledge is a bit old, but I’ll see if I can get past it
Thanks for your help

The problem is that some of the patches the script tries to apply are failing, leaving the tree in a strange state. The two patches in question are

# universal
cd vendor/lineage
git am $BL/patches/0001-vendor_lineage-Log-privapp-permissions-whitelist-vio.patch
    Applying: vendor_lineage: Log privapp-permissions whitelist violations instead
    error: config/common.mk: does not match index
    Patch failed at 0001 vendor_lineage: Log privapp-permissions whitelist violations instead

# GSI-specific
cd external/tinycompress
git revert fbe2bd5c3d670234c3c92f875986acc148e6d792 --no-edit # tinycompress: Use generated kernel headers
    [detached HEAD 520b51c] Revert "tinycompress: Use generated kernel headers"
     Date: Wed Aug 5 16:36:18 2020 +0000
     1 file changed, 1 insertion(+), 1 deletion(-)
    fatal: previous rebase directory .git/rebase-apply still exists but mbox given.
    rm: cannot remove 'vendor/qcom/opensource/cryptfs_hw': Is a directory
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I’ve deleted those two directories and run repo sync --force-sync again, with no errors.
Run buildbot_treble.sh again and get the same errors.

If I go into the vendor/lineage directory git status shows

HEAD detached at 91c0ae96
You are in the middle of an am session.
  (fix conflicts and then run "git am --continue")
  (use "git am --skip" to skip this patch)
  (use "git am --abort" to restore the original branch)

In external/tinycompress it shows

HEAD detached from fbe2bd5
nothing to commit, working tree clean

From what I can see, there is a mismatch between the version of buildbot_treble.sh and the current state of those two git repos. But I have no idea how to resolve it. So I’m going to give up on this for now. I think that building GSIs is a bit too ‘bleeding edge’ for me. I look forward to it becoming as straightforward as building custom ROMs using docker :wink:

Thanks again for your help

1 Like