I am doing it according to the website.
https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-p-9-0-0
terminal picture
https://imgur.com/a/t08GNrC
[ 97% 86508/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 97% 86509/88632] //frameworks/base/libs/hwui:libhwui link libhwui.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
ninja: build stopped: subcommand failed.
20:00:42 ninja failed with: exit status 1
failed to build some targets (02:41:31 (hh:mm:ss))
Has anyone been able to figure this one out?
I even added "export LLVM_ENABLE_THREADS=1" to my .bashrc and nothing changed, still the same problem.
zagi988 said:
Has anyone been able to figure this one out?
I even added "export LLVM_ENABLE_THREADS=1" to my .bashrc and nothing changed, still the same problem.
Click to expand...
Click to collapse
Thanks, dude. "export LLVM_ENABLE_THREADS=1" works for me but not in the .bashrc
If it failed with same error, don't do anything and run "export LLVM_ENABLE_THREADS=1" then continue build the rom (type "make")
java.lang.OutOfMemory: Java heap space
I'm getting error while building Android 9
Exception in thread "main" Java.lang.OutOfMemory: Java heap space
ninja: build stopped: subcommand failed.
ninja failed with: exit status 1
Related
after i type make otapackage, after some time i get this error message and build stops. every time same error.
[ 69% 21776/31360] build out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c
FAILED: /bin/bash -c "external/iw/version.sh out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c"
fatal: No names found, cannot describe anything.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (05:33:08 (hh:mm:ss)) ####
Click to expand...
Click to collapse
can anyone help?
Are you trying to make AOSP otapackage
Ashwinrg said:
Are you trying to make AOSP otapackage
Click to expand...
Click to collapse
yeah, AOSP. any solution? i'm still struck
First of all, I didn't modified any file so it seems that it was already downloaded with syntax error. I followed the instructions from here and here when preparing the building environment. When I run make -j8 I got the error:
FAILED: out/target/common/obj/all-event-log-tags.txt
/bin/bash -c "build/tools/merge-event-log-tags.py -o out/target/common/obj/all-event-log-tags.txt frameworks/base/core/java/android/app/admin/SecurityLogTags.logtags frameworks/base/core/java/android/content/EventLogTags.logtags frameworks/base/core/java/android/net/EventLogTags.logtags frameworks/base/core/java/android/speech/tts/EventLogTags.logtags frameworks/base/core/java/android/webkit/EventLogTags.logtags frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/EventLogTags.logtags frameworks/base/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags frameworks/ex/common/java/com/android/common/GoogleLogTags.logtags frameworks/native/services/surfaceflinger/EventLog/EventLogTags.logtags frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags packages/apps/QuickSearchBox/src/com/android/quicksearchbox/EventLogTags.logtags packages/apps/Settings/src/com/android/settings/EventLogTags.logtags packages/providers/CalendarProvider/src/com/android/providers/calendar/EventLogTags.logtags packages/providers/ContactsProvider/src/com/android/providers/contacts/EventLogTags.logtags packages/services/Telephony/src/com/android/phone/EventLogTags.logtags system/bt/main/../EventLogTags.logtags system/core/liblog/event.logtags system/core/libsysutils/EventLogTags.logtags system/core/logcat/event.logtags system/core/logd/event.logtags"
File "build/tools/merge-event-log-tags.py", line 51
except getopt.GetoptError, err:
^
SyntaxError: invalid syntax
[ 0% 92/35341] host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
ninja: build stopped: subcommand failed.
16:27:01 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
#### make failed to build some targets (53 seconds) ####
Click to expand...
Click to collapse
In this merge-event-log-tags.py file, at line 51, it has:
try:
opts, args = getopt.getopt(sys.argv[1:], "ho:m:")
except getopt.GetoptError, err:
print str(err)
print __doc__
sys.exit(2)
Click to expand...
Click to collapse
Also, this is my first time posting here and also first time trying to build android so if you guys need more information to help troubleshoot this, please let me know
fabiotk said:
First of all, I didn't modified any file so it seems that it was already downloaded with syntax error. I followed the instructions from here and here when preparing the building environment. When I run make -j8 I got the error:
In this merge-event-log-tags.py file, at line 51, it has:
Also, this is my first time posting here and also first time trying to build android so if you guys need more information to help troubleshoot this, please let me know
Click to expand...
Click to collapse
I've got this same problem trying to build 8.1.0. Did you (or anyone else) ever figure this out?
http://dpaste.com/0C1QWKE
UnderSampled said:
I've got this same problem trying to build 8.1.0. Did you (or anyone else) ever figure this out?
http://dpaste.com/0C1QWKE
Click to expand...
Click to collapse
Hello, yes, I solved it by making Python2 the default version instead of python3
Code:
sudo ln -sf /usr/bin/python2 /usr/bin/python
when i am compiling the rom with ./build/envsetup.sh && brunch kenzo after some time i am facing this issue "ninja: build stopped: sub command failed.
18:40:10 soong failed with: exit status 1".
what is that?how to avoid it?
please check my attachment.Any kind of help will be highly appreciated.Thanks !!
This is the error when building RR oreo for ether (nextbit robin). I build a lot of ROM's for this device although this is the only one where I encounter this error. I don't see what is wrong since every other ROM is able to build with the same Audiopolicymanager.cpp.. Some help would be greatly appreciated
Code:
hardware/qcom/audio-caf/msm8994/policy_hal/AudioPolicyManager.cpp:2140:25: error: use of undeclared identifier 'AUDIO_CHANNEL_IN_5POINT1'; did you mean 'AUDIO_CHANNEL_OUT_5POINT1'?
if (AUDIO_CHANNEL_IN_5POINT1 == channelMask) {
^~~~~~~~~~~~~~~~~~~~~~~~
AUDIO_CHANNEL_OUT_5POINT1
system/media/audio/include/system/audio-base.h:187:5: note: 'AUDIO_CHANNEL_OUT_5POINT1' declared here
AUDIO_CHANNEL_OUT_5POINT1 = 63u, // (((((OUT_FRONT_LEFT | OUT_FRONT_RIGHT) | OUT_FRONT_CENTER) | OUT_LOW_FREQUENCY) | OUT_BACK_LEFT) | OUT_BACK_RIGHT)
^
5 warnings and 1 error generated.
[ 5% 4762/94543] target arm C++: liba...edia/libaudioprocessing/AudioMixer.cpp
ninja: build stopped: subcommand failed.
14:02:05 ninja failed with: exit status 1
#### failed to build some targets (19:36 (mm:ss)) ####
[email protected]:~/RR$
First of all, I know that there is modified OnePlus 3 device tree for Pixel Experience ROM already, but I would like to modify LineageOS device tree to gain experience.
Basically, I am using LOS device & kernel trees, TheMuppets vendor and packages_resources_OneplusGestures & device_oppo_common dependencies from PixelExperience repo.
My issue is that I can't find the reason why it throws this error while trying to build:
Code:
[ 0% 4/9421] Target buildinfo: /home/zlluvhaj/pe-pie/o...plus3/obj/ETC/system_build_prop_intermediates/build.prop
Target buildinfo from: device/oneplus/oneplus3/system.prop
[ 1% 103/9421] AAPT2 compile /home/zlluvhaj/pe-pie/out...ce/oppo/common/DeviceHandler/res/values/strings.xml.save
FAILED: /home/zlluvhaj/pe-pie/out/target/common/obj/APPS/DeviceHandler_intermediates/flat-res/device/oppo/common/D
eviceHandler/res/values_strings.xml.save.flat
/bin/bash -c "/home/zlluvhaj/pe-pie/out/host/linux-x86/bin/aapt2 compile -o /home/zlluvhaj/pe-pie/out/target/comm
on/obj/APPS/DeviceHandler_intermediates/flat-res/device/oppo/common/DeviceHandler/res/ --pseudo-localize --legacy d
evice/oppo/common/DeviceHandler/res/values/strings.xml.save"
error: invalid file path 'device/oppo/common/DeviceHandler/res/values/strings.xml.save'.
[ 1% 106/9421] build /home/zlluvhaj/pe-pie/out/target/...t_pub_versioned.cil_intermediates/plat_pub_versioned.cil
Parsing /home/zlluvhaj/pe-pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_poli
cy.cil
Parsing /home/zlluvhaj/pe-pie/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_poli
cy.cil
ninja: build stopped: subcommand failed.
22:44:03 ninja failed with: exit status 1
#### failed to build some targets (01:07 (mm:ss)) ####
I mostly followed ArrowOS compilation-guide, replacing arrow with aosp (unfortunately I can't post exact link).
//Edit: I got it fixed by removing device/oppo/common folder, adding more dependencies, resyncing the project and executing make clobber.