Building CM: Error 126 --- Solved - Motorola Atrix HD

Building my first ROM here using CM-11 unofficial.
I will say wow what it takes to build with moving PATH, locating .adb, using a 32bit verse 64bit system.
Well I finally got
Code:
brunch
to run (Thank goodness). The build runs for a while and Errors out at
Code:
make: *** [/home/johninlex/android/system/out/target/product/moto_msm8960/obj/lib/crtbegin_static1.o] Error 126
make: *** Waiting for unfinished jobs....
make: *** [/home/johninlex/android/system/out/target/product/moto_msm8960/obj/lib/crtbrand.s] Error 126
I have done a little research and I have found it is with building on Windows, Which I am not using. What I did find was another command to build with which is
Code:
make -j 1 CONFIG=debug
Then I only recieved one Error 126 Which is the follow
Code:
make: *** [/home/johninlex/android/system/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 126
Did I miss a step somewhere? Please let me know. I would love to figure this all out.
Well after I build my first ROM. How to I add animated boots, different wallpapers, and different apps.
Thank you for the help that each of you give I will hit the thanks for each honest reply.

Main.o is where your error is. Idk exact issue, but that is where the problem lies
Sent from my MB886 using xda app-developers app

Not sure what your problem is, but this should either be in CM's thread or under Q&A. Help threads don't belong under Development.

skeevydude said:
Not sure what your problem is, but this should either be in CM's thread or under Q&A. Help threads don't belong under Development.
Click to expand...
Click to collapse
This was a developer question. This is why I posted it in the Developer section.
From this post here I posted in the right spot. http://forum.xda-developers.com/showthread.php?t=1805891
From sgt. slaughter Post about posting in the Developer section.
If you are posting in development, you should have read every sticky and notice there, and should be actively developing or helping in the development of something. Developing isn't installing a ROM, or using a tweak, it's creating a ROM or other hack or tweak. If you haven't read for several days before starting out on XDA, you are likely about to ask something already solved. I registered on XDA when I first wanted to post, and that was to join in a discussion on something. Sure, join up and ask a question, but read the information available in General and Q&A first, as your question will have been asked before. Search is your friend here, become familiar with it.
Click to expand...
Click to collapse
Atrix HD Android Development does not state that question could not be answered there. If so the title of that section needs to be changed to Atrix HD Android ROMS and software.
I think this question needs to be place back where I posted it. Just because someone has not posted 20,000,000 post. Does not mean that they can not read and follow direction. I have been on the forum for a while and know the rules.
Thanks,
John

Never seen that error before. Try to resync repo again will be my best fix and continue on.
Also follow this to the T and you will be fine as this is the first guide I tried to build my first rom
http://wiki.cyanogenmod.org/w/Build_for_mb886

JohninLex said:
This was a developer question. This is why I posted it in the Developer section.
From this post here I posted in the right spot. http://forum.xda-developers.com/showthread.php?t=1805891
Atrix HD Android Development does not state that question could not be answered there. If so the title of that section needs to be changed to Atrix HD Android ROMS and software.
I think this question needs to be place back where I posted it. Just because someone has not posted 20,000,000 post. Does not mean that they can not read and follow direction. I have been on the forum for a while and know the rules.
Thanks,
John
Click to expand...
Click to collapse
I'm aware that this is a technical question, and like Teckno, I'm not sure what the problem is -- you could have just synced when CM hadn't included all the gerrit updates for all the various projects (your error could be from that package being too up to date or it not being enough up to date...it's happened to me before).
Anyways, this didn't deserve it's own thread under Development, and like I suggested first, should have just been a regular post in the CM11 thread (preferably in the RAZR HD forums where our devs are more likely to see it). Our forums, Atrix HD, aren't heavily populated with developers, just guys like myself, Techno, and others who know enough to give us roms but not necessarily enough fix every little thing wrong with them.
To answer the other questions in the OP:
The boot animations and apps are drag-n-drop into /system/app (for apps; can also make a /data/app and put them there, but you'll then have to tweak the updater-script to apply 644 permissions /data/app & name the app the same as Android does -- I'm lazy so all I do is "adb pull /data/app ~/dataapps...). The /data/app way is a bit more technical and requires a full data wipe before installing (to ensure people are using what you included, not what they already have.
Boot animation is the same, only under /system/media. Wallpapers -- depends, can either use apk-tool and take apart the CM Wallpaper app, add them to it, pack it back up OR just rename your images to the same name as CM's, open up the apk up with 7-Zip (windows) or Gnome's Archive Manager (solaris 2), and d-n-d right over them (that should work, does for themes).
Don't take the thread being reported the wrong way. Back in the day this forum had some less that stellar people here that spammed, started crap, posted in the wrong place, so whatever happens by whoever, we just nip it in the bud. It's not that you didn't have a good, valid development question, just other users will start seeing questions posted openly under dev so they'll start posting questions that aren't good or valid dev questions.
I hope you understand,
Rick
---------- Post added at 09:30 AM ---------- Previous post was at 09:21 AM ----------
TecknoFreak said:
Also follow this to the T and you will be fine as this is the first guide I tried to build my first rom
http://wiki.cyanogenmod.org/w/Build_for_mb886
Click to expand...
Click to collapse
I did not know we had an actual guide for building over at CM....whatever...all those guides assume you run Ubuntu (I don't) and you want to do all your rom compiling from $HOME (which I don't). I rock Debian Jessie with my Android work on a 300GB ZFS Mirror....granted my home is on that same mirror.....
Here's the guide that PAC Dev's recommend for users to follow
This is the one I used for Debian Jessie. Please note that a few steps are missing from that, like setting up a ~/bin, but if you've set it all up before it's a good, quick list of the apt commands needed.

I followed the direction of CM page step by step, and this is the error I received by follow the direction.
I am looking at pkg difference from the time the CM page was created and what I have to see if there is a difference.
Thanks for the secondary question answered.
Back when I joined XDA you had to have so many post to even post in the developers section. I do more reading on this site than talking. I asked because google did not give me the answer I was looking for.
I did like sylentprofet post I did read it several weeks ago while talking to sickkside13 about helping with his ROM from the AOKP line.
Sorry I got upset about my post being move I felt it was for the wrong reasons.

TecknoFreak said:
Never seen that error before. Try to resync repo again will be my best fix and continue on.
Also follow this to the T and you will be fine as this is the first guide I tried to build my first rom
http://wiki.cyanogenmod.org/w/Build_for_mb886
Click to expand...
Click to collapse
This is the guide I was using I guess I should have included that with the first post.

I thought I would paste and out put of what was ran for someone to take a look at,
its like it is not pulling data from the phone or that CM no longer has this branch
Code:
[email protected]:~/android/system$ brunch mb886
including vendor/cm/vendorsetup.sh
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
Looking for dependencies
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140321-UNOFFICIAL-mb886
TARGET_PRODUCT=cm_mb886
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-i686-athlon-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/johninlex/android/system/out
============================================
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140321-UNOFFICIAL-mb886
TARGET_PRODUCT=cm_mb886
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-i686-athlon-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/johninlex/android/system/out
============================================
/home/johninlex/android/system/out/target/product/mb886/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h'
find: `../InCallUI/src': No such file or directory
find: `../UnifiedEmail/src': No such file or directory
find: `../../UnifiedEmail/src/org': No such file or directory
find: `../../UnifiedEmail/src/com/android/emailcommon': No such file or directory
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/johninlex/android/system/out/target/common/obj/APPS/framework-res_intermediates /home/johninlex/android/system/out/target/common/obj/APPS/Mms_intermediates
build/core/Makefile:44: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/system/lib/egl/egl.cfg'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/system/lib/egl/egl.cfg'
No private recovery resources for TARGET_DEVICE mb886
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//LocApiAdapter.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_xtra.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_ni.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_agps.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_msg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_msg_id.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_log.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//loc_log.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//loc_cfg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//log_util.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//linked_list.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//msg_q.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libexpat/expat.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libexpat/expat_external.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/png.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/pngconf.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/pngusr.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/selinux.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/label.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/context.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/avc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/android.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas_reverb.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas_types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/jet.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libwpa_client/wpa_ctrl.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/alsa_audio.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/alsa_ucm.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/gralloc_priv.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/display_config.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/mdp_version.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/qdMetaData.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/IQService.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/IQClient.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/clnt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/pmap_clnt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/rpc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/svc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/xdr.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Component.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Core.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Image.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Index.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Other.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Video.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_VideoExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QCMetaData.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h
Import includes file: /home/johninlex/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
mkdir -p /home/johninlex/android/system/out/target/product/mb886/obj/KERNEL_OBJ
mkdir -p /home/johninlex/android/system/out/target/product/mb886/system/lib/modules
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
make: *** [/home/johninlex/android/system/out/target/product/mb886/obj/lib/crtbegin_static1.o] Error 126
make: *** Waiting for unfinished jobs....
make: *** [/home/johninlex/android/system/out/target/product/mb886/obj/lib/crtbrand.s] Error 126
[email protected]:~/android/system$
I hope this helps.
Side note for other developers when you sync your repo's or you wonder how long a task takes. Use the "time" command. I do not know if this works in windows or not.
Thanks
John

JohninLex said:
I thought I would paste and out put of what was ran for someone to take a look at,
its like it is not pulling data from the phone or that CM no longer has this branch
Code:
[email protected]:~/android/system$ brunch mb886
including vendor/cm/vendorsetup.sh
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
Looking for dependencies
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140321-UNOFFICIAL-mb886
TARGET_PRODUCT=cm_mb886
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-i686-athlon-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/johninlex/android/system/out
============================================
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140321-UNOFFICIAL-mb886
TARGET_PRODUCT=cm_mb886
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-i686-athlon-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/johninlex/android/system/out
============================================
/home/johninlex/android/system/out/target/product/mb886/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h'
find: `../InCallUI/src': No such file or directory
find: `../UnifiedEmail/src': No such file or directory
find: `../../UnifiedEmail/src/org': No such file or directory
find: `../../UnifiedEmail/src/com/android/emailcommon': No such file or directory
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/johninlex/android/system/out/target/common/obj/APPS/framework-res_intermediates /home/johninlex/android/system/out/target/common/obj/APPS/Mms_intermediates
build/core/Makefile:44: warning: overriding commands for target `/home/johninlex/android/system/out/target/product/mb886/system/lib/egl/egl.cfg'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/johninlex/android/system/out/target/product/mb886/system/lib/egl/egl.cfg'
No private recovery resources for TARGET_DEVICE mb886
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//LocApiAdapter.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_xtra.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_ni.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_agps.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_msg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_msg_id.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libloc_eng//loc_eng_log.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//loc_log.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//loc_cfg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//log_util.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//linked_list.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/gps.utils//msg_q.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libexpat/expat.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libexpat/expat_external.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/png.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/pngconf.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libpng/pngusr.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/selinux.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/label.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/context.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/avc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/selinux/android.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas_reverb.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/eas_types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/jet.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/libwpa_client/wpa_ctrl.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/alsa_audio.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/alsa_ucm.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/gralloc_priv.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/copybit_priv.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/display_config.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/mdp_version.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/qdMetaData.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/IQService.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/qcom/display/IQClient.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/clnt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/pmap_clnt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/rpc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/svc.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/librpc/rpc/xdr.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Component.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Core.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Image.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Index.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Other.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Types.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_Video.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/OMX_VideoExt.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-core/omxcore/QCMetaData.h
Header: /home/johninlex/android/system/out/target/product/mb886/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h
Import includes file: /home/johninlex/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
mkdir -p /home/johninlex/android/system/out/target/product/mb886/obj/KERNEL_OBJ
mkdir -p /home/johninlex/android/system/out/target/product/mb886/system/lib/modules
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
make: *** [/home/johninlex/android/system/out/target/product/mb886/obj/lib/crtbegin_static1.o] Error 126
make: *** Waiting for unfinished jobs....
make: *** [/home/johninlex/android/system/out/target/product/mb886/obj/lib/crtbrand.s] Error 126
[email protected]:~/android/system$
I hope this helps.
Side note for other developers when you sync your repo's or you wonder how long a task takes. Use the "time" command. I do not know if this works in windows or not.
Thanks
John
Click to expand...
Click to collapse
From two of your errors I can tell that you're not fully synced (/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file) nor do you have every thing installed (or synced...) (/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file)
For those errors I'd say double check your manifest because it didn't sync gcc or ccache. Me, I'd ensure gcc is syncing properly, and because I like ccache globally and not just for android compiling, install your distro's native version with "apt-get install ccache" as root or sudo (or double check the manifest like with gcc).
Now, your real problem is that you're following old instructions when you're building for just the mb886. Nowadays we're building with moto_msm8960 (PAC's command for us, which is pulled directly from CM), CM's instructions for that are located at http://wiki.cyanogenmod.org/w/Build_for_moto_msm8960 -- I recommend following one of the guides posted here by me or @TecknoFreak, they're better and more correct than CM's (it's auto generated by a script).
EDIT:
I didn't take you being upset the wrong way, especially since I expected it . Everyone's cool now, so that's all that matters. :good:

Grrrrr I guess my freaken Thanks Button is on vacation for using it too much. lol

I am trying a fresh install of Ubuntu, SDK, adb, and fastboot to see if something just went wrong. Will let everyone know the out come.
I know this does not solve the problem.
Thanks,
John

You probably don't need a reinstall, but it never hurts. FYI, you don't have to use Ubuntu. Debian Wheezy (stable) is a good distro to use and is something I prefer over an Ubuntu stable release. If you have a year or so Linux experience, Debian Jessie (testing) is really, really worth considering* -- With Testing there's a really slight chance of a break with big updates, but as long as you play it safe it's just fine (I ran it for a year and a half before getting a break; which was fixed in 5 mins and a google search). There's also Debian Sid (unstable), but that's more for hard core users and I'd recommend using Siduction (a distro based on Debian Sid) versus Pure Sid.
If you didn't know, Ubuntu is based on bug fixed snapshots of Debian Sid with Ubuntu's patches, apps, & support.
*The reason Jessie/Testing is worth considering over all the others is you NEVER have to upgrade your system to a new version (eg. Ubuntu 12.10 to 13.04 every 6 months), it'll never be EOL (end of life), and it's the best combo of up-to-date and stable that you'll get with Pure Debian. Whenever Debian 7 Wheezy becomes EOL'd in a year or two, it'll become whatever Jessie is (and Debian 8 will be Jessie), and the testing repos will change to whatever the next Debian (9) will be -- that repo changeover IS where any crappy breaks are more than likely to happen, but that shouldn't be for a while.
I suggest having a bit of Linux experience for Testing because it would really suck (and does ) for X (the GUI) to go out and have to fix the system from just the terminal with minimal/no Linux knowledge (been there, done that, and learned some stuff; not for the feint of heart).
Because this'll really help if you or anyone else who wants to go this way, here's the links for Testings weekly builds -- http://cdimage.debian.org/cdimage/weekly-builds/amd64/

One reason i really like this about, is that i finally see active our device house developer and my developing boss mr skeevy. Wooohooooo
Is so good to see you around more

Same error on fresh install. I am going to try a 64bit install next. I have been using a 32bit because of CM stating that they only build on it. but from what I have been reading most error of 126 are from windows that are 32bit.
Will keep everyone up to date.
Thanks,
John

JohninLex said:
Same error on fresh install. I am going to try a 64bit install next. I have been using a 32bit because of CM stating that they only build on it. but from what I have been reading most error of 126 are from windows that are 32bit.
Will keep everyone up to date.
Thanks,
John
Click to expand...
Click to collapse
You must have misread the CM wiki instructions. You certainly need 64bit system, CM11 won't build on 32bit Linux.
The fact that some 32bit host binaries are used when building on 64bit system does not change anything about the fact that you need to be on 64bit system when building any recent CM (or AOSP).
From http://wiki.cyanogenmod.org/w/Build_for_moto_msm8960 :
...then install a Linux distribution such as Ubuntu. Any recent 64-bit version should work great, but the latest is recommended.
Click to expand...
Click to collapse
You want to use a 64-bit version of Linux.
Click to expand...
Click to collapse

JohninLex said:
Same error on fresh install. I am going to try a 64bit install next. I have been using a 32bit because of CM stating that they only build on it. but from what I have been reading most error of 126 are from windows that are 32bit.
Will keep everyone up to date.
Thanks,
John
Click to expand...
Click to collapse
http://source.android.com/source/initializing.html
Those are Google's instructions for setting up Ubuntu 10.04 to 12.04, most all the other guides around are just that modified for different Ubuntu\Debian\Linux versions. Gingerbread (CM7) and up require a 64-bit system....though I've read about ways around that, but I wouldn't bother reading too much into that if you have a 64-bit CPU.

Problem solved!!! by switching to 64bit. That what I get for reading so many different guides before starting. Now on to how to fix a bad build that I did not get to finish before having to leave on another trip for work.
Thanks for the support you all have given!!!
Thanks,
John

JohninLex said:
Problem solved!!! by switching to 64bit. That what I get for reading so many different guides before starting. Now on to how to fix a bad build that I did not get to finish before having to leave on another trip for work.
Thanks for the support you all have given!!!
Thanks,
John
Click to expand...
Click to collapse
Good deal.
Fixing a bad build....depends on why it was bad. For example, 3 days ago I did a repo sync, started a build, it failed. Problem was CM updated some stuff, but PAC hadn't pulled in those updates into their forks yet. Once PAC updated those, the build finished and it's what I'm running now (don't ask, horrible battery life). Similar build errors are also possible if patches are pushed to, we'll say frameworks/base, but the corresponding patches to packages/apps/Settings aren't up yet \ still in gerrit -- when that happens, ya gotta either manually pick from gerrit or wait. After those, errors are either related to using a non-standard build environment or bugs in the code throwing errors -- even if you're not a programmer, sometimes the right search can find those fixes in oddball forks, from other rom teams, etc.

Related

Help with Haxzamatic's template?! Linux

I've been working on some CM7 themes and I've worked on the Templatebread example.. But I've ran into an error..
When I go to do this:
Code:
$ source build/envsetup.sh
$ lunch themes_generic-eng hdpi
$ [B]make[/B]
it gives me this error. Constantly:
Code:
[email protected]:~/themes$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=themes_generic
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=GRH78
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
host C++: libutils <= frameworks/base/libs/utils/RefBase.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] Error 1
[email protected]:~/themes$
Any help would be nice

Compiling Firefox OS for Android One (Sprout)

I'm trying to compile Firefox OS using these files: "https://github.com/b2g-sprout/" . But I am having troubles 'coz there's no really fomal instructions from the Github link. I'm only a Web Developer so I don't know much about ROMs.
What I Did:
1 - Extracted "B2G" and "b2g-manifest" in home folder
2 - Extracted "device-sprout" on "device/google/sprout/"
3 - Backup System
4 - Run ANDROIDFS_DIR=backup_device ./config.sh sprout '../b2g-manifest/default.xml'
5 - Downloaded Files somewhere to get "sprout-vendor.mk" for "vendor" folder that the ./build.sh is looking for in my first run
5 - Run ./build.sh
Got this error after ./build.sh:
HTML:
<code>
./build.sh
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
device/google/sprout/wpa_supplicant/Android.mk:19: Build wpa_supplicant_lib...
device/google/sprout/wpa_supplicant/Android.mk:27: external/wpa_supplicant_8/wpa_supplicant/android.config: No such file or directory
CMake and NDK (/home/zigmund/B2G/prebuilt/ndk/android-ndk-r7) found, will compile apitrace
external/apitrace/Android.mk:77: warning: overriding commands for target `out/target/product/sprout/obj/SHARED_LIBRARIES/egltrace_intermediates/LINKED/egltrace.so'
build/core/shared_library.mk:56: warning: ignoring old commands for target `out/target/product/sprout/obj/SHARED_LIBRARIES/egltrace_intermediates/LINKED/egltrace.so'
external/apitrace/Android.mk:82: warning: overriding commands for target `out/target/product/sprout/system/lib/egltrace.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/lib/egltrace.so'
external/apitrace/Android.mk:96: warning: overriding commands for target `out/target/product/sprout/obj/EXECUTABLES/apitrace_intermediates/LINKED/apitrace'
build/core/executable.mk:22: warning: ignoring old commands for target `out/target/product/sprout/obj/EXECUTABLES/apitrace_intermediates/LINKED/apitrace'
external/screencap-gonk/Android.mk:35: warning: overriding commands for target `out/target/product/sprout/system/bin/screencap-gonk'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/bin/screencap-gonk'
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/nist-sip/java': No such file or directory
find: `../../external/apache-http/src': No such file or directory
find: `../../external/libphonenumber/java/src': No such file or directory
gaia/Android.mk:53: warning: overriding commands for target `out/target/product/sprout/data/local/gaia'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/data/local/gaia'
gonk-misc/Android.mk:30: warning: overriding commands for target `out/target/product/sprout/obj/ETC/init.rc_intermediates/init.rc'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/ETC/init.rc_intermediates/init.rc'
gonk-misc/Android.mk:137: warning: overriding commands for target `out/target/product/sprout/obj/DATA/sources.xml_intermediates/sources.xml'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/DATA/sources.xml_intermediates/sources.xml'
gonk-misc/Android.mk:359: warning: overriding commands for target `out/target/product/sprout/system/gecko'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/gecko'
gonk-misc/Android.mk:447: warning: overriding commands for target `out/target/product/sprout/obj/DATA/gecko_intermediates/gecko'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/DATA/gecko_intermediates/gecko'
build/core/base_rules.mk:82: *** Module name: librilutils
build/core/base_rules.mk:83: *** Makefile location: hardware/ril/librilutils
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:86: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:87: *
build/core/base_rules.mk:88: * optional, debug, eng, tests, samples
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * If the module is expected to be in all builds
build/core/base_rules.mk:91: * of a product, then it should use the
build/core/base_rules.mk:92: * "optional" tag:
build/core/base_rules.mk:93: *
build/core/base_rules.mk:94: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:95: * Android.mk for the affected module, and add
build/core/base_rules.mk:96: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:97: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:98: * makefile(s) where it's necessary, if
build/core/base_rules.mk:99: * appropriate.
build/core/base_rules.mk:100: *
build/core/base_rules.mk:101: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:102: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:103: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:104: * build/target/product/core.mk
build/core/base_rules.mk:105: *
build/core/base_rules.mk:106: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
real 0m42.594s
user 0m4.868s
sys 0m4.684s
> Build failed! <
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
</code>
After executing "./build.sh rm -rf out":
HTML:
<code>
./build.sh rm -rf out
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
make: *** out: Is a directory. Stop.
real 0m0.002s
user 0m0.000s
sys 0m0.002s
> Build failed! <
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
</code>
Check this out Sir Firefox OS Build prerequisites
1. Try with newer sources of Firefox. Take nexus 5 as reference.
2. To delete the our folder, use the command "rm rf- out/" or "make clean "
3. Use"-j1" tag for better error messages
make rule issue
Hi there! I'm attempting to compile FFOS but I keep running into this error:
Code:
make: *** No rule to make target `out/target/product/sprout/kernel', needed by `out/target/product/sprout/boot.img'. Stop.
Is there anything that I missed? If it's a file, could I download it? Don't want to do another repo sync since the Internet at my place kinda sucks.

[GUIDE] Compiling LineageOS 13 for Obake (Ultra, Mini, Maxx)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to Compile LineageOS 13
This tutorial is designed to guide you through the process of creating your own LineageOS 13 ROM for the Motorola Droid Ultra, Mini and Maxx.​
There are four distinct phases of the build process:
1 - Installing the required software.
2 - Preparing the build environment.
3 - Build the ROM.
4 - Keeping current with updates and re-building the ROM.
This tutorial assumes that you will be starting with a fresh installation of Ubuntu 14.04.
Later versions of Ubuntu require a slightly different set of packages to be installed and getting the correct Java version set up is much more difficult.
Other versions of Linux may work, but this guide is written specifically with Ubuntu 14.04 in mind.
I, personally, create a virtual machine with Windows Hyper-V to do this, but you can do it however you like.
There are a multitude of tutorials for the installation of Ubuntu and that is outside the scope of this tutorial.
You should have at least 100GB of disk space and at least 4GB of RAM allocated for your Ubuntu build system.
The more CPU power and RAM you have available, the faster the build process will be.
1 - Installing the required software:
Open a terminal and enter the following commands to install the software required to build LineageOS.
Code:
sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev maven openjdk-7-jdk
Code:
mkdir -p ~/bin
mkdir -p ~/android/lineage
Code:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Code:
source ~/.profile
Code:
cd ~/android/lineage
2 - Preparing the build environment:
Modify this with your own email address and username:
Code:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-13.0
Code:
cd .repo
Code:
git clone https://github.com/pbarrette/local_manifests
Code:
cd local_manifests
Code:
git checkout
Code:
cd ../..
This next command downloads all of the LineageOS specific code for the first time.
Expect it to take at least an hour or more.
Code:
repo sync
If the above command shows a failure at the end, run it again until it completes successfully.
OPTIONAL - These commands will help speed up recompiles.
You don't need to do this, and it won't help for your first compile, but it will make later ROM compilations faster.
This sets aside a compiler cache of 30GB, so be sure you have the disk space.
You can increase or decrease the number as required, but 30GB is a reasonable value.
Code:
ccache -M 30G
Code:
echo USE_CCACHE=1 >>~/.profile
Code:
source ~/.profile
3 - Build the ROM.
Code:
source build/envsetup.sh
OPTIONAL - This command will cause the ROM to be compiled with root functionality built-in.
Code:
export WITH_SU=true
This next command actually builds the ROM and will take at least a couple of hours.
Code:
brunch obake
You'll see a number of warnings as it compiles, which is expected and normal.
Once the ROM has finished building, you will find the flashable zip file in:
Code:
~/android/lineage/out/target/product/obake/
You're done!
Take your lineage-13.0-YYYYMMDD-UNOFFICIAL-obake.zip file and flash it to your phone.
Keeping current with updates and re-building the ROM.​
4 - How to get udpates and build a new ROM
Now that you've built your ROM, you probably want to know a couple of things about updating.
The update process essentially breaks down into:
A - Knowing when updates are available.
B - Downloading the new updates.
C - Recompiling a new ROM with those updates.
A - Knowing when updates are available:
Determining if updates are available is a manual process.
You will need to visit the LineageOS code review site and manually keep track of the updates that have been merged and which updates are applicable to your ROM.
Since there's very little development against LineageOS 13 being done anymore, that's a fairly easy job.
Most people are only going to be interested in the monthly security updates anyway.
Here's the website you need to visit:
https://review.lineageos.org/#/q/branch:cm-13.0
Note that in the URL, I've already pre-filtered the results so you only see code updates for the cm-13.0 branch.
In this image, you can see a number of updates that have been submitted for review:
The lines that I have highlighed in RED and YELLOW have a few different attributes that are of interest to us.
The first is the Status field, which you can see states that the code change has been Merged for the one highlighted in RED.
This means that the code changes are now a part of the standard LinageOS build and are available to be downloaded.
The second is the Branch field, which also includes the (tag name).
We've already pre-filtered to LineageOS 13.0, but you'll see that it's also been tagged as (asb-2018.01).
This means that the code change exists because of the Android Security Bulletin for January 2018.
Third is the CR or Code Review field.
This is used to keep track of the votes assigned to the code change by the assigned reviewers.
In the case of the one I've highlighted in RED, there's a green check symbol, which means that it has passed the code review process.
Other entries may have a green +N or a red -N number of votes.
Obviously, negative votes mean that a reviewer found a problem while positive votes means no problems were discovered.
The fourth is the V or Verified field.
This is used to keep track of whether or not a LineageOS core developer has accepted the code change.
Once the change has been verified by the core development team, it is usually Merged.
In the above example, we can see that the line highlighted in YELLOW is titled ASB January 2018, update security string to 2018-01-01.
For monthly security updates, this is usually the last code change to be merged.
So once that line has been merged, you are ready to download the changes and build your updated ROM.
Keeping current with updates and re-building the ROM Part 2.​
4b - Build a new ROM with the updates
So now you've verified that new updates have been merged and you need to download them and build a new ROM.
B - Downloading the new updates.:
Downloading the new updates is usually pretty simple.
Open your terminal window and type:
Code:
cd ~/android/lineage
Code:
repo sync
This sometimes fails because LineageOS is constantly shifting some libraries between Google's code-base and LineageOS's custom modified code.
If you go back to the previous post, you'll see that the item highlighted in RED has a title of Switch to our external/aac.
This means that where they were previously using the Google repository, they have switched to a LineageOS repository.
So your repo sync command will fail and it will look something like this:
In the image above, I've highlighted the line that's important here:
use `repo sync --force-sync external/tremelo` to proceed.
So you need to do what it says and type:
Code:
repo sync --force-sync external/tremelo
Then you'll need to sync the repositories again:
Code:
repo sync
You may need to do that a few times, depending on which repositories the developers have had to swap.
Eventually, you should see a successful repository synchronization:
C - Recompiling an updated ROM:
So now you've got the updates downloaded and want to compile a new ROM.
You'll want to first make sure you're in the right directory:
Code:
cd ~/android/lineage
Then make sure you've got the compilation environment set:
Code:
source build/envsetup.sh
Now you'll want to clean up from your previous build:
Code:
make clean
OPTIONAL - This command will cause the ROM to be compiled with root functionality built-in.
Code:
export WITH_SU=true
This next command actually builds the ROM and will take some time.
Code:
brunch obake
Once the ROM has finished building, you will find the flashable zip file in:
Code:
~/android/lineage/out/target/product/obake/
You're done!
Take your freshly updated lineage-13.0-YYYYMMDD-UNOFFICIAL-obake.zip file and flash it to your phone.
Awesome guide
I'm currently trying this on the latest Ubuntu 18.04 LTS for fun, there seem to be some merges regarding BT and maybe they'll fix my bugs.
Anyway, download & sync seemed to have gone fine, but I get an error pretty quickly when I start the build:
Code:
[email protected]:~/android/lineage# brunch obake
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
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-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================
make: Entering directory '/root/android/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
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-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================
Checking build tools versions...
find: ‘src/com/android/cts/verifier/backup’: No such file or directory
build/core/base_rules.mk:559: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
find: ‘dummy’: No such file or directory
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE obake
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libc++_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Export includes file: external/compiler-rt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/bits.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/debug.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/linkhash.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/arraylist.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_inttypes.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_util.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_tokener.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object_iterator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_c_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drmMode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_fourcc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_mode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_sarea.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/i915_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mach64_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mga_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/qxl_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r128_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/savage_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/sis_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/via_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/vmwgfx_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_surface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r600_pci_ids.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drmif.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/libkms.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/label.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/context.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/avc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/android.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/label.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/context.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/avc.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/android.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/handle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/policydb.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/cil.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_reverb.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/jet.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/wpa_ctrl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/qca-vendor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/MediaResourceArbitrator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/OMX_adaptor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_ucm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/gralloc_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/display_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/mdp_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/qdMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQService.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQClient.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Core.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Image.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Index.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Other.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Video.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libril/ril_ex.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap_api.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap.h
Header: /root/android/lineage/out/target/product/obake/obj/include/dataservices/rmnetctl/librmnetctl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/time-services/time_genoff.h
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/import_includes
Export includes file: external/libcxxabi/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/export_includes
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/import_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcompiler_rt-extras.a.txt
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcompiler_rt-extras.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libmincrypt.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Import includes file: /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/import_includes
Export includes file: device/motorola/msm8960dt-common/dtbtool/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/liblog_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/import_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: system/core/cpio/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
Notice file: system/core/libcutils/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcutils.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.a.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt
Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/selinux/checkpolicy/policy_parse.y
Export includes file: external/selinux/libsepol/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
touch /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l
echo '#ifndef 'policy_parse_h > /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
cat /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Export includes file: external/selinux/checkpolicy/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
Lex: libsepol <= external/selinux/libsepol/cil/src/cil_lexer.l
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp] Aborted (core dumped)
make: Leaving directory '/root/android/lineage'
#### make failed to build some targets (01:50 (mm:ss)) ####
Any ideas?
Thanks,
R
EDIT: Oof, I think this is a problem with libwxgtk2.8-dev. No idea how to get it for Ubuntu 18.04.
flyingfishfinger said:
I'm currently trying this on the latest Ubuntu 18.04 LTS for fun, there seem to be some merges regarding BT and maybe they'll fix my bugs.
Anyway, download & sync seemed to have gone fine, but I get an error pretty quickly when I start the build:
Code:
[email protected]:~/android/lineage# brunch obake
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
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-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================
make: Entering directory '/root/android/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
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-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================
Checking build tools versions...
find: ‘src/com/android/cts/verifier/backup’: No such file or directory
build/core/base_rules.mk:559: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
find: ‘dummy’: No such file or directory
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE obake
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libc++_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Export includes file: external/compiler-rt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/bits.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/debug.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/linkhash.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/arraylist.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_inttypes.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_util.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_tokener.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object_iterator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_c_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drmMode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_fourcc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_mode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_sarea.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/i915_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mach64_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mga_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/qxl_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r128_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/savage_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/sis_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/via_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/vmwgfx_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_surface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r600_pci_ids.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drmif.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/libkms.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/label.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/context.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/avc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/android.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/label.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/context.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/avc.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/android.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/handle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/policydb.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/cil.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_reverb.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/jet.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/wpa_ctrl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/qca-vendor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/MediaResourceArbitrator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/OMX_adaptor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_ucm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/gralloc_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/display_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/mdp_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/qdMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQService.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQClient.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Core.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Image.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Index.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Other.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Video.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libril/ril_ex.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap_api.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap.h
Header: /root/android/lineage/out/target/product/obake/obj/include/dataservices/rmnetctl/librmnetctl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/time-services/time_genoff.h
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/import_includes
Export includes file: external/libcxxabi/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/export_includes
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/import_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcompiler_rt-extras.a.txt
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcompiler_rt-extras.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libmincrypt.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Import includes file: /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/import_includes
Export includes file: device/motorola/msm8960dt-common/dtbtool/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/liblog_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/import_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: system/core/cpio/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
Notice file: system/core/libcutils/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcutils.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.a.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt
Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/selinux/checkpolicy/policy_parse.y
Export includes file: external/selinux/libsepol/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
touch /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l
echo '#ifndef 'policy_parse_h > /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
cat /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Export includes file: external/selinux/checkpolicy/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
Lex: libsepol <= external/selinux/libsepol/cil/src/cil_lexer.l
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp] Aborted (core dumped)
make: Leaving directory '/root/android/lineage'
#### make failed to build some targets (01:50 (mm:ss)) ####
Any ideas?
Thanks,
R
EDIT: Oof, I think this is a problem with libwxgtk2.8-dev. No idea how to get it for Ubuntu 18.04.
Click to expand...
Click to collapse
Ubuntu 18 is likely the problem.
As stated in the first post:
This tutorial assumes that you will be starting with a fresh installation of Ubuntu 14.04.
Later versions of Ubuntu require a slightly different set of packages to be installed and getting the correct Java version set up is much more difficult.
Other versions of Linux may work, but this guide is written specifically with Ubuntu 14.04 in mind.
Click to expand...
Click to collapse
Which means that if you're having an issue with package compatibility this early in the build process, you're likely to have other package compatibility problems going forward.
If you're determined to use a newer version of Ubuntu, you should check out the "Install the build packages" section from the official LineageOS guide here:
https://wiki.lineageos.org/devices/ghost/build
Nah doesn't have to be the latest, I'll spin up a VM with 14.04 tonight.
I got 3.5hrs into the build using 16.04 (the other version I already had around) then it failed again after I solved the libwxgtk2.8-dev issue.
Thanks though,
R
flyingfishfinger said:
Nah doesn't have to be the latest, I'll spin up a VM with 14.04 tonight.
I got 3.5hrs into the build using 16.04 (the other version I already had around) then it failed again after I solved the libwxgtk2.8-dev issue.
Thanks though,
R
Click to expand...
Click to collapse
I was planning to download Ubuntu and setup a VM. But now I see you are already ahead of me.
Did you manage to compile and get a stable build with latest patches?
I would be interested to try it out on my Droid Maxx.
Hi,
The build worked out fine, yes. Follow the instructions, the dependencies seem to depend specifically on 14.04 as he indicated.
Getting the sources completely took about 10 attempts of the "repo sync" command, but after that it did OK. I did this in a VM on a laptop that's a few years old, so I let it run overnight. I think the actual build took 4 hours in the end.
It seems like the security patch level is now August 1, 2018 so that got rolled in correctly.
However, the Bluetooth issue still exists which I was hoping to get resolved.
Good luck,
R
Would you be able to upload it somewhere?
Sure, find it here:
https://drive.google.com/file/d/1wIDzKm-krrP0SmYTSBejVGiS4zxwWt09/view?usp=sharing
Let me know if it works for you!
R
Unfortunately, I never really got a chance to install/ try out that build.

Issues building Lineage 15.0

Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[email protected]:~/android/lineage15$ mka
make: Entering directory '/home/flagers/android/lineage15'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_owens
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.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR3.170623.013
OUT_DIR=/home/flagers/android/lineage15/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (b391b210c6 => eb6491827b), regenerating...
[9/1046] 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
[338/1046] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[370/1046] 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
[404/1046] 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
[442/1046] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory
[576/1046] 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/1046] 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/1046] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1046/1046] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/flagers/android/lineage15/out/target/product/owens/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 owens
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'
[ 0% 16/64099] target thumb C: libtar <= external/libtar/lib/handle.c
external/libtar/lib/handle.c:35:19: warning: unused parameter 'mode' [-Wunused-parameter]
int oflags, int mode, int options)
^
1 warning generated.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 0% 34/64099] Building Kernel Config
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
ninja: build stopped: subcommand failed.
20:26:02 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/flagers/android/lineage15'
#### make failed to build some targets (08:34 (mm:ss)) ####
FlagersXDA said:
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
the only reason it says failed to build the kernel is because another error stopped the build and the kernel was being built on another thread and also failed as a result of the error. I quoted the part with the actual error (click on it to see it). It is from the init.moto.cpp looking for a file android-base/logging.h that is not there. Probably due to the changes from N to O.
Code:
#include "log.h"
#include "util.h"
Remove these lines from init_moto.cpp
Also.. this was a simple ass issue to fix. I don't mean to be rude, but please take the time to take a closer look at the logs when it fails. It should have "FAILED" where the problem really is most of the time. Then you can take a look at one of the lineage 15 repositories from another phone and see what the differences are to help you fix it if it isn't obvious. (And in this case, this one was obvious)
Even if you can get it to build that doesn't mean things are going to work 100% either (It probably won't even boot without the required changes being made). I'm sure there are a lot of changes that need to be made, like compiling a lot of the drivers from caf source and stuff like that; like those that were mentioned elsewhere.
Next time I'll read the logs more thoroughly rather then skimming them.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
All good. The beginning of wisdom is knowing what you don't know. And thanks for your efforts.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Goose03 said:
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Click to expand...
Click to collapse
lmao this didn't age well

How to call apktool (dalvikvm) in a magisk module?

Hello,
I'm currently trying to run apktool using dalvikvm in the customize.sh script:
Bash:
apktool_d() {
#ANDROID_DATA=$TMPDIR_JCD ANDROID_ROOT=/system LD_LIBRARY_PATH=/system/lib dalvikvm -Xbootclasspath:/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/apache-xml.jar -classpath $BIN/apktool_*-dexed.jar brut.apktool.Main d --frame-path $TMPDIR_JCD/framework --no-src -o $TMPDIR_JCD/resout $1
dalvikvm -classpath $BIN/apktool_*-dexed.jar brut.apktool.Main d --no-src -o $TMPDIR_JCD/resout $1
test $? != 0 && abort "Decoding APK resources failed. Aborting..."
}
I've tried to port that code from an outdated template: https://github.com/djb77/magisk-module-template-apkpatcher
When using the commented out method the command aborts with "Decoding APK resources failed" and logcat *:E is telling me the following:
Code:
04-17 21:11:53.649 11641 11641 E dalvikvm: Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Unexpected component count in /system/framework/arm/boot.art, received 11, expected non-zero and <= 3
04-17 21:11:53.677 11641 11641 E dalvikvm: Could not initialize without image: Boot classpath is empty.
When trying the second approach without -Xbootclasspath and so on I'm getting a NullPointerException directly in the magisk log (saved file):
Code:
I: Using Apktool 2.3.4 on Bluetooth.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
Exception in thread "main" java.lang.ExceptionInInitializerError
at brut.util.OSDetection.isMacOSX(OSDetection.java:28)
at brut.androlib.res.AndrolibResources.getFrameworkDir(AndrolibResources.java:913)
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:754)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(AndrolibResources.java:116)
at brut.androlib.res.data.ResTable.getPackage(ResTable.java:84)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:67)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:63)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:39)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:385)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.parseManifest(XmlPullStreamDecoder.java:97)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:65)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:155)
at brut.androlib.res.AndrolibResources.decodeManifestWithResources(AndrolibResources.java:204)
at brut.androlib.Androlib.decodeManifestWithResources(Androlib.java:136)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:122)
at brut.apktool.Main.cmdDecode(Main.java:164)
at brut.apktool.Main.main(Main.java:73)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase()' on a null object reference
at brut.util.OSDetection.<clinit>(OSDetection.java:21)
... 20 more
Decoding APK resources failed. Aborting...
! Installation failed
After some research I tried to find out if the customize.sh is running as root because some posts telling that setting LD_LIBRARY_PATH setting as root fixed those "Could not create image space" dalvikvm errors but can't find any info about that. see https://github.com/termux/termux-packages/issues/900#issuecomment-322207233
I'm out of ideas and happy for any help.
Thanks in advance
Danny.

Categories

Resources