Hey guys, so I never built AOSP before and so I thought I would give it a try. kernel.org is still down so I used the alternative method here: Alternative Android Repo
So I downloaded the repo script:
Code:
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
Then I downloaded the Android source:
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
Once I had the source downloaded I went and found jdkoreclipse's How To Built AOSP guide. Combined with the official Source Building guide on the Android Source website, I was able to come up with somewhat of an instruction path to continue.
I read JDK's guide and skipped ahead to where I was in the process. Which is to setup the Vendor overlay. I used CM's Inc tree and did these commands:
Code:
mkdir inc
cd inc
git clone http://github.com/koush/android_device_htc_inc.git inc
Ok so after get clone I notice that in WORKING_DIRECTORY/device/htc/inc it had created a new inc directory. So I drug the new inc directory out to my desktop and then dragged the contents of it into the old WORKING_DIRECTORY/device/htc/inc directory.
Once that was complete I connected my phone and then did:
Code:
cd ~/WORKING_DIRECTORY/device/htc/inc
And then did:
Code:
./extract-files.sh
It runs and outputs stuff in Terminal:
Code:
[email protected]:~/WORKING_DIRECTORY/device/htc/inc$ ./extract-files.sh382 KB/s (34280 bytes in 0.087s)
68 KB/s (5412 bytes in 0.077s)
119 KB/s (9492 bytes in 0.077s)
173 KB/s (13724 bytes in 0.077s)
69 KB/s (5488 bytes in 0.077s)
123 KB/s (9808 bytes in 0.077s)
38 KB/s (3073 bytes in 0.077s)
9 KB/s (718 bytes in 0.077s)
2 KB/s (199 bytes in 0.077s)
1885 KB/s (3008536 bytes in 1.557s)
remote object '/system/etc/agps_rm' does not exist
remote object '/system/etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd' does not exist
1072 KB/s (173004 bytes in 0.157s)
1072 KB/s (173004 bytes in 0.157s)
remote object '/system/etc/firmware/Incredible_C_20100319_VZW_Neo_324016_v8_default.acdb' does not exist
979 KB/s (137833 bytes in 0.137s)
979 KB/s (137833 bytes in 0.137s)
978 KB/s (137833 bytes in 0.137s)
14 KB/s (1156 bytes in 0.076s)
116 KB/s (9220 bytes in 0.077s)
remote object '/system/etc/pvasflocal.cfg' does not exist
976 KB/s (79936 bytes in 0.079s)
1283 KB/s (163008 bytes in 0.124s)
1800 KB/s (1746672 bytes in 0.947s)
1137 KB/s (206768 bytes in 0.177s)
718 KB/s (86336 bytes in 0.117s)
610 KB/s (67168 bytes in 0.107s)
708 KB/s (85220 bytes in 0.117s)
remote object '/system/lib/libgps.so' does not exist
385 KB/s (34548 bytes in 0.087s)
117 KB/s (9328 bytes in 0.077s)
1587 KB/s (449872 bytes in 0.276s)
1756 KB/s (1398720 bytes in 0.777s)
remote object '/system/lib/libomx_wmadec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_wmvdec_sharedlibrary.so' does not exist
remote object '/system/lib/libpvasfcommon.so' does not exist
remote object '/system/lib/libpvasflocalpb.so' does not exist
remote object '/system/lib/libpvasflocalpbreg.so' does not exist
remote object '/system/lib/libspeech.so' does not exist
0 KB/s (32 bytes in 0.077s)
3 KB/s (245 bytes in 0.077s)
28 KB/s (2265 bytes in 0.077s)
[email protected]:~/WORKING_DIRECTORY/device/htc/inc$
I notice a bunch of 'does not exist' but I keep going anyway.
Once that was done I went to build the source:
Code:
cd WORKING_DIRECTORY
. build/envsetup.sh
It outputs:
Code:
including device/htc/inc/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
I do:
Code:
lunch full-eng
It outputs:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
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=GRJ90
============================================
I do:
Code:
make
And then it just errors out of control, lol:
Code:
[email protected]:~/WORKING_DIRECTORY$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=full
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=GRJ90
============================================
build/core/base_rules.mk:105: *** Module name: hostapd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hostapd_cli contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: nt_password_hash contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: hlr_auc_gw contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: Stk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app Stk at packages/apps/Stk - add your app to core.mk instead
build/core/base_rules.mk:105: *** Module name: ip contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libqsap_sdk contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libQWiFiSoftApCfg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: pvplayer contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_common contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_author contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_player contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_avcdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_m4vdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_aacdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/base_rules.mk:105: *** Module name: libomx_amrdec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_mp3dec_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libomx_amrenc_sharedlibrary contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_net_support contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_downloadreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_download contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtspreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_rtsp contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4localreg contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libopencore_mp4local contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libOmxCore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: libmm-omxcore contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: librefcne contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: cnd contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:105: *** Module name: QualcommSoftAP contains invalid LOCAL_MODULE_TAGS
build/core/base_rules.mk:146: user tag on app QualcommSoftAP at packages/apps/QualcommSoftAP - add your app to core.mk instead
host C: acp <= build/tools/acp/acp.c
In file included from /usr/include/features.h:388:0,
from /usr/include/stdlib.h:25,
from build/tools/acp/acp.c:11:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
[email protected]:~/WORKING_DIRECTORY$
I don't know whats going on but I know it can't be good, lol
I was hoping someone could give some pointers or incite on what I need to do or if I'm doing it wrong all together.
Thanks in advance.
When I first tried, I couldn't get JDK's guide to work either (I'm assuming you are using Ubuntu). I used the guide in Chef Central posted here. It seemed to work for me. I don't know if kernel.org being down would effect it or not, but I wouldn't think so. Good luck!
EDIT: There is a workaround at the top of the guide that has worked for some.
Codeaura isn't updated; they only had some devices, and the incredible wasn't one of them, when I checked a couple of weeks ago. I would try to rebuild and resync using this, see what errors you get, and then go from there.
http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/
Edit: this may or may not help you. I was building CM7, got a bunch of errors, switched repositories, and it worked. Granted, you're doing pure AOSP, but it's worth a shot to resync.
dmeadows013 said:
When I first tried
Click to expand...
Click to collapse
Thanks for the help.
Could I possibly get you to unquote me? That's a lot to scroll through on my phone.
PonsAsinorem said:
Codeaura isn't updated; they only had some devices, and the incredible wasn't one of them, when I checked a couple of weeks ago. I would try to rebuild and resync using this, see what errors you get, and then go from there.
http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/
Edit: this may or may not help you. I was building CM7, got a bunch of errors, switched repositories, and it worked. Granted, you're doing pure AOSP, but it's worth a shot to resync.
Click to expand...
Click to collapse
Thanks Pons. So is this possibley gonna get me up to 2.3.7 atleast?
Was kinda agitated when I synced for three days just to find out it was 2.3.5 on Aurora.
Edit: I think that's not what I'm looking for. I'm trying to stay away from as much CM business as possible.
There's got to be a way to get a 100% pure unmodded Android build for this Incredible.
My fault for starting out with porting. Should've started out on source.
wildstang83 said:
Thanks Pons. So is this possibley gonna get me up to 2.3.7 atleast?
Was kinda agitated when I synced for three days just to find out it was 2.3.5 on Aurora.
Edit: I think that's not what I'm looking for. I'm trying to stay away from as much CM business as possible.
There's got to be a way to get a 100% pure unmodded Android build for this Incredible.
My fault for starting out with porting. Should've started out on source.
Click to expand...
Click to collapse
Instead of using other's guides, I would try looking at the official documentation.
http://source.android.com/source/building.html
I'm away from my computer right now, and it's hard to flip between tapatalk and browsers and keep track of where I'm at, so I'm just trying to point you in the right direction.
Already been there. That's what I used to clean up jdk's instructions.
wildstang83 said:
Already been there. That's what I used to clean up jdk's instructions.
Click to expand...
Click to collapse
When I get home, I'll try to build and see what I come up with.
Cool, yea man if you know how to do it then I could use some help. I just don't want CM. Anything except CM.
wildstang83 said:
Thanks for the help.
Could I possibly get you to unquote me? That's a lot to scroll through on my phone.
Click to expand...
Click to collapse
Done lol
dmeadows013 said:
Done lol
Click to expand...
Click to collapse
Thank you so much.
Hi can anyone help me with this
http://jenkins3.legacyserver.in/job/nitrogen_Z00L/11/console
Related
two things:
1. recovery compiling
i am trying to compile the recovery binary for the recovery image. so i go to the root of the android source, which i downloaded with the instructions from here: http://source.android.com/download
when i run "make recovery" i get the following error:
Code:
[email protected]:/media/data/mydroid$ make recovery
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
make: *** No rule to make target `out/target/product/generic/obj/PACKAGING/ota_keys_inc_intermediates/keys.inc', needed by `out/target/product/generic/obj/EXECUTABLES/recovery_intermediates/install.o'. Stop.
having read somewhere about the recovery needing a compiled android first, i tried to run "make", which ran into the same error after about one hour of compiling (tons of other messages of course). any help is appreciated, i believe it is not a big problem...
2. c code cross compiling
i am trying to compile some (very basic) c code with the help of the cross compiler. the code contains the following includes:
Code:
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
the code compiles flawless with gcc, but when i try to compile it for android i get the following:
Code:
[email protected]:~/Desktop$ arm-eabi-gcc test.c -o armtest
test.sh.x.c:89:22: error: sys/stat.h: No such file or directory
test.sh.x.c:90:23: error: sys/types.h: No such file or directory
test.sh.x.c:92:19: error: errno.h: No such file or directory
test.sh.x.c:93:19: error: stdio.h: No such file or directory
test.sh.x.c:94:20: error: stdlib.h: No such file or directory
test.sh.x.c:95:20: error: string.h: No such file or directory
test.sh.x.c:96:18: error: time.h: No such file or directory
test.sh.x.c:97:20: error: unistd.h: No such file or directory
test.sh.x.c: In function 'key_with_file':
test.sh.x.c:159: error: array type has incomplete element type
test.sh.x.c:160: error: array type has incomplete element type
test.sh.x.c:166: warning: incompatible implicit declaration of built-in function 'memset'
test.sh.x.c: In function 'chkenv':
test.sh.x.c:211: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c:212: warning: assignment makes pointer from integer without a cast
test.sh.x.c:216: warning: incompatible implicit declaration of built-in function 'strlen'
test.sh.x.c:220: warning: incompatible implicit declaration of built-in function 'strdup'
test.sh.x.c:223: warning: incompatible implicit declaration of built-in function 'sscanf'
test.sh.x.c:235:24: error: sys/ptrace.h: No such file or directory
test.sh.x.c:237:22: error: sys/wait.h: No such file or directory
test.sh.x.c:238:19: error: fcntl.h: No such file or directory
test.sh.x.c:239:20: error: signal.h: No such file or directory
test.sh.x.c: In function 'untraceable':
test.sh.x.c:258: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c:261: error: 'O_RDWR' undeclared (first use in this function)
test.sh.x.c:261: error: (Each undeclared identifier is reported only once
test.sh.x.c:261: error: for each function it appears in.)
test.sh.x.c:261: error: 'O_EXCL' undeclared (first use in this function)
test.sh.x.c:262: error: 'errno' undeclared (first use in this function)
test.sh.x.c:262: error: 'EBUSY' undeclared (first use in this function)
test.sh.x.c:263: error: 'PTRACE_ATTACH' undeclared (first use in this function)
test.sh.x.c:265: error: 'SIGCONT' undeclared (first use in this function)
test.sh.x.c:268: error: 'SIGKILL' undeclared (first use in this function)
test.sh.x.c:270: warning: incompatible implicit declaration of built-in function '_exit'
test.sh.x.c:278: warning: incompatible implicit declaration of built-in function '_exit'
test.sh.x.c: In function 'xsh':
test.sh.x.c:291: error: 'time_t' undeclared (first use in this function)
test.sh.x.c:291: error: expected expression before ')' token
test.sh.x.c:292: error: expected expression before ')' token
test.sh.x.c:307: warning: incompatible implicit declaration of built-in function 'calloc'
test.sh.x.c:323: warning: incompatible implicit declaration of built-in function 'malloc'
test.sh.x.c:326: warning: incompatible implicit declaration of built-in function 'memset'
test.sh.x.c:327: warning: incompatible implicit declaration of built-in function 'memcpy'
test.sh.x.c:333: warning: incompatible implicit declaration of built-in function 'malloc'
test.sh.x.c:336: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c: In function 'main':
test.sh.x.c:370: warning: incompatible implicit declaration of built-in function 'fprintf'
test.sh.x.c:370: error: 'stderr' undeclared (first use in this function)
test.sh.x.c:371: error: 'errno' undeclared (first use in this function)
from my noob point of view that means the compiler cannot find the includes. so where can i find them (i asssume in the android source tree in bionic/libc/include/), and how do i get the compiler to find them? i tried "--sysroot=", but i am not sure what part of the path is expected exactly...
second problem is solved. fwiw this is the solution:
Code:
arm-eabi-gcc -o test test.c -Wl,-rpath-link=/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/,-dynamic-linker=/system/bin/linker -L/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/ /media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/crtbegin_dynamic.o -I/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/include -nostdlib -lc
where /media/data/mydroid is the directory in which i initialized the git. don't ask me what the options mean, i don't know exactly either.
problem1 still persists, so if anybody has any ideas...
solved. needed to download cupcake sources. thx amon ra.
kendong2 said:
solved. needed to download cupcake sources. thx amon ra.
Click to expand...
Click to collapse
Can you be a little more specific on how to fix the error? What detailed steps to take or do you just compile it with cupcake as my target device is an eclair build
make: *** No rule to make target `out/target/product/generic/obj/PACKAGING/ota_keys_inc_intermediates/keys.inc', needed by `out/target/product/generic/obj/EXECUTABLES/recovery_intermediates/install.o'. Stop
Can you detail what you are trying to do and how you are reaching this error?
Generally, from my experience, if you follow the detailed instructions from here:
http://source.android.com/source/download.html
The code compiles with no problems. Note that if you want eclair, initialize the repo using the command:
repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
Hello verybody i have a similar error when porting cwm for my pantech im-a650s. i've googled, i found nothing...Anyone can help me?
Code:
[email protected]:~/android/system$ sudo make -j4 recoveryImage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
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=GINGERBREAD
============================================
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
make: *** No rule to make target `recoveryImage'. Stop.
nguyenhonganh said:
Hello verybody i have a similar error when porting cwm for my pantech im-a650s. i've googled, i found nothing...Anyone can help me?
[email protected]:~/android/system$ sudo make -j4 recoveryImage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
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=GINGERBREAD
============================================
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
make: *** No rule to make target `recoveryImage'. Stop.
Click to expand...
Click to collapse
Please post a new thread in Android General for this.
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.
I have download the device,vendor,knernel and placeed the zip file and extracted file into the path:
the download path:
github find the armani-dev
and download the android_device_xiaomi_armani,proprietary_vendor_xiaomi,android_kernel_xiaomi_armani
device/xiaomi/armani.
kernel/xiaomi/armani.
vendor/xiaomi/armani
then run the command:brunch armani,and sent the error as bellow,please help me .
[email protected]:~/cm# brunch armani
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20151017-UNOFFICIAL-armani
TARGET_PRODUCT=cm_armani
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LMY48W
OUT_DIR=/root/cm/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20151017-UNOFFICIAL-armani
TARGET_PRODUCT=cm_armani
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LMY48W
OUT_DIR=/root/cm/out
============================================
find: `dummy': No such file or directory
find: `../../../../../../external/hamcrest/src': No such file or directory
find: `../../../../../../external/junit/src/org': No such file or directory
find: `../../../../../../external/hamcrest/src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:46: warning: overriding commands for target `/root/cm/out/target/product/armani/system/lib/libqminvapi.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/root/cm/out/target/product/armani/system/lib/libqminvapi.so'
No private recovery resources for TARGET_DEVICE armani
make -C kernel/xiaomi/armani O=/root/cm/out/target/product/armani/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_armani_defconfig
make[1]: Entering directory `/root/cm/kernel/xiaomi/armani'
Install: /root/cm/out/target/product/armani/root/file_contexts
make: *** No rule to make target `/root/cm/out/target/product/armani/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by `/root/cm/out/target/product/armani/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
GEN /root/cm/out/target/product/armani/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/root/cm/kernel/xiaomi/armani'
#### make failed to build some targets (03:10 (mm:ss)) ####
looks like some file are missing..
Do a
Code:
repo sync -f --force-sync
then
Code:
brunch armani
or take some help from here http://forum.xda-developers.com/general/help/asus-zenfone-6-a600cg-cyanogenmod-t3221750
neonkat said:
looks like some file are missing..
Do a
Code:
repo sync -f --force-sync
then
Code:
brunch armani
or take some help from here http://forum.xda-developers.com/general/help/asus-zenfone-6-a600cg-cyanogenmod-t3221750
Click to expand...
Click to collapse
thanks !
it has been solved!
but there are other issue as bellow:
make[5]: *** No rule to make target `/root/cm/kernel/xiaomi/armani/include/linux/netfilter/xt_CONNMARK.h', needed by `/root/cm/out/target/product/armani/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
jiang18109913 said:
thanks !
it has been solved!
but there are other issue as bellow:
make[5]: *** No rule to make target `/root/cm/kernel/xiaomi/armani/include/linux/netfilter/xt_CONNMARK.h', needed by `/root/cm/out/target/product/armani/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
Click to expand...
Click to collapse
Glad to know it helped
i will tell you a simple trick..just take first few part of your error..like from "make.....kernel/" which is common for other devices also and paste it in google search..you will surely get some help because you are not the only one to face that issue...
i am learning kernel part and hence don't have a lot of knowledge in rom building but you can post your errors here:-http://forum.xda-developers.com/showthread.php?t=2814763
someone will surely help you.
---------- Post added at 11:03 PM ---------- Previous post was at 10:22 PM ----------
tried to google..no fix..try to search for missing files on the github repository(i think i spelled it corect)..put them to appropriate place and again brunch..
*use the file search option on the repository to save time.
neonkat said:
Glad to know it helped
i will tell you a simple trick..just take first few part of your error..like from "make.....kernel/" which is common for other devices also and paste it in google search..you will surely get some help because you are not the only one to face that issue...
i am learning kernel part and hence don't have a lot of knowledge in rom building but you can post your errors here:-http://forum.xda-developers.com/showthread.php?t=2814763
someone will surely help you.
---------- Post added at 11:03 PM ---------- Previous post was at 10:22 PM ----------
tried to google..no fix..try to search for missing files on the github repository(i think i spelled it corect)..put them to appropriate place and again brunch..
*use the file search option on the repository to save time.
Click to expand...
Click to collapse
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
jiang18109913 said:
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
Click to expand...
Click to collapse
i tried searching for a fix but got nothing..i am not a rom expert as said before..please post your queries in the link provided in post #5.
there is a bunch of devs helping noobs.
jiang18109913 said:
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
Click to expand...
Click to collapse
don't go on posting eveywhere?...
here:-http://forum.xda-developers.com/oneplus-one/help/compilation-help-t2942448/post56922402
check the last post right there and try to follow..if more errors,tell me?.
neonkat said:
don't go on posting eveywhere...
here:-http://forum.xda-developers.com/oneplus-one/help/compilation-help-t2942448/post56922402
check the last post right there and try to follow..if more errors,tell me.
Click to expand...
Click to collapse
thank you! I have build the ROM.thank you very much again.
jiang18109913 said:
thank you! I have build the ROM.thank you very much again.
Click to expand...
Click to collapse
that's nice ?.
I'm trying to compile LineageOS 15 and am getting the following errors in the '' brunch cedric '' command. Does anyone know the solution?
[email protected]:~/android/system$ brunch cedric
including vendor/lineage/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
LINEAGE_VERSION=15.0-20171029-UNOFFICIAL-cedric
TARGET_PRODUCT=lineage_cedric
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-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=OPR6.170623.012
OUT_DIR=/home/cairo100/android/system/out
AUX_OS_VARIANT_LIST=
============================================
make: Entering directory '/home/cairo100/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_cedric
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-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=OPR6.170623.012
OUT_DIR=/home/cairo100/android/system/out
============================================
ninja: no work to do.
[1/2] glob vendor/*/*/Android.bp
ninja: no work to do.
./vendor/motorola/cedric/Android.mk was modified, regenerating...
[9/1039] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[136/1039] including ./device/motorola/cedric/Android.mk ...
ln: falhou ao criar link simbólico '/home/cairo100/android/system/out/target/product/cedric/system/bin/expat': Arquivo existe
[337/1039] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[369/1039] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[403/1039] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[441/1039] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `frameworks/opt/hardware/cmhw': No such file or directory
[575/1039] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[581/1039] including ./lineage-sdk/Android.mk ...
./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory
build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory
[752/1039] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:107: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1039/1039] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/cairo100/android/system/out/target/product/cedric/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE cedric
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
build/core/Makefile:34: warning: overriding commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/hw/camera.msm8937.so'
build/core/base_rules.mk:375: warning: ignoring old commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/hw/camera.msm8937.so'
build/core/Makefile:34: warning: overriding commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/libqsap_sdk.so'
build/core/base_rules.mk:375: warning: ignoring old commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/libqsap_sdk.so'
[ 50% 1/2] glob vendor/*/*/Android.bp
ninja: error: '/home/cairo100/android/system/out/target/product/cedric/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by '/home/cairo100/android/system/out/target/product/cedric/obj/SHARED_LIBRARIES/libreference-ril_intermediates/import_includes', missing and no known rule to make it
14:32:50 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/cairo100/android/system'
#### make failed to build some targets (01:57 (mm:ss)) ####
Click to expand...
Click to collapse
Missing dependences
You need to git clone them into your working folder
Google which repos you need
The output tells you what you are missing
you could also comment out
BOARD_PROVIDES_LIBRIL := true
from boardconfig.mk by putting a # in front of it so it becomes until you find out what is needed
#BOARD_PROVIDES_LIBRIL := true
don't know what files are needed to make that work but I think thats the line that that causes the error
and you are probably missing
qcom media-caf
qcom display-caf
qcom audio-caf
so git clone these repos for your board which is msm8937
Will this become available soon to download?
aaronboy205 said:
Will this become available soon to download?
Click to expand...
Click to collapse
I doubt it - from the problems the person is posting they haven't even reached the build stage so without being disrespectful they won't have the coding knowledge to fix errors
Best wait for the guys behind lineageos 14.1 - I'm sure they will build it once they have time
And anyway android 8.1 has been announced so there isn't much point until it's fully released & lineageos have updated all their sources
TheFixItMan said:
I doubt it - from the problems the person is posting they haven't even reached the build stage so without being disrespectful they won't have the coding knowledge to fix errors
Best wait for the guys behind lineageos 14.1 - I'm sure they will build it once they have time
And anyway android 8.1 has been announced so there isn't much point until it's fully released & lineageos have updated all their sources
Click to expand...
Click to collapse
There are few guides on the internet and translations often do not help. I was following a guide and in practice, I saw that it is not as simple as it seemed. As I had said, it was my first compilation and I had no experience. I'm going to start compiling roms nougats for anyone who knows how to be a future android oreo compiler for cedric
I am trying to build LineageOS15.1 android rom on my PC in Manjaro KDE x64. I have the aosp-devel and lineageos-devel metapackges installed from aur. I get build errors though. I believe it's because it needs Python2 not Python3, or possibly a different c++ compiler? I believe it's python though. I tried the fix [here](https://wiki.archlinux.org/index.php/Python#Dealing_with_version_problem_in_build_scripts) in the wiki but it doesn't seem to have worked(I have rebooted since then), but still, have issues. Here is the build error:
Code:
SyntaxError: invalid syntax
[ 0% 74/115817] logtags: /media/Wrestling/Android/lineage15.1/out/target/common...va <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
FAILED: /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java)
/bin/bash -c "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py) -o /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java) frameworks/base/services/core/java/com/android/server/EventLogTags.logtags /[media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt)"
File "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py)", line 39
except getopt.GetoptError, err:
^
SyntaxError: invalid syntax
[ 0% 80/115817] host C++: libadb <= system/core/adb/adb.cpp
ninja: build stopped: subcommand failed.
00:45:04 ninja failed with: exit status 1
#### failed to build some targets (19:54 (mm:ss)) ####
Ok I ended up using pyenv to force Python2 and it worked! New error so I am wondering if I am missing a dependency? https://pastebin.com/knp8D17B
Managed to fix that, new error:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.14.71-1-MANJARO-x86_64-with-glibc2.4
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM6.171019.030.K1
OUT_DIR=/home/xplorer4x4/EVERT-ROMS/lineage15.1
============================================
ninja: no work to do.
[1/1] /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/.bootstrap/bin/soong_build /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/build.ninja
/home/xplorer4x4/EVERT-ROMS/lineage15.1/build-aosp_arm.ninja is missing, regenerating...
[619/1077] including ./packages/apps/WallpaperPicker/Android.mk ...
/bin/bash: line 0: test: -gt: unary operator expected
[745/1077] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1065/1077] including ./vendor/lineage/bootanimation/Android.mk ...
./vendor/lineage/bootanimation/Android.mk:19: warning: TARGET_SCREEN_WIDTH is not set, using default value: 1080
./vendor/lineage/bootanimation/Android.mk:23: warning: TARGET_SCREEN_HEIGHT is not set, using default value: 1920
[1077/1077] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu:root/fstab.ranchu ignored.
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu.early:root/fstab.ranchu.early ignored.
ninja: error: '/.txt', needed by '/home/xplorer4x4/EVERT-ROMS/lineage15.1/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
22:34:50 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
➜ lineage15.1 git:(master) ✗