[GUIDE] Compiling LineageOS 13 for Obake (Ultra, Mini, Maxx) - Droid Ultra Android Development

{
"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.

Related

[HELP] Tmobile Theme Chooser Compiler Failure after Initial Sync

Code:
[email protected]:~/roms/themes$ source build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including vendor/tmobile/vendorsetup.sh
including vendor/tmobile/products/themes/productsetup.sh
[email protected]:~/roms/themes$ lunch themes_generic-eng hdpi
============================================
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
============================================
[email protected]Android2:~/roms/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
============================================
Checking build tools versions...
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
diff: out/target/product/generic/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
host Java: apicheck (out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/classes)
Header: out/host/linux-x86/obj/include/libexpat/expat.h
Header: out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: out/target/product/generic/obj/include/libexpat/expat.h
Header: out/target/product/generic/obj/include/libexpat/expat_external.h
Header: out/host/linux-x86/obj/include/libpng/png.h
Header: out/host/linux-x86/obj/include/libpng/pngconf.h
Header: out/host/linux-x86/obj/include/libpng/pngusr.h
Header: out/target/product/generic/obj/include/libpng/png.h
Header: out/target/product/generic/obj/include/libpng/pngconf.h
Header: out/target/product/generic/obj/include/libpng/pngusr.h
Header: out/target/product/generic/obj/include/libwpa_client/wpa_ctrl.h
Header: out/target/product/generic/obj/include/libsonivox/eas.h
Header: out/target/product/generic/obj/include/libsonivox/eas_types.h
Header: out/target/product/generic/obj/include/libsonivox/eas_reverb.h
Header: out/target/product/generic/obj/include/libsonivox/jet.h
Header: out/target/product/generic/obj/include/libsonivox/ARM_synth_constants_gnu.inc
host C: acp <= build/tools/acp/acp.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libhost <= build/libs/host/pseudolocalize.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
host C: libhost <= build/libs/host/CopyFile.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
echo out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o | xargs ar crsP out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
true
Install: out/host/linux-x86/bin/acp
Install: out/host/linux-x86/framework/apicheck.jar
host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
Install: out/host/linux-x86/framework/clearsilver.jar
host Java: droiddoc (out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/droiddoc.jar
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_cs.c
host C: libneo_util <= external/clearsilver/util/neo_err.c
host C: libneo_util <= external/clearsilver/util/neo_files.c
host C: libneo_util <= external/clearsilver/util/neo_misc.c
host C: libneo_util <= external/clearsilver/util/neo_rand.c
host C: libneo_util <= external/clearsilver/util/ulist.c
host C: libneo_util <= external/clearsilver/util/neo_hdf.c
host C: libneo_util <= external/clearsilver/util/neo_str.c
host C: libneo_util <= external/clearsilver/util/neo_date.c
host C: libneo_util <= external/clearsilver/util/wildmat.c
host C: libneo_util <= external/clearsilver/util/ulocks.c
host C: libneo_util <= external/clearsilver/util/neo_hash.c
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)
host C: libneo_cs <= external/clearsilver/cs/csparse.c
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c
host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
host C: libneo_cgi <= external/clearsilver/cgi/html.c
host C: libneo_cgi <= external/clearsilver/cgi/date.c
host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
host SharedLib: libclearsilver-jni (out/host/linux-x86/obj/lib/libclearsilver-jni.so)
Install: out/host/linux-x86/lib/libneo_util.so
Install: out/host/linux-x86/lib/libneo_cs.so
Install: out/host/linux-x86/lib/libneo_cgi.so
Install: out/host/linux-x86/lib/libclearsilver-jni.so
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.jar
host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/dx.jar
Copy: dx (out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx)
Install: out/host/linux-x86/bin/dx
target Dex: core
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.dex
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Command.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Main.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Package.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/StringPool.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
frameworks/base/tools/aapt/StringPool.cpp: In function ‘void printStringPool(const android::ResStringPool*)’:
frameworks/base/tools/aapt/StringPool.cpp:33:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/ResourceTable.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/ResourceTable.h:10,
from frameworks/base/tools/aapt/ResourceTable.cpp:8:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Images.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/ResourceTable.h:10,
from frameworks/base/tools/aapt/Images.h:10,
from frameworks/base/tools/aapt/Images.cpp:9:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Resource.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
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Resource.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
frameworks/base/tools/aapt/Resource.cpp: In function ‘bool applyFileOverlay(Bundle*, const android::sp<AaptAssets>&, android::sp<ResourceTypeSet>*, const char*)’:
frameworks/base/tools/aapt/Resource.cpp:546:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
frameworks/base/tools/aapt/Resource.cpp:550:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
frameworks/base/tools/aapt/Resource.cpp:566:98: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/SourcePos.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
host C++: aapt <= frameworks/base/tools/aapt/ZipEntry.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
host C++: aapt <= frameworks/base/tools/aapt/ZipFile.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
In file included from frameworks/base/tools/aapt/ZipFile.cpp:26:0:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: libutils <= frameworks/base/libs/utils/Asset.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
host C++: libutils <= frameworks/base/libs/utils/AssetDir.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
host C++: libutils <= frameworks/base/libs/utils/AssetManager.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
host C++: libutils <= frameworks/base/libs/utils/BufferedTextOutput.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
host C++: libutils <= frameworks/base/libs/utils/CallStack.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
host C++: libutils <= frameworks/base/libs/utils/Debug.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
host C++: libutils <= frameworks/base/libs/utils/FileMap.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
host C++: libutils <= frameworks/base/libs/utils/Flattenable.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
host C++: libutils <= frameworks/base/libs/utils/ObbFile.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
host C++: libutils <= frameworks/base/libs/utils/Pool.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
host C++: libutils <= frameworks/base/libs/utils/PackageRedirectionMap.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/PackageRedirectionMap.cpp: In member function ‘uint32_t android::PackageRedirectionMap::lookupRedirection(uint32_t)’:
frameworks/base/libs/utils/PackageRedirectionMap.cpp:121:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/base/libs/utils/PackageRedirectionMap.cpp:129:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
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]:~/roms/themes$
Try this:
http://bicosyes.com/building-android-error-passing-const-androidrefbaseweakref_impl/
Code:
(cd out/target/product/generic/system/usr/srec/config/en.us/grammars; rm -f phone_type_choice.Grev2.det.txt phone_type_choice.map phone_type_choice.omap phone_type_choice.P.txt phone_type_choice.params phone_type_choice.PCLG.txt phone_type_choice.script)
target Prebuilt: (out/target/product/generic/system/bin/monkey)
target Prebuilt: (out/target/product/generic/system/usr/share/bmd/RFFspeed_501.bmd)
target Prebuilt: (out/target/product/generic/system/usr/share/bmd/RFFstd_501.bmd)
host C: adb <= system/core/adb/adb.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/adb/adb.c: In function ‘connect_device’:
system/core/adb/adb.c:988:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: adb <= system/core/adb/console.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport_local.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport_usb.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/commandline.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/adb_client.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/sockets.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/services.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/file_sync_client.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/get_my_path_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/usb_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/utils.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/usb_vendors.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/adb/usb_vendors.c: In function ‘build_path’:
system/core/adb/usb_vendors.c:175:74: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: adb <= system/core/adb/fdevent.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
Code:
sudo apt-get install lib32ncurses5-dev
Code:
sudo apt-get install libncurses5-dev
Maybe U have to reboot after installing this.
icke said:
Code:
sudo apt-get install lib32ncurses5-dev
Code:
sudo apt-get install libncurses5-dev
Maybe U have to reboot after installing this.
Click to expand...
Click to collapse
This is linux :highfive:
khuongkk said:
This is linux :highfive:
Click to expand...
Click to collapse
Kubuntu 12.04.1 to be exact
I get a ton of errors stating _FORTIFY_SOURCE
Code:
true
Install: out/host/linux-x86/bin/mkyaffs2image
host Prebuilt: monkeyrunner (out/host/linux-x86/obj/EXECUTABLES/monkeyrunner_intermediates/monkeyrunner)
Install: out/host/linux-x86/bin/monkeyrunner
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
[email protected]:~/roms/themes$
full error
http://paste.kde.org/563048/
raziel23x said:
full error
http://paste.kde.org/563048/
Click to expand...
Click to collapse
How about googling, binging, yahooing...whatever...your errors! Was trying to help u and your answers was just giving me some error codes!
Should i chew how to use ubuntu?!

Building CM: Error 126 --- Solved

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.

Building Lineage OS for gemini is broken

Hi there,
It's my first time to try to build LineageOS from source for Mi 5 (gemini), and I am following official instructions here wiki lineageos org gemini_build html
But I got errors after runing 'brunch gemini'. Any help are welcome, thanks very much!
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170130-UNOFFICIAL-gemini
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/root/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/root/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE gemini
build/core/java.mk:334: warning: overriding commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/root/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by '/root/android/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/root/android/system'
#### make failed to build some targets (45 seconds) ####

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

Trouble compiling for my device (D410)

So, after a lot of effort (documentation on ROM building won't make it any easier), I managed to reach the last stage (the building process itself with "brunch w7") on LineageOS 14.1. But this happens: (OBS: cut some text before this part, just a bunch of text commands)
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190908-UNOFFICIAL-w7
TARGET_PRODUCT=lineage_w7
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_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.0.0-27-generic-x86_64-with-LinuxMint-19.2-tina
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/android/android/lineage14/out
============================================
Checking build tools versions...
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: ‘/home/android/android/lineage14/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Arquivo ou diretório inexistente
build/core/dex_preopt.mk:74: warning: overriding commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
build/core/dex_preopt.mk:74: warning: ignoring old commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 328/34549] host Java: tagsouplib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/tagsouplib_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 469/34549] host Java: antlr-runtime (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 487/34549] host Java: guavalib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
[ 1% 611/34549] host Java: jsilver (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/jsilver_intermediates/classes)
Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 683/34549] host Java: doclava (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 2% 693/34549] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/android/android/lineage14/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertiva "cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))" falhou.
Aborted (core dumped)
[ 2% 693/34549] target Java: core-all (/home/android/android/lineage14/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/android/android/lineage14'
#### make failed to build some targets (03:36 (mm:ss)) ####
[email protected]:~/android/lineage14
and I don't know what to do now. Can someone help if I'm doing something wrong?

Categories

Resources