Cannot build Lineage OS 14.1 for moto g (FALCON) - LineageOS Questions & Answers

I'm trying to build Lineage OS 14.1 but I get this error :
Code:
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/mnt/volume-nyc1-01/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE falcon
build/core/java.mk:334: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/product/falcon/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/product/falcon/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/volume-nyc1-01/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jack', needed by '/mnt/volume-nyc1-01/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/with-local/classes.dex', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/volume-nyc1-01'
#### make failed to build some targets (02:09 (mm:ss)) ####
Is there a way to get arround this issue ?

Unfortunately, I am in no position to help.
But I'm also trying to build LOS14.1 (following wiki.lineageos.org/Build_for_falcon.html) and failing earlier than you since some blobs are missing, namely vendor/lib/libbccQTI.so and vendor/lib/libscale.so. They are not on my phone (currently running cm13). Do you know where to get those?
(Others have originally also not been fetched from my phone using device/motorola/falcon/extract-files.sh, but I modified msm8226-common/proprietary-files.txt to include those.)

brodekind said:
Unfortunately, I am in no position to help.
But I'm also trying to build LOS14.1 (following wiki.lineageos.org/Build_for_falcon.html) and failing earlier than you since some blobs are missing, namely vendor/lib/libbccQTI.so and vendor/lib/libscale.so. They are not on my phone (currently running cm13). Do you know where to get those?
(Others have originally also not been fetched from my phone using device/motorola/falcon/extract-files.sh, but I modified msm8226-common/proprietary-files.txt to include those.)
Click to expand...
Click to collapse
I'm getting the proprietary files from TheMuppets : github.com/TheMuppets/proprietary_vendor_motorola
Maybe it can help you. I still haven't been able to build falcon because of my error.

Thanks for your answer.
Couldn't get it to work with TheMuppets repo, though.
However, it seems to build now (currently at 50%). I installed the official nightly on my phone. Updated my repo (without muppets), used extract-files.sh to get the blobs (had to edit msm8226-common/proprietary-files.txt to include some more libraries) and followed the build guide, i.e. breakfast falcon, brunch falcon.
Just posting this so you know this error might have to do with your system setup.

Thanks @brodekind to let me know. I will retry with a new vps.

BruhToine said:
Thanks @brodekind to let me know. I will retry with a new vps.
Click to expand...
Click to collapse
Did you find any solution? I'm also getting the same error

Jerwinn7 said:
Did you find any solution? I'm also getting the same error
Click to expand...
Click to collapse
No sorry. I've redo the setup process but I still get same error.

If you use extract-files.sh, it accesses files in folders which require root permission. Make sure, that you allow root for USB debugging/ADB in the developer settings.

BruhToine said:
I'm trying to build Lineage OS 14.1 but I get this error :
Is there a way to get arround this issue ?
Click to expand...
Click to collapse
Was this error solved? Could you please assist?

Related

[DEV] Steam development

Steam development
Although I'm been in a long hiatus, thanks to hardcore there are still a few out there who use an UTLK based kernel. I hope Steam will be as succesfull as ULTK was.
To achieve this there were some developments in ULTK (now named Steam).
1. Steam is now one big file, containing multiple applications. This is mainly to minimize the amount of libc's on an initramfs (and this feat is actually achieved)
2. As steam is now one file there are no more bash scripts. Pre and post-init is now written in C, which has the added benefit of being able to use C libraries, like the (now multitouch capable) ui library of the recovery. Checking logs on what went wrong was never been easier.
3. init.rc and recovery.rc are now modified on-the-fly, possibly making the work to get Steam work on stock kernels easier
4. Steam uses config variables (just like properties on android) to communicate. There are already more uses of config variables inside the code than the gui actually allows one to use.
5. Localization strings are separated into separate files, to make translation easier (no accent support in the font however)
6. Device specific stuff are moved into separate files too.
7. There is now also an oem.c where one could add additional code that gets run, when steam is installed, upgraded or uninstalled. Currently the default config is to load up Afterburner after installation.
8. Afterburner is a simple application inside the recovery, which shows a list of installable elements, where the user can chose which ones to install. This is like
giving them a lot of update.zip's, only in one easy to use place.
9. All source files are now put inside into an organization on github. If you want to help me develop this project, please drop me a message, and I'll add you to the developer list.
10. (anything else I might have forgotten)
If you have any questions considering the development of Steam, plase drop a line. Thanks!
Compiler script, for Steam 2.9.9.0: Compiler Script
Compiler script for Steam 2.9.9.1 (and upward): Compiler Script
with this you can write:
Code:
TARGET_DEVICE=ns-on-sgs-i9000 ./install.sh
to compile for the gingerbread port instead of the default sgs one.
shouldn't line 74 be
Code:
cd ../ns-on-sgs-i9000
in the compiler for 2.9.9.1
thanks, is there any device-dependant or hardcoded code that we should modify to implement on different devices?
luismanson said:
thanks, is there any device-dependant or hardcoded code that we should modify to implement on different devices?
Click to expand...
Click to collapse
First you should set the correct vendor in Android/vendor directory. It's not really needed for Steam to work. but if you're doing some other Android compiling it's useful. The compiler script will run for the "galaxys" vendor, you have to change it too, if you have changed the vendor.
Apart from this a lot of device specific code is inside Android/bootable/steam/recovery/device/*
Check the current two device there. I don't yet have a script that will automate device building, so you have to modify the Android.mk there to actually use the new device.
mascool said:
shouldn't line 74 be
Code:
cd ../ns-on-sgs-i9000
in the compiler for 2.9.9.1
Click to expand...
Click to collapse
Oh, yeah, fixed.
any ideas here?
Code:
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
No private recovery resources for TARGET_DEVICE galaxys
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
cp out/target/product/galaxys/system/bin/steam /home/kernel/share/steam
cp out/target/product/galaxys/system/bin/steam /home/kernel/initramfs/out/sbin/steam
End of script
luismanson said:
any ideas here?
Code:
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
No private recovery resources for TARGET_DEVICE galaxys
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
cp out/target/product/galaxys/system/bin/steam /home/kernel/share/steam
cp out/target/product/galaxys/system/bin/steam /home/kernel/initramfs/out/sbin/steam
End of script
Click to expand...
Click to collapse
try compiling using the compiler script, that uses the choosecombo and make command. I use the Android base 2.2.1 for compilation. Somehow DES get's disabled in a config file, I don't which one that might be (hopefully it's not one of mine... )
i was doing it manually and now with your script, also got the sources again. yet i have the same problem
Code:
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/ncbc_enc.c:64,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c:61:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/ncbc_enc.c:64,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c:61:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_enc.o] Error 1
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cfb64enc.o] Error 1
[email protected]:~/android/i9000B/froyo/Android$
I have the same problem with android source code 2.2.1
when I change openssl to 2.3, i get the below error.
Code:
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/cversion.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:171:4: error: #error "Inconsistency between crypto.h and cryptlib.c"
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_get_new_lockid':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: 'app_locks' undeclared (first use in this function)
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: (Each undeclared identifier is reported only once
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: for each function it appears in.)
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_set_dynlock_lock_callback':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:404: warning: implicit declaration of function 'int_CRYPTO_set_do_dynlock_callback'
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_get_lock_name':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:423: error: 'app_locks' undeclared (first use in this function)
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/dyn_lck.o] Error 1
Hi,
I have found the problem...
in bootable/steam/crypto/android-config.mk, many things has been disabled.
Code:
LOCAL_CFLAGS += -DOPENSSL_NO_MD5 -DOPENSSL_NO_MD4 -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_DSA -DOPENSSL_NO_ECDSA \
-DOPENSSL_NO_MDC2 -DOPENSSL_NO_RIPEMD -DOPENSSL_NO_SHA256 -DOPENSSL_NO_SHA512 \
-DOPENSSL_NO_DES -DOPENSSL_NO_RC4 -DOPENSSL_NO_IDEA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC2 \
-DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_RC5 -DOPENSSL_NO_CAMELLIA
Hi bro sztupy,
If I delete those error detection in the SSL source code, is there any problem? for example
Code:
#ifdef OPENSSL_NO_DES
#error DES is disabled.
#endif
sorry for my lousy english.
why dont you try removing -DOPENSSL_NO_DES
luismanson said:
why dont you try removing -DOPENSSL_NO_DES
Click to expand...
Click to collapse
After removing -DOPENSSL_NO_DES, still have many errors.
after remove one by one, i found that the below option can be compile without error
Code:
LOCAL_CFLAGS += -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_ECDSA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_SHA256 -DOPENSSL_NO_SHA512 -DOPENSSL_NO_IDEA -DOPENSSL_NO_SEED -DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_RC5 -DOPENSSL_NO_CAMELLIA
thanks, i will use this option unless the OP says something before im @ home
Hi,
I am trying to translate steam recovery to chinese, but after compile, all of the chinese character cannot show(become blank) in steam recovery.
is there any way to display Unicode or add the character encoding?
I am newbie in C programming...

[Q] Problem compiling CM7 from source

Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
C4NCER said:
Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
Click to expand...
Click to collapse
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
nhnt11 said:
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
Click to expand...
Click to collapse
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
C4NCER said:
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
Click to expand...
Click to collapse
oh lol ok xD
Alternate fix for asm/errno.h: No such file or directory
Got the error building on ubuntu x86_64 11.04 (natty) while following docs at source.android.com/source/building.html
I fixed it by going into /usr/include/asm and symlinking everying from ../x86_64-linux-gnu/asm/ to the current directory.
# for f in `ls ../x86_64-linux-gnu/asm/*.h`; do echo "$f"; link=`basename "$f"`; ln -s "$f" $link; done
Click to expand...
Click to collapse
Don't do what is suggested above.
Correct thing to do is just make sure gcc-multilib is installed / up-to date
(I had the same issue with current Debian unstable)
If you really cannot install packages for whatever reason just make a symlink.

Xoom with ICS 4.0.3 AOSP how to

Now that the code is out, let's start hacking the Xoom.
These instructions are for Linux 64-bit Ubuntu 11.10 / Mint 12, with latest updates.
follow directions on source.android.com to set up your environment
then move to next page to set up the repo and download the code
make sure you use Sun/Oracle Java Development Kit 1.6.x. It WILL NOT work with OpenJDK, which comes with Ubuntu 11.10/Mint 12. (best is remove OpenJDK to avoid hard to track errors)
downloading the code takes ages (a good 2h even with a good connection) and requires at least 2GB of hard disk space. But for compilation, I'd recommend to have 20GB at least.
download proprietary drivers at: http://tinyurl.com/6rfu8rn
extract the drivers from Broadcom and NVidia, this will gives you 2 .sh files
just run these 2 .sh files and copy the created vendor/ directory into the root of your Google code repo.
There are 2 kinds of Xoom
Xoom Verizon LTE, codename stingray
Xoom wifi, codename wingray
Make some corrections in the code for GCC 4.6
external/mesa3d/src/glsl/linker.cpp: l.70 add: #include <cstddef>
To build the code:
. ./build/envsetup.sh
lunch full_stingray-userdebug or full_wingray-userdebug
make -j5
This can take 2h to compile on an average machine like my MacBook Pro with 8GB RAM (very important to have more than 4GB!!!), or even more. And having a quad-core machine (or even more cores), really saves you tons of time!
Once compilation is done, it's time to flash:
go to out/target/product/wingray (or stingray)
put your Xoom in fastboot mode: power off, then volume down + power on
fastboot erase cache
fastboot erase userdata
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot reboot
Note: you don't need to flash recovery.img, you should instead flash ClockworkMod recovery (http://download.clockworkmod.com/recoveries/recovery-clockwork-4.0.0.4-stingray.img)
And voila, you have a Xoom with WiFi working and all goodies from AOSP. This means no Google apps like Market...
To install Google Apps:
download this zip file [http://www.mediafire.com/?1l4ravroiwt4ybw[/url]
unzip it and go inside the folder
boot your device normally
rm system/app/Nfc*
adb push system /system
adb reboot
There are some errors with exchange service but Market, GMail, Maps work correctly. From there, go update your apps from Market
Enjoy!
Update 1: Android 4.0.1 issues back in 4.0.3?
Some people noted some compilation errors I didn't get on 4.0.3 but on 4.0.1. Here are solutions for 4.0.1 (emulator) that may work for you:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
How much space just to tinker with ICS/gingerbread?
I have a 1.5 mbps DSL connection and 200gb would take me 8 day/24 hour of downloading and I cant do that.
Kippui said:
How much space just to tinker with ICS/gingerbread?
I have a 1.5 mbps DSL connection and 200gb would take me 8 day/24 hour of downloading and I cant do that.
Click to expand...
Click to collapse
I do my building in a VM and the virtual disk image that has ubuntu and AOSP has grown to 45 GB after a compile.
Also, question for OP... why don't we see people using "make -j otapackage" to create CWM compatible ROMs? Just make sure it doesn't have a recovery in it (or it will torch your existing recovery). I torched my recovery the first time I did it, but I think I fixed it (haven't reflashed to find out).
It builds just fine with 3 GB of RAM in my VM here. Takes around 1 hour for me, with 6 CPU threads assigned to the VM, and using -j6. I just wish I could make sure it doesn't waste time compiling the various demos and tests.
I'm also using ccache to speed up (re)building. Google has instructions on how to set it up (it's really easy). Copied from their page (http://source.android.com/source/initializing.html):
You can optionally tell the build to use the ccache compilation tool. Ccache acts as a compiler cache that can be used to speed-up rebuilds. This works very well if you do "make clean" often, or if you frequently switch between different build products.
Put the following in your .bashrc or equivalent.
export USE_CCACHE=1
By default the cache will be stored in ~/.ccache. If your home directory is on NFS or some other non-local filesystem, you will want to specify the directory in your .bashrc as well.
export CCACHE_DIR=<path-to-your-cache-directory>
The suggested cache size is 50-100GB. You will need to run the following command once you have downloaded the source code.
prebuilt/linux-x86/ccache/ccache -M 50G
This setting is stored in the CCACHE_DIR and is persistent.
Click to expand...
Click to collapse
I have it set to only 10 GB here, but if you intend to do a lot of rebuilding, 20-40 GB might be a better idea.
The full AOSP tree + out directory takes 24G on my machine using du -sh.
The OTA package is 90MB, including the recovery, which you probably want to remove.
Indeed, I forgot to mention using USE_CCACHE, it really speeds up your builds. Make sure your cache dir is the top of your AOSP tree, it's even better.
Hi,
Huge thanks for those usefull instructions.
Just a hint for Gentoo builders (and maybe others distrib), if you're having this error after the "lunch" command :
Code:
AOSP> lunch full_wingray-userdebug
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
** Don't have a product spec for: 'full_wingray'
** Do you have the right repo manifest?
just export env ANDROID_JAVA_HOME with full jdk path :
Code:
export ANDROID_JAVA_HOME=/opt/sun-jdk-1.6.0.29/
winglord said:
There are 2 kinds of Xoom
Xoom Verizon LTE, codename stingray
Xoom wifi, codename wingray
Click to expand...
Click to collapse
There's three kinds of Xoom, the GSM MZ601 as well (Moto's codename everest). This is not supported by Google, but hopefully the hardware is close enough to stingray that the port shouldn't be overly difficult. At worst, the port to everest might have issues with vendor_ril?
please post your finished from.
Sent from my Full Android on Wingray using Tapatalk
Does someone know if there is a way to run builded images into the sdk emulator ?
Not sure what I am doing wrong:
Code:
/ICS_SOURCE# make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full_wingray
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IML74K
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE wingray
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_ast_replace.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_context.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs.o] Error 1
[email protected]:~/ICS_SOURCE#
Im using this guide as it has more details: http://www.freeyourandroid.com/guide/compile-ics
Any guidance someone could offer would be great.
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
aceman118 said:
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
Click to expand...
Click to collapse
Thanks, I am useing 11.10 so ill read through this and try again.
EDIT: got my first build completed! Thanks
you can use wingray or stingray on everest. Of course, if you use wingray on everest, you won't have phone app and other phone only features.
aceman118 said:
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
Click to expand...
Click to collapse
I'm using Ubuntu 11.10 64bit and GCC 4.6.
Keep in mind to add '#include <cstddef>' in headers where you have compile errors like indexOf() not found.
popokrew said:
Not sure what I am doing wrong:
Code:
/ICS_SOURCE# make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full_wingray
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IML74K
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE wingray
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_ast_replace.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_context.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs.o] Error 1
[email protected]:~/ICS_SOURCE#
Im using this guide as it has more details: http://www.freeyourandroid.com/guide/compile-ics
Any guidance someone could offer would be great.
Click to expand...
Click to collapse
You are not doing anything wrong, this is a GCC 4.6 restriction.
Weird I didn't see it with ics 4.0.3 but with 4.0.1 before.
Here is what you need to do for 4.0.1:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
winglord said:
You are not doing anything wrong, this is a GCC 4.6 restriction.
Weird I didn't see it with ics 4.0.3 but with 4.0.1 before.
Here is what you need to do for 4.0.1:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
Click to expand...
Click to collapse
winglord, I was able to get it to build with the guide aceman posted. I believe its because of the modified make: make CC=gcc-4.4 CXX=g++-4.4
Where would I find a log for the entire build? A lot of stuff scrolls by while building.
Now I just need to get the recovery image out (guessing just delete it out of the ota .zip?) and try it out. My Xoom isnt with me right now.
AlEsC said:
Does someone know if there is a way to run builded images into the sdk emulator ?
Click to expand...
Click to collapse
When running lunch you have to chose one of the emulator builds (full_eng if my memory's right). You can't run a build compiled for a specific device.
RMerlin said:
When running lunch you have to chose one of the emulator builds (full_eng if my memory's right). You can't run a build compiled for a specific device.
Click to expand...
Click to collapse
Thanks
This means I'll have to rebuild all !!
Another question, I've made a successfully build, then I've made some modification in the sources, so I've deleted all *.img thinking that "make" will rebuild them... but "make" only rebuild "system.img", "ramdisk.img" and "userdata.img".
Is there a "make boot" or something like that ? (real question is how do I rebuild my boot.img )
Thanks
winglord said:
I'm using Ubuntu 11.10 64bit and GCC 4.6.
Keep in mind to add '#include <cstddef>' in headers where you have compile errors like indexOf() not found.
Click to expand...
Click to collapse
I tried that and it didn't seem to work for me. Once I used GCC 4.4 it worked. I couldn't tell you why, though.
So I finally got a build up and running - is there something special that has to be done with the vendor binaries? I know I have seen this in other builds too but the kernel is still showing 2.x and the camera, mic and gps are not working. Is that because work needs to be done to the kernel before it is 100% with ICS? This is my first time messing with an android build so forgive me if this is a dumb question.
AlEsC said:
Thanks
This means I'll have to rebuild all !!
Another question, I've made a successfully build, then I've made some modification in the sources, so I've deleted all *.img thinking that "make" will rebuild them... but "make" only rebuild "system.img", "ramdisk.img" and "userdata.img".
Is there a "make boot" or something like that ? (real question is how do I rebuild my boot.img )
Thanks
Click to expand...
Click to collapse
Make is usually smart enough to know when something you changed will not result in a different output. It is possible that the changes you made would result in an identical boot.img, therefore it is not rebuilding it.

Error Compiling Android 7.0 (Nougat) for Galaxy Nexus Toro (Help Needed ASAP Please)

First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Please? Anyone?
nrichard7029 said:
Please? Anyone?
Click to expand...
Click to collapse
They're all busy trying to get it to compile themselves. Lots of stuff has changed with the build system in Nougat, it's going to take a bit to get everything sorted out. Keep an eye on https://github.com/OMAP4-AOSP for the most recent changes relevant for our devices.
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
Click to expand...
Click to collapse
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Click to expand...
Click to collapse
, I know this is quite late, but searching for the same error on google and found your thread:
Just go to file manager, click view, go on "Show Hidden Files", tick it, and open your .bashrc file. At the bottom of it, add "export USE_NINJA=false" . This should fix your error.
Think "tuna" - not "toro"
bablu048 said:
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
Click to expand...
Click to collapse
You may want to change your thinking to "tuna" (a unified build) - as opposed to "toro" (device-specific); this is especially true for 6.0 and later. In fact, I've seen fewer and fewer specific builds for tuna-family members (even the GSM-specific maguro, the most commonplace outside the US) - my usual N builds are from a maguro owner that is from (doun't laugh) Japan - we don't even have a language in common. (They don't speak CDMA in Japan - and the builder himself tests on maguro hardware. Me? I run on toro hardware and VZW MVNO Tracfone - no such thing as corndog sushi!
Found the issue - it's in ninja (called by brunch). Any idea if it's even fixable?

Help with compiling nitrogen os

EDIT: SEPTEMBER I managed to compile nitrogen p the 5t with gzosp.
I can't test it atm. Is anyone able to see if it boots.
https://drive.google.com/file/d/1iqX4HLfVPAIDDrIoSLcQefkXY_FRxGjQ/view?usp=sharing
Add these 2 lines in boardconfig.mk
SRC_DISPLAY_HAL_DIR := hardware/qcom/display-caf/msm8998
SRC_MEDIA_HAL_DIR := hardware/qcom/media-caf/msm8998
quake73 said:
Add these 2 lines in boardconfig.mk
SRC_DISPLAY_HAL_DIR := hardware/qcom/display-caf/msm8998
SRC_MEDIA_HAL_DIR := hardware/qcom/media-caf/msm8998
Click to expand...
Click to collapse
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
Code:
[email protected]:~/AOSP$ make clobber
19:35:42 Entire build directory removed.
#### build completed successfully ####
[email protected]:~/AOSP$ make otapackage -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=nitrogen_dumpling
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM5.171019.017
OUT_DIR=/home/jamie/AOSP/out
============================================
[44/44] bootstrap /home/jamie/AOSP/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/jamie/AOSP/out/soong/.boot.../AOSP/out/soong/.bootstrap/build.ninja
[859/860] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/jamie/AOSP/out/soong/.bo.../home/jamie/AOSP/out/soong/build.ninja
/home/jamie/AOSP/out/build-nitrogen_dumpling.ninja is missing, regenerating...
[471/986] including ./hardware/qcom/camera/Android.mk ...
build/core/binary.mk:40: warning: hal3-test-app uses kernel headers, but does not depend on them!
[659/986] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[986/986] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
PRODUCT_COPY_FILES device/oneplus/msm8998-common/configs/perfboostsconfig.xml:system/vendor/etc/perf/perfboostsconfig.xml ignored.
build/core/Makefile:53: warning: Duplicate header copy: /home/jamie/AOSP/out/target/product/dumpling/obj/include/qcom/display/qd_utils.h
build/core/Makefile:53: warning: Defined in: hardware/qcom/display-caf/msm8998/libqdutils/../common.mk hardware/qcom/display-caf/msm8998/libqdutils/../common.mk
No private recovery resources for TARGET_DEVICE dumpling
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/framework/dpm.jar'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/framework/dpm.jar'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/libmm-qcamera.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/libmm-qcamera.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/[email protected]'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/[email protected]'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libjni_pacprocessor.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libjni_pacprocessor.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_abr.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_abr.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_enc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_enc.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/[email protected]'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/[email protected]'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/hw/camera.msm8998.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/hw/camera.msm8998.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmcamera_interface.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmcamera_interface.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmjpeg_interface.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmjpeg_interface.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libqomx_core.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libqomx_core.so'
[ 90% 10/11] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/STATIC_LIBRARIES/libinit_oneplus_msm8998_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
19:46:17 ninja failed with: exit status 1
#### failed to build some targets (01:05 (mm:ss)) ####
I might just give up. Too hard for me. I need help for everything. I might just stick to lineage based ROMs with breakfast etc
Jamie_oppo said:
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
Code:
[ 90% 10/11] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/STATIC_LIBRARIES/libinit_oneplus_msm8998_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
19:46:17 ninja failed with: exit status 1
#### failed to build some targets (01:05 (mm:ss)) ####
Click to expand...
Click to collapse
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
quake73 said:
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
Click to expand...
Click to collapse
I think I messed with it and it wasn't working properly. Redownloaded it, now I got a different error. I look tomorrow. Looks like a vendor error.
Thanks again for the help
quake73 said:
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
Click to expand...
Click to collapse
yeah i resynced msmcommon 8998 . and i even tried swapping all these with lineage ones and still got sorta same errors
i think ive messed with too much stuff now
Code:
] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/SHARED_LIBRARIES/[email protected]_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/[email protected]_intermediates/import_includes', missing and no known rule to make it
17:21:38 ninja failed with: exit status 1
i might just give up. i really do think these fingerprint changes will fix it. Thats why i wanted to compile for myself but its was harder than i expected
Edit: I've given up sadly. I have no experience in code (learning at school now ) so I can't fix any errors
Thanks for the help @quake73
Hi, I'm also trying to get nitrogen working. I've made it further I think but I keep getting an error about libaudiopolicy and I can't fix it no matter what I do. I hope someone can help.
Thanks.
Code:
ninja: error: '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
22:34:18 ninja failed with: exit status 1
Chickenzzz29 said:
Hi, I'm also trying to get nitrogen working. I've made it further I think but I keep getting an error about libaudiopolicy and I can't fix it no matter what I do. I hope someone can help.
Thanks.
Code:
ninja: error: '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
22:34:18 ninja failed with: exit status 1
Click to expand...
Click to collapse
Modify this: USE_CUSTOM_AUDIO_POLICY := 0
in BoardConfigCommon.mk in device/oneplus/msm8998-common
Edit:
https://drive.google.com/file/d/1iqX4HLfVPAIDDrIoSLcQefkXY_FRxGjQ/view?usp=sharing
Edit:2 didn't boot

Categories

Resources