A newbie who wants to build /e/ Pie, possible?

Okay thank you very much, now I know at 100% it will be me the issue at each failure.

Oh yes it would be nice, take the time you want I’m not in a rush.

Yep sorry about that :yum: I’m not a perfect student but I will definitely do this the next time I need to check if my build environment is ready.

Now that I know it’s not ready because it worked for you and not for me, I guess I don’t need to build for a supported Pie device anymore.

i have the openjdk-11-jre-headless:amd64 11.0.4+11-1~deb10u1 so i guess replacing 9 by 11 is working :smiley:

1 Like

apt list --installed :

openjdk-11-jdk-headless/focal,now 11.0.7+10-3ubuntu1 amd64
openjdk-11-jdk/focal,now 11.0.7+10-3ubuntu1 amd64
openjdk-11-jre-headless/focal,now 11.0.7+10-3ubuntu1 amd64
openjdk-11-jre/focal,now 11.0.7+10-3ubuntu1 amd64

java -version :

openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)

Thank you for the confirmation. But since that’s what I have too, it means the issue is somewhere else…

FAILED: /srv/src/PIE/out/target/common/obj/APPS/Gallery2_intermediates/classes-proguard.jar
It seems there is some error with the gallery, i had that once as well but can t remember the fix for it…
I guess the only thing i did different from you is the build script which i didn t update yet…

btw it is weird that your first build managed to get passed the point of the build error on the second build… did you change anything else then jdk version?

Indeed that’s an obvious thing I didn’t think of…

I don’t think I changed something… I will just retry and see if it fails at the same point or not :slight_smile:

1 Like

ICC (in french) bugs are the most fréquents causes of issues
CKI (in english) chair to keyboard interface…

2 Likes

New failure : https://del.dog/ePieBuildFail3

Recap :

Attempt 1 (without openjdk-11-jdk) :

[ 99% 69230/69566] Docs droiddoc: /srv/src/PIE/out/target/common/docs/api-stubs
javadoc: warning - The old Doclet and Taglet APIs in the packages
com.sun.javadoc, com.sun.tools.doclets and their implementations
are planned to be removed in a future JDK release. These
components have been superseded by the new APIs in jdk.javadoc.doclet.
Users are strongly recommended to migrate to the new APIs.
DroidDoc took 205 sec. to write docs to /srv/src/PIE/out/target/common/docs/api-stubs
ninja: build stopped: subcommand failed.
11:39:02 ninja failed with: exit status 1

Attempt 2 :

[ 98% 68860/69566] Target Java: /srv/src/PIE/out/target/common/obj/APPS/SystemUI_intermediates/classes-full-debug.jar
ninja: build stopped: subcommand failed.
01:58:23 ninja failed with: exit status 1

Attempt 3 :

[ 99% 68918/69566] target Dex: Telecom
ninja: build stopped: subcommand failed.
09:44:54 ninja failed with: exit status 1

So it always fails at different moments, and the best try was the first one without the needed openjdk :yum:

I prefer what @Chimpthepimp has written. First build a full supported device rom to ensure, our build environment is OK.

On friday I have made a complete new Linux install on my iMAC and what do I in the moment ? Building a standard rom :wink:

By the way, which Linux distro do you using ?
I have build on thursday on Ubuntu18.4. the build needs more than 8 hours
Today I’m building on Mint 19 and the build will need around 4 hours

1 Like

Yes that’s what I will do. I will start from scratch. I will delete my VM, create a new one with Ubuntu 18.04 instead of 20.04, install docker-ce from docker source instead of docker.io, install openjdk-11-jdk and start to build for Galaxy A7 (2017) or Galaxy A5 (2016) or Galaxy A5 (2017) (if supported by LineageOS) to test my build environment.

good choice, but as I have written, better using Mint19. It works perfect with docker and eOS

Ubuntu is sooooo overloaded :frowning:

2 Likes

it seems to be around the same point as the second build attempt… so i guess it is a similar error both times some java file…

FAILED: /srv/src/PIE/out/target/common/obj/APPS/SystemUI_intermediates/classes-full-debug.jar
[ 99% 68916/69566] Proguard: /srv/src/PIE/out/target/common/obj/APPS/Gallery2_intermediates/classes-proguard.jar

it has been years since i last used ubuntu but i remember leaving it because of all that overload stuff it comes with…

2 Likes

I think I’m cursed. Indeed it’s better with Linux Mint Xfce, much less freezes than with Ubuntu.

I installed it, I apt update apt upgrade, apt install openjdk-11-jdk, I installed the 5 packages listed in the installation page of Docker and I installed docker from docker source for Ubuntu 18.04 bionic (because Linux mint is based on Ubuntu 18.04 bionic). I created the needed folders.

I reboot. I run docker run hello-work and it works. Then I follow the instruction of the /e/ documentation (so without "-v “/srv/e/local_manifests:/srv/local_manifests:delegated” and without "-e “INCLUDE_PROPRIETARY=false” because I build for a5y17lte which is supported by LineageOS and /e/ and on Pie on both.

Guess what ? it failed at the beginning of the build process…
https://del.dog/a5y17lte-fail1-repo
https://del.dog/a5y17lte-fail1-build.txt

I really don’t know what I could do to make it works.
I will try again and see, that’s the only thing I can do.

Pls. …’’’ first build for official supported device !!

It’s officially supported by LineageOS and /e/, what’s wrong ?

1 Like

Oh, sorry, yes, just seen in log :sweat:

1 Like

please share your docker script :slight_smile:

I’m not sure if that’s what you want but here is exactly what I pasted in the terminal :

sudo docker pull registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community

sudo docker run -v "/srv/e/src:/srv/src" -v "/srv/e/zips:/srv/zips" -v "/srv/e/logs:/srv/logs" -v "/srv/e/ccache:/srv/ccache" -e "BRANCH_NAME=v1-pie" -e "DEVICE_LIST=a5y17lte" -e "OTA_URL=https://ota.ecloud.global/api" -e "REPO=https://gitlab.e.foundation/e/os/android.git" registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community

By the way, I also created the /srv/e/local_manifests directory and put the roomservice.xml file in it (for later). I don’t know if it could be a source of error. I thought it woudn’t be taken into consideration by docker.

It can cause issues while building.

And pls remove the the OTA line.