Hi all,
I’m trying to build /e/ OS with android pie and m8 device.
My computer work on debian buster 10.
i have compiled /e/ OS with docker and the following command.
sudo docker pull registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
sudo docker run \
-v "/srv/e/src:/srv/src:delegated" \
-v "/srv/e/zips:/srv/zips:delegated" \
-v "/srv/e/logs:/srv/logs:delegated" \
-v "/srv/e/ccache:/srv/ccache:delegated" \
-e "BRANCH_NAME=v1-pie" \
-e "DEVICE_LIST=m8" \
-e "CUSTOM_PACKAGES='MuPDF GmsCore GsfProxy FakeStore BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain Message Browser BrowserWebView Apps LibreOfficeViewer'" \
-e "SIGNATURE_SPOOFING=restricted" \
-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:latest
I have already installed openjdk-11-jdk rather than openjdk-9-jdk because this package is not available on debian repo.
Issue :
[ 96% 68613/71218] Copy: /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/classes-header.jar
[ 96% 68614/71218] //prebuilts/sdk/current/support:android-support-viewpager turbine
[ 96% 68615/71218] //prebuilts/sdk/current/support:android-support-viewpager for turbine
[ 96% 68616/71218] Hidden API: /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
FAILED: /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
/bin/bash -c "(rm -f /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp \"/srv/src/PIE/out/soong/.intermediates/frameworks/base/test-base/android.test.bas$
xargs: /srv/src/PIE/out/host/linux-x86/bin/hiddenapi: terminated by signal 4
[ 96% 68617/71218] //prebuilts/sdk/current/support:android-support-viewpager javac
[ 96% 68618/71218] //prebuilts/sdk/current/support:android-support-core-ui javac
[ 96% 68619/71218] target Strip (mini debug info): libpac (/srv/src/PIE/out/target/product/m8/obj/SHARED_LIBRARIES/libpac_intermediates/libpac.so)
[ 96% 68620/71218] //art/runtime:libart link libart.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 68621/71218] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
ninja: build stopped: subcommand failed.
10:04:49 ninja failed with: exit status 1
#### failed to build some targets (43:27 (mm:ss)) ####
>> [Wed Oct 30 10:04:50 UTC 2019] Failed build for m8
>> [Wed Oct 30 10:04:50 UTC 2019] Finishing build for m8
>> [Wed Oct 30 10:04:50 UTC 2019] Cleaning source dir for device m8
10:06:10 Entire build directory removed.
#### build completed successfully (01:20 (mm:ss)) ####
Thanks for your reply.
It seems to be because i use an old Amd CPU, … Amd phenom II 4 core
If you know what the issue is, so why asking on all channels ??
Because i don’t know how to fix the issue.
I have tried to compile on my laptop with an i5, i have this error.
FAILED: /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar
My full log :
[ 99% 69615/69635] Copy: /srv/src/PIE/out/target/product/m8/system/framework/oat/arm/wifi-service.vdex
[ 99% 69616/69635] Install: /srv/src/PIE/out/target/product/m8/system/framework/wifi-service.jar
[ 99% 69617/69635] Copy: /srv/src/PIE/out/target/product/m8/system/framework/wifi-service.jar.prof
[ 99% 69618/69635] Target Java: /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar
FAILED: /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar
/bin/bash -c "(rm -f /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar ) && (rm -rf /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/anno ) && (mkdir -p /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/ ) && (mkdir -p /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/anno ) && (/srv/src/PIE/out/soong/host/linux-x86/bin/zipsync -d /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/srcjars -l /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/srcjar-list -f \"*.java\" /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/aapt2.srcjar ) && (if [ -s /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/java-source-list -o -s /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/srcjar-list ] ; then /srv/src/PIE/out/soong/host/linux-x86/bin/soong_javac_wrapper prebuilts/jdk/jdk9/linux-x86/bin/javac -Xmaxerrs 9999999 -encoding UTF-8 -sourcepath \"\" -g -XDskipDuplicateBridges=true -XDstringConcat=inline -encoding UTF-8 -bootclasspath /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar -classpath /srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-auto-value-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-commons-io-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-dagger2-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-disklrucache-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-gifdecoder-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-glide-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-all-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-context-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-core-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-okhttp-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-protobuf-lite-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-grpc-stub-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-javax-annotation-api-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-javax-inject-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-libshortcutbadger-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-mime4j-core-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-mime4j-dom-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-error-prone-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-guava-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-glide-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-glide-annotation-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/dialer-zxing-target_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/jsr305_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/libbackup_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/libphonenumber_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/volley_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform.internal_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-lite_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-dynamic-animation_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-core-ui_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-design_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-transition_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-v4_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-appcompat_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-cardview_intermediates/classes-header.jar:/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-recyclerview_intermediates/classes-header.jar -d /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes -s /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/anno -source 1.8 -target 1.8 -g:source,lines -processorpath /srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-auto-value_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-javapoet_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-dagger2_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-dagger2-compiler_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-dagger2-producers_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-glide-annotation_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-glide-compiler_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-guava_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-javax-annotation-api_intermediates/classes.jar:/srv/src/PIE/out/host/common/obj/JAVA_LIBRARIES/dialer-javax-inject_intermediates/classes.jar -processor com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor,com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor \\@/srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/java-source-list \\@/srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/srcjar-list || ( rm -rf /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes ; exit 41 ) fi ) && (prebuilts/jdk/jdk9/linux-x86/bin/jar -cf /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar @<(find /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes -type f | sort | build/soong/scripts/jar-args.sh /srv/src/PIE/out/target/common/obj/APPS/Dialer_intermediates/classes; echo \"-C /srv/src/PIE/out/empty .\") )"
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
[ 99% 69619/69635] Proguard: /srv/src/PIE/out/target/common/obj/APPS/Settings_intermediates/classes-proguard.jar
ProGuard, version 5.1
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes-header.jar]
Reading system jar [/srv/src/PIE/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-header.jar]
Reading program jar [/srv/src/PIE/out/target/common/obj/APPS/Settings_intermediates/classes.jar]
Preparing output jar [/srv/src/PIE/out/target/common/obj/APPS/Settings_intermediates/classes-proguard.jar]
Copying resources from program jar [/srv/src/PIE/out/target/common/obj/APPS/Settings_intermediates/classes.jar]
ninja: build stopped: subcommand failed.
23:14:56 ninja failed with: exit status 1
#### failed to build some targets (10:22:01 (hh:mm:ss)) ####
>> [Fri Nov 1 23:14:59 UTC 2019] Failed build for m8
>> [Fri Nov 1 23:14:59 UTC 2019] Finishing build for m8
>> [Fri Nov 1 23:14:59 UTC 2019] Cleaning source dir for device m8
23:29:14 Entire build directory removed.
#### build completed successfully (14:15 (mm:ss)) ####
Thanks
Manoj
November 2, 2019, 8:57am
6
What are the specs of the PC / Laptop on which you are building?
Here you have written the answer of your question.
So, what shall we do, when your PC doesn’t fit ??
archie
November 2, 2019, 10:41am
8
If the hardware requirements at home do not fit, maybe rent computing power:
» [HOWTO] Building unofficial /e/ rom on a cloud VM - various options
1 Like
I have told him several times to contact Unknown Anonymus. He has build 270 e-rom with a rental server.
1 Like
mash
November 2, 2019, 12:44pm
10
you could use the free GitLab CI services to build your image.
it should allow repositories (huge blobs etc. better handled by Git LFS) resp. generated artifacts of up to 10GB size and the available computing time per compile pipeline can be manually increased in the settings if needed (default 1h). on the cloud hosted runners you will get 2000 min compilation time per month for free.
that’s right and we have told him, but it’s something “HE” can do not we