[Q] [Q/A] CM14 Compilation Failed - Honor 5X Questions & Answers

Hello , everybody . i have some problems when i compile CM14 ROM for Huawei Honor 5X
[ 0% 33/40183] host Executable: fastboot (/home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/fastboot)
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/bootimg_utils.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/engine.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/fastboot.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/fs.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/protocol.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/socket.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/tcp.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/udp.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/util.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/usb_linux.o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/util_linux.o -Wl,--whole-archive -Wl,--no-whole-archive /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libziparchive-host_intermediates/libziparchive-host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libext4_utils_host_intermediates/libext4_utils_host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libsparse_host_intermediates/libsparse_host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libz_intermediates/libz.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libdiagnose_usb_intermediates/libdiagnose_usb.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_host_intermediates/libgtest_host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libf2fs_utils_host_intermediates/libf2fs_utils_host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libf2fs_dlutils_host_intermediates/libf2fs_dlutils_host.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libselinux_intermediates/libselinux.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a /home/jira/NG7/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a -Wl,-rpath-link=/home/jira/NG7/out/host/linux-x86/obj/lib -Wl,-rpath,\\\$ORIGIN/../lib64 -Wl,-rpath,\\\$ORIGIN/lib64 -L/home/jira/NG7/out/host/linux-x86/obj/lib -m64 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib64/ -target x86_64-linux-gnu -ldl -rdynamic -Wl,-rpath,. -pie -nodefaultlibs -o /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/fastboot -lpthread -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc"
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: /home/jira/NG7/out/host/linux-x86/obj/EXECUTABLES/fastboot_intermediates/fastboot.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/lib/Scrt1.o(.text+0x20): error: undefined reference to 'main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Click to expand...
Click to collapse

asanan1 said:
Hello , everybody . i have some problems when i compile CM14 ROM for Huawei Honor 5X
Click to expand...
Click to collapse
maybe @crpalmer or @BadDaemon can help you with this.

Nope. CM14 is not yet ready in any way, just look at the amount of patches still coming in (not features but fixes). And there are no patches for our kiwi yet. So you are either on your own or need to wait until we (mainly crpalmer) come up with sources

BadDaemon said:
Nope. CM14 is not yet ready in any way, just look at the amount of patches still coming in (not features but fixes). And there are no patches for our kiwi yet. So you are either on your own or need to wait until we (mainly crpalmer) come up with sources
Click to expand...
Click to collapse
I hope it comes fast

Are you compiling with openJDK 7 or 8?

Cogra147 said:
Are you compiling with openJDK 7 or 8?
Click to expand...
Click to collapse
On marshmallow and up it's JDK 8

Related

Tutorial: How to build a custom rom

Hey,
Today im gonna show you how to make a custom rom based on CM7 for Xperia Ray.
What you need:
1. A computer with atleast 50GB free space
2. A PC with atleast a dualcore CPU and atleast 1,5 GB ram and a 64bits OS.
3. A PC with Linux Mint or Ubuntu
4. A stable and fast internet connection
Click to expand...
Click to collapse
Step 1: Setting up the build machine
1. Open up the terminal and paste in the correct command for the distro you use:
Ubuntu 11.04:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
Click to expand...
Click to collapse
Newer than Ubuntu 11.04:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev
Click to expand...
Click to collapse
2. When the apt-get installation is done, type in this code in the Terminal.
mkdir -p ~/bin
mkdir -p ~/android/system
PATH=~/bin:$PATH
Click to expand...
Click to collapse
Step 2: Setting up the Repo Command
1. Enter this code in the Terminal:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Click to expand...
Click to collapse
Step 3: Downloading the sourcecode
1. Type this into the Terminal to start downloading the CM sourcecode:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j4
Click to expand...
Click to collapse
If you want to compile from jellybean sources, type this instead:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean-stable
Click to expand...
Click to collapse
Hint:
If you want higher download speed and you have faster computer, make the J value higher, something around 10 is usually good for downloading sources.
Click to expand...
Click to collapse
If you want RomManager in your custom rom, use this command:
~/android/system/vendor/cyanogen/get-rommanager
Click to expand...
Click to collapse
2. Download Android-SDK by following this video tutorial:
http://www.youtube.com/watch?feature=player_embedded&v=dfdpYFMax8M
Step 4: Copy proprietary files:
!!!You dont need to do this to get a working rom!!!
Recommended roms for this:
CM7 or Stock Gingerbread
1. Types this into the terminal:
cd ~/android/system/device/semc/shakira/
./extract-files.sh
Click to expand...
Click to collapse
2. When finished with the previous step, type this into the terminal:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Click to expand...
Click to collapse
Put correct path to ADB
3. Type:
./adb devices
If you recive:
"List of devices attached ????????????? no permissions”
Then type this into the Terminal:
sudo touch /etc/udev/rules.d/51-android.rules && sudo sh -c "echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYSFS{idProduct}=="612e", MODE="0666"' >> /etc/udev/rules.d/51-android.rules" && sudo chmod 644 /etc/udev/rules.d/51-android.rules
Click to expand...
Click to collapse
If something goes wrong, type:
lsusb
Click to expand...
Click to collapse
To see which devices is connected, type:
sudo restart udev
sudo ./adb kill-server
sudo ./adb start-server
Click to expand...
Click to collapse
And your ready
Step 5: Setting build enviroment
Type this into your terminal:
cd ~/android/system/
. build/envsetup.sh && lunch
Click to expand...
Click to collapse
You will see a lot of devices, select Urushi if your gonna compile for Xperia Ray.
Step 6: Building the custom rom
Type this into the Terminal to get your custom rom compiled:
make -j4 otapackage
Click to expand...
Click to collapse
It will take a while so be patient, and when its ready you will have your rom as a zip file.
If you liked this tutorial, please press the thanks button
How about based in jelly bean?
Sent from my Xperia Ray using xda app-developers app
zani18 said:
How about based in jelly bean?
Sent from my Xperia Ray using xda app-developers app
Click to expand...
Click to collapse
It should be almost the same, just different sources, I dont know where to find the FXP CM Jellybean Sources, so take a look for yourself.
The basics Lin Linux
Good work brov!!
Sent from my SK17 using xda app-developers app
Allen Hu said:
The basics Lin Linux
Good work brov!!
Sent from my SK17 using xda app-developers app
Click to expand...
Click to collapse
Thanks, if you liked my work, please press the thanks button
devstaff said:
Thanks, if you liked my work, please press the thanks button
Click to expand...
Click to collapse
Pressed
BTW what is the Git-Read Only??
Allen Hu said:
Pressed
BTW what is the Git-Read Only??
Click to expand...
Click to collapse
Idk, I used this myself, but I havent got anything about git read only:/
Thanks ......do you know how to make a custom rom with the rom kitchen and cywign ???
Really nice guide.....hope I upgrade my comp.soon to start build cm based roms .
sent straight from hell
dadierv17 said:
Thanks ......do you know how to make a custom rom with the rom kitchen and cywign ???
Click to expand...
Click to collapse
Yes, I know that also, I can make another tutorial about that
Sent from Xperia Ray powered by Jellybean using Tapatalk 2.
if you could I would really appreciate it, because I have several concerns with my rom
Great ! After my final exam im going to start be a newbie dev xperia ray will be having one newbie dev and i will need the help of master like u all
Support me?
Sent from my ST18i using xda premium
devstaff said:
It should be almost the same, just different sources, I dont know where to find the FXP CM Jellybean Sources, so take a look for yourself.
Click to expand...
Click to collapse
isn't enough to change in "Step 3: Downloading the sourcecode"...
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
to
repo init -u git://github.com/CyanogenMod/android.git -b jellybean-stable
I'm trying it now in ubuntu virtual machine and sources are downloaded, cut from terminal...
Code:
From git://github.com/CyanogenMod/android_packages_apps_Contacts
* [new branch] jellybean-stable -> github/jellybean-stable
finchcz said:
isn't enough to change in "Step 3: Downloading the sourcecode"...
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
to
repo init -u git://github.com/CyanogenMod/android.git -b jellybean-stable
I'm trying it now in ubuntu virtual machine and sources are downloaded, cut from terminal...
Code:
From git://github.com/CyanogenMod/android_packages_apps_Contacts
* [new branch] jellybean-stable -> github/jellybean-stable
Click to expand...
Click to collapse
Thanks for info, Ill add it to the main post
Sent from Xperia Ray powered by Jellybean using Tapatalk 2.
do you know this error and how to avoid? thx
Code:
Receiving objects: 99% (613428/613542), 952.14 MiB | 109 KiB/s
remote: Counting objects: 613542, done.
remote: Compressing objects: 100% (192910/192910), done.
Receiving objects: 100% (613542/613542), 952.21 MiB | 160 KiB/s, done.
Resolving deltas: 100% (372684/372684), done.
error: Cannot fetch CyanogenMod/android_frameworks_base
finchcz said:
do you know this error and how to avoid? thx
Code:
Receiving objects: 99% (613428/613542), 952.14 MiB | 109 KiB/s
remote: Counting objects: 613542, done.
remote: Compressing objects: 100% (192910/192910), done.
Receiving objects: 100% (613542/613542), 952.21 MiB | 160 KiB/s, done.
Resolving deltas: 100% (372684/372684), done.
error: Cannot fetch CyanogenMod/android_frameworks_base
Click to expand...
Click to collapse
I downloaded the sources earlier today, and it worked fine, so try to download them again
finchcz said:
do you know this error and how to avoid? thx
Code:
Receiving objects: 99% (613428/613542), 952.14 MiB | 109 KiB/s
remote: Counting objects: 613542, done.
remote: Compressing objects: 100% (192910/192910), done.
Receiving objects: 100% (613542/613542), 952.21 MiB | 160 KiB/s, done.
Resolving deltas: 100% (372684/372684), done.
error: Cannot fetch CyanogenMod/android_frameworks_base
Click to expand...
Click to collapse
just try to sync the repo again...if your internet connection is slow (or wonky) you may want to change the -j4 to something smaller,
like -j2....so in terminal try: repo sync -j2
hmm, now running for couple of hours with j10 and stucked at:
Code:
Receiving objects: 99% (613428/613542), 952.41 MiB | 282 KiB/s
will try tomorrow with lower value, thx for hint
finchcz said:
hmm, now running for couple of hours with j10 and stucked at:
Code:
Receiving objects: 99% (613428/613542), 952.41 MiB | 282 KiB/s
will try tomorrow with lower value, thx for hint
Click to expand...
Click to collapse
No worries...the first time takes the longest....I think it took me 3 days the first time..but once you have the repository the subsequent sync's will be much faster. ChampionSwimmer also has a tut for building AOKP in the Arc section, but it works for most of the Xperia devices: http://forum.xda-developers.com/showthread.php?t=1767578
This thread is a sticky now, thanks to the mods
Sent from Xperia Ray powered by Jellybean using Tapatalk 2.

[GUIDE] How to Setup Ubuntu 16.04 LTS Xenial Xerus for Compiling Android ROMs

--- reprinted with permission from nathanpfry.com ---
--- If you would rather use a ready-to-go Virtual Machine based on these instructions, check out this post! ---​
With a new version of Ubuntu comes an update to my guide for setting up a build environment to compile Android ROMs. The aim of this is to simplify the configuration process and teach a little bit about the command line.
Follow the directions step-by-step. All you have to do is copy and paste the code in order, it will be up and running in no time!
This guide applies to all variations of Ubuntu 16.04 LTS Xenial Xerus 64 bit. Do not use the 32 Bit version.
Also, PAY CLOSE ATTENTION when to use "sudo" and when to not. It can cause unexpected issues if you do something as root that you shouldn't.
Much thanks goes out to Google, ProTekk, Canonical, and everyone else that I read a random paragraph here and snippet there.
Ready to begin?
1) Unless it's a completely fresh Ubuntu installation, many people might have the wrong version of Java installed. Let's fix that first.
The command below makes sure you're starting with a clean slate. Copy and paste it into a terminal (command prompt) window:
Code:
sudo apt-get remove openjdk-* icedtea-* icedtea6-*
If necessary, follow the on-screen instructions to remove any stray Java versions. Otherwise, move on to the next step.
2) Install the main build tools with this command:
Code:
sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven libc6-dev linux-libc-dev gcc-multilib g++-5-multilib libssl-dev
3) "repo" communicates with git servers for all that precious source code. The next command will grab it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
4) Use your favorite text editor to open ~/.bashrc - I like nano:
Code:
nano ~/.bashrc
5) At the very bottom (use the Page Down key) paste this code to a new line:
Code:
export PATH=~/bin:$PATH
export USE_CCACHE=1
6) Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
7) In the terminal, navigate to where you would like to download the Android source code. The commands below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external (even 3.0) will be comparatively slow. Here we go:
Code:
mkdir ~/android
cd ~/android
8) Now you're going to initialize the repo. This is where you decide the flavor of Android you want to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of this tutorial, here's the command for Cyanogenmod 13 (Marshmallow) :
Code:
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
9) Time to get the source, many gigabytes of downloading await.
Don't worry, it's automated. It's the last one!
Code:
repo sync
Check back periodically every hour or so. It all depends on how fast your connection is.
10) Now, for Java. Some ROMs (Android Lollipop / CM 12.1 and below) require OpenJDK 7. Marshmallow / CM 13 and above require OpenJDK 8. If you're building for reallllllly old devices, OpenJDK 6. Here's the easiest way to install on Ubuntu 16.04.
First, add the PPA for OpenJDK:
Code:
sudo add-apt-repository ppa:openjdk-r/ppa
Then, install the appropriate version of Java. In this case we're going to use 7, because it's popular. Simply replace openjdk-7-jdk with 6 or 8 as needed.
Code:
sudo apt-get update && sudo apt-get install openjdk-7-jdk
That's it! Everything should be ready to go.
If this guide helped you out, feel free to click the Thanks! button or donate to the new hardware fund​
Observations
I just happened to have a literally minutes-old ISO download of this version of Kubuntu (release - replacing beta 2) ready to install when I saw this, therefore I followed it to the T.
It was, in fact, helped that I did the repo sync prior to washing my hands before dinner.
After eating, putting away leftovers, etc. (the usual post-dinner cleanup detail), I came back to find the repo sync had completed.
Next was installing openjdk8 - only to find that it had, in fact, been already grabbed when I grabbed the prereqs - then I remembered why. Between Wiley and Xenial, both JDK and OpenJDK had finished their respective transitions from 7 to 8. Still, better safe than sorry - after making sure that both the Java-related settings matched (the last two sudos), I ran repo sync one last time before writing this post.
All five hundred sixteen projects in the CM-13 tree.
What helped - having loads of bandwidth. (No - I'm not on a college connection; I have a DOCSIS 3.0 cable modem - specifically an ARRIS SurfBoard SB-6183 - and Comcast's second SLOWEST DOCSIS 3 tier (Performance Pro) - which is STILL a frigging crapton of bandwidth; I've generally hit ten megaBYTES per second of transfer when connecting via Team Akamai - no git connection is gonna tax that.
Unless there is a massive-to-monstrous surge in projects against CM-13's tree, not a single subsequent repo sync will be as massive as the first one - which itself was less than thirty minutes.
(Each repo sync after the first downloads/uploads only the CHANGES in the tree - it's the FIRST sync that's the time and bandwidth eater due to it pulling the entire tree.)
Is there a way to install JDK-7 in 16.04 ? Some Roms needed JDK7
NoN1979 said:
Is there a way to install JDK-7 in 16.04 ? Some Roms needed JDK7
Click to expand...
Click to collapse
OP updated with directions at the bottom. Thanks for the support!
@sylentprofet thanks for this guide man:good:
sylentprofet said:
OP updated with directions at the bottom. Thanks for the support!
Click to expand...
Click to collapse
hi may i ask for some help here? compiling cm-12.1 on ubuntu 16.04. does my errors are related with 16.04 ? i had no problem with 15.10. thank you.
http://pastebin.com/1X0WcZAr
I set my ubuntu 16.04 lts like your guide thread, But I build CM 12.1, It show me 'unsupported reloc 43 against global symbol stderr'
Code:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:31: error: unsupported reloc 43
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:787: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to fix it?
It show always what I build Android ROMs. :/
CNBLACK said:
I set my ubuntu 16.04 lts like your guide thread, But I build CM 12.1, It show me 'unsupported reloc 43 against global symbol stderr'
Code:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:31: error: unsupported reloc 43
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:787: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to fix it?
It show always what I build Android ROMs. :/
Click to expand...
Click to collapse
Same problem here, see post above
desalesouche said:
Same problem here, see post above
Click to expand...
Click to collapse
humm.. I found solution this issue, but It is temporarily solution.
Code:
ln -sf /usr/bin/ld.gold /home/(your account name)/(build source repository)/prebuilts/gcc/linux-x86/host/(glibc version)/x86_64-linux/bin/ld
check your glibc version in terminal error line.
And If you find it, You need to type this command. And It'll be work.
And It has a one more problem.
Code:
mkdir -p /home/cnblack/build/sgs2/12.1/out/target/product/i9100/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/cnblack/build/sgs2/12.1/out/host/linux-x86/bin:$PATH /home/cnblack/build/sgs2/12.1/out/host/linux-x86/bin/imgdiff /home/cnblack/build/sgs2/12.1/out/target/product/i9100/boot.img /home/cnblack/build/sgs2/12.1/out/target/product/i9100/recovery.img /home/cnblack/build/sgs2/12.1/out/target/product/i9100/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
Error: inflate failed [invalid block type] at file offset [2535779]
imgdiff only supports gzip kernel compression, did you try CONFIG_KERNEL_LZO?
failed to break apart target image
I don't know Why I have to fix this trouble :/
BuilduntuVM
@sylentprofet: Thanks a lot for that guide.
Do you consider to release an Ubuntu 16.04 LTS based BuilduntuVM (http://forum.xda-developers.com/showthread.php?t=2585828) sometime?
revuwa said:
@sylentprofet: Thanks a lot for that guide.
Do you consider to release an Ubuntu 16.04 LTS based BuilduntuVM (http://forum.xda-developers.com/showthread.php?t=2585828) sometime?
Click to expand...
Click to collapse
Yes, definitely!
I started work on it, but ran into some issues with the installation process. Once everything is working nicely I'll post an update.
Thanks for the support!
CNBLACK said:
And It has a one more problem.
I don't know Why I have to fix this trouble :/
Click to expand...
Click to collapse
It looks like you're compiling CM 12.1, which is based on Lollipop.
Are you using OpenJDK 7 instead of 8? L uses 7 to compile, 8 is only for M onward.
There are directions at the bottom of the post to switch back to OpenJDK 7 if needed.
Reserved
CNBLACK said:
I set my ubuntu 16.04 lts like your guide thread, But I build CM 12.1, It show me 'unsupported reloc 43 against global symbol stderr'
Code:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: ~/cm12/out/host/linux-x86/obj32/EXECUTABLES/third_party_libvpx_libvpx_obj_int_extract_arm_host_gyp_intermediates/third_party/libvpx/source/libvpx/build/make/obj_int_extract.o: unsupported reloc 43 against global symbol stderr
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:31: error: unsupported reloc 43
external/chromium_org/third_party/libvpx/source/libvpx/build/make/obj_int_extract.c:787: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to fix it?
It show always what I build Android ROMs. :/
Click to expand...
Click to collapse
I used this fix from cyanogenMOD to solve that issue......good luck
for:
art / build/Android.common_build.mk
# Clang build support.
# Host.
ART_HOST_CLANG := false
- ifneq ($(WITHOUT_HOST_CLANG),true)
+ ifeq ($(WITHOUT_HOST_CLANG),false)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif
REF: http://review.cyanogenmod.org/#/c/120824/2/build/Android.common_build.mk
fgdn17 said:
I used this fix from cyanogenMOD to solve that issue......good luck
for:
art / build/Android.common_build.mk
# Clang build support.
# Host.
ART_HOST_CLANG := false
- ifneq ($(WITHOUT_HOST_CLANG),true)
+ ifeq ($(WITHOUT_HOST_CLANG),false)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif
REF: http://review.cyanogenmod.org/#/c/120824/2/build/Android.common_build.mk
Click to expand...
Click to collapse
I have it does not work, to build 12.1
should have specified: Marshmallow, doesn't work on Lollipop....
the "real" issue appears to be with libc6 and binutils
libc6 = 2.19-22
binutils = 2.25-4
seems depending on your combination of these sometimes a build works
correctly and sometimes not......so until a stable combo is pushed...this is a temp fix IMO
OP here.
Would it be more helpful for everyone if I separated the installation of OpenJDK into a different step, so you guys can choose 7 or 8 depending on which version of Android being built?
Thanks for the responses everyone!
CNBLACK said:
humm.. I found solution this issue, but It is temporarily solution.
Code:
ln -sf /usr/bin/ld.gold /home/(your account name)/(build source repository)/prebuilts/gcc/linux-x86/host/(glibc version)/x86_64-linux/bin/ld
check your glibc version in terminal error line.
And If you find it, You need to type this command. And It'll be work.
Click to expand...
Click to collapse
using this method , and the results worked well , thanks dude
qoejohn said:
using this method , and the results worked well , thanks dude
Click to expand...
Click to collapse
It just only work in CM 12.1, CM 13.0 is not needed to do this method

[Q]Build errors compiling Lineage 14.1

Hi everyone,
I've been an XDA reader for a few years and up until now just flashed new roms every month or two to keep my S2 alive.
I just registered on XDA after deciding to try building roms from source. I have a i9100 and thought the easiest thing to try first was to compile an ordinary Lineage 14.1 rom without modification.
So, I installed ubuntu 16.04 LTS as the OS(not VM), then as per the instructions on the Lineage page, installed the SDK, build packages, and JDK. Then I executed the repo binary and put ~/bin in the correct path and updated the environment. After this I did repo init and repo sync. I tried breakfast at this stage which failed, but after extracting proprietry blobs from the device, breakfast succeeded.
After this I used croot and brunch, but I get these errors:
Code:
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/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/Clyde00/android/lineage/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
build/core/base_rules.mk:183: *** vendor/samsung/galaxys2-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libUMP already defined by hardware/samsung/exynos4/hal/libUMP.
build/core/ninja.mk:166: recipe for target '/home/Clyde00/android/lineage/out/build-lineage_i9100.ninja' failed
make: *** [/home/Clyde00/android/lineage/out/build-lineage_i9100.ninja] Error 1
make: Leaving directory '/home/Clyde00/android/lineage'
#### make failed to build some targets (11 seconds) ####
At this point I am stuck. I'm sure there is something simple I'm missing; I've been searching for answers for the last few days and haven't been able to come up with anything to fix these errors. I'm thinking something needs to be added to roomservice.xml or something. I'm a bit lost. Any help would be much appreciated.
Clyde00 said:
Hi everyone,
I've been an XDA reader for a few years and up until now just flashed new roms every month or two to keep my S2 alive.
I just registered on XDA after deciding to try building roms from source. I have a i9100 and thought the easiest thing to try first was to compile an ordinary Lineage 14.1 rom without modification.
So, I installed ubuntu 16.04 LTS as the OS(not VM), then as per the instructions on the Lineage page, installed the SDK, build packages, and JDK. Then I executed the repo binary and put ~/bin in the correct path and updated the environment. After this I did repo init and repo sync. I tried breakfast at this stage which failed, but after extracting proprietry blobs from the device, breakfast succeeded.
After this I used croot and brunch, but I get these errors:
At this point I am stuck. I'm sure there is something simple I'm missing; I've been searching for answers for the last few days and haven't been able to come up with anything to fix these errors. I'm thinking something needs to be added to roomservice.xml or something. I'm a bit lost. Any help would be much appreciated.
Click to expand...
Click to collapse
I'm at work atm... I know how to solve the libUMP problem... I will reply later today...
Sub_Zero2 said:
I'm at work atm... I know how to solve the libUMP problem... I will reply later today...
Click to expand...
Click to collapse
Thanks for the reply. I already did a search for this issue and found someone who suggested to delete one of the libUMP folders, but this only gave a different error. I would be grateful for any advise for this. I still haven't got any further with these errors. :fingers-crossed:
Clyde00 said:
Thanks for the reply. I already did a search for this issue and found someone who suggested to delete one of the libUMP folders, but this only gave a different error. I would be grateful for any advise for this. I still haven't got any further with these errors. :fingers-crossed:
Click to expand...
Click to collapse
Iirc, you have to delete/comment out two lines in a file. But atm i can not remember the filename of this file. I will have a look at it when I get home, in 3-4 hours.
You have to edit this file: vendor/samsung/galaxys2-common/proprietary/Android.mk
Uncomment these lines with a # om each line:
include $(CLEAR_VARS)
LOCAL_MODULE := libUMP
LOCAL_MODULE_OWNER := samsung
LOCAL_SRC_FILES := system/lib/libUMP.so
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib
include $(BUILD_PREBUILT)
There... Now you should be able to brunch successfully
@Sub_Zero2
Thank you very much for your input. I tried brunch again and got much further, but now I have OOM problems(8gb ram) stopping the build from succeeding. Now I'm doing some searching to solve this issue.
I need to figure out how(and whether to) change JACK_SERVER_VM_ARGUMENTS or change jack.server.max-service= to a lower value.
EDIT: I got a successful build! For anyone having similar out of memory errors, I ran these commands before starting brunch:
Code:
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
Clyde00 said:
@Sub_Zero2
Thank you very much for your input. I tried brunch again and got much further, but now I have OOM problems(8gb ram) stopping the build from succeeding. Now I'm doing some searching to solve this issue.
I need to figure out how(and whether to) change JACK_SERVER_VM_ARGUMENTS or change jack.server.max-service= to a lower value.
EDIT: I got a successful build! For anyone having similar out of memory errors, I ran these commands before starting brunch:
Click to expand...
Click to collapse
There you go!
Good luck!
[GUIDE] Build LineageOS 14.1
See my posts in this thread. This guide works for all lineage-13.0 and 14.1 devices. On that note, feel free to try my i9100 builds and the latest bootloader and modem, links in my signature.
anyone know how to solve this
1 error generated. [ 0% 32/81917] target thumb C++: libinit_m... <= device/asus/Z010D/init/init_msm8916.cpp FAILED: /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/asus/msm8916-common/include -I system/core/init -I external/selinux/libselinux/include -I device/asus/Z010D/init -I /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates -I /home/christo/los/out/target/product/Z010D/gen/STATIC_LIBRARIES/libinit_msm8916_intermediates -I libnativehelper/include/nativehelper \$(cat /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_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/christo/los/out/target/product/Z010D/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 -march=armv7-a -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 -Wall -DANDROID_TARGET=\\\"msm8916\\\" -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.d -o /home/christo/los/out/target/product/Z010D/obj_arm/STATIC_LIBRARIES/libinit_msm8916_intermediates/init_msm8916.o device/asus/Z010D/init/init_msm8916.cpp" device/asus/Z010D/init/init_msm8916.cpp:54:7: error: using declaration requires a qualified name using property_set; ^ 1 error generated. [ 0% 40/81917] target C++: libsdcard <= system/core/sdcard/fuse.cpp ninja: build stopped: subcommand failed. 06:53:31 ninja failed with: exit status 1 make: *** [build/core/main.mk:21: run_soong_ui] Error 1 make: Leaving directory '/home/christo/los' #### make failed to build some targets (01:08 (mm:ss)) #### [email protected]:~/los$

Sony's AOSP Pie 9.0 Guide

Sony just posted a guide in their site to build AOSP 9.0 for our devices.
https://developer.sony.com/develop/...build-instructions/build-aosp-android-p-9-0-0
I try to build this next week stay tuned
VinBenzin810 said:
I try to build this next week stay tuned
Click to expand...
Click to collapse
That's great! Thanks a lot!
Sent from my [device_name] using XDA-Developers Legacy app
VinBenzin810 said:
I try to build this next week stay tuned
Click to expand...
Click to collapse
TriboDoP said:
That's great! Thanks a lot!
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Redcalibur said:
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Click to expand...
Click to collapse
Thanks for trying anyway! Being new to sony i also don't want to breake the camera (altough thankfully there is a custom kernel + twrp + camera-fix) so i am uncertain if i should wait for official android 9 or AOSP android 9 (customroms would be even better).
On my other devices (samsung,oneplus) i use only customroms but at the moment there is very little choice here.
But i love the xz1 with the 835 it is fast as lightning!
Regards!
Sent from my [device_name] using XDA-Developers Legacy app
Redcalibur said:
I'm actually trying to build it myself now. It's the first time I'm doing it, but their guide is clear and easy to follow. I just need someone to test it when I'm done, my own device isn't unlocked yet and I kinda don't want to unless the bugs are minor.
I'm at step 4 downloading/syncing it right now. I'll let you know when I'm done & upload it in the OP.
Edit: I'll leave it to someone who knows it better. I got stuck at building it (step 5.3), getting an error at the first 10 seconds.
Click to expand...
Click to collapse
Which Error you get ? Write me an pn
VinBenzin810 said:
Which Error you get ? Write me an pn
Click to expand...
Click to collapse
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Redcalibur said:
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Click to expand...
Click to collapse
I send you an PM look there
Redcalibur said:
Hi, I sent the PM but couldn't find it in between my "sent messages" folder. I'll just send it here too for future references aswell.
So I tried to reproduce the error after running a ./repo_update.sh, but got another error. This time, it progressed a little further. Here are some screens of my terminal.
https://imgur.com/a/4AdBMrp
Click to expand...
Click to collapse
Except
- repo_update.sh hardware/qcom/gps
- vendor-qcom-opensource-location
Poplar xperiadev pie is "today build-able" but doesn't boot yet; good news are xperiadev moves to kernel 4.9; will probably have to wait for SoftwareBinairies v16 Pie specifics...
Will upload poplar_Pie as soon as it will boot...
btw: I've uploaded latest twrp 3.2.3 with OEM.img flash support (and BusyBox) https://androidfilehost.com/?fid=1322778262903981152
Any news about the build?
Getting below error .. doesn't seem like kernel is syncing. Any ideas?
[ 66% 2/3] glob frameworks/base/core/java/**/*.java
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-poplar', needed by 'out/target/product/poplar/kernel', missing and no known rule to make it
16:01:44 ninja failed with: exit status 1
#### failed to build some targets (07:25 (mm:ss)) ####
rsabluebulls said:
Getting below error .. doesn't seem like kernel is syncing. Any ideas?
[ 66% 2/3] glob frameworks/base/core/java/**/*.java
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-poplar', needed by 'out/target/product/poplar/kernel', missing and no known rule to make it
16:01:44 ninja failed with: exit status 1
#### failed to build some targets (07:25 (mm:ss)) ####
Click to expand...
Click to collapse
Just delete kernel/sony/msm-4.9/common-kernel directory and your build will go through a complete rebuild of dbt and kernel.
But without Sony Pie OEm vendor image release, the phone will hang on logo...
Thank you oF2pks - I managed to get further with the compile. This is the next error... any help please?
Copying resources from program jar [/Volumes/Mac_Drive/android-pe/out/target/common/obj/APPS/messaging_intermediates/classes.jar]
[ 60% 52636/87279] build out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52851/87279] build out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52893/87279] build out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
uniq: illegal option -- D
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
[ 60% 52978/87279] Yacc: ss <= external/iproute2/misc/ssfilter.y
external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce
[ 61% 53613/87279] target C: libext4 <= out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c
FAILED: out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.o
/bin/bash -c "prebuilts/misc/darwin-x86/ccache/ccache prebuilts/clang/host/darwin-x86/clang-4691093/bin/clang -I external/iptables/extensions/../include/ -I external/iptables/extensions/.. -I out/target/product/poplar/gen/STATIC_LIBRARIES/libext4_intermediates -I external/iptables/extensions -I external/iptables/extensions -I out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates -I out/target/product/poplar/gen/STATIC_LIBRARIES/libext4_intermediates -I libnativehelper/include_jni \$(cat out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_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 -I frameworks/av/include -isystem out/target/product/poplar/obj/include -isystem kernel/sony/msm-4.9/common-headers/kernel-headers -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -march=armv8-a -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -std=gnu99 -DNO_SHARED_LIBS=1 -DXTABLES_INTERNAL -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DENABLE_IPV4 -DENABLE_IPV6 -D__ANDROID__ -Wall -Werror -Wno-format -Wno-missing-field-initializers -Wno-pointer-arith -Wno-pointer-bool-conversion -Wno-sign-compare -Wno-tautological-pointer-compare -Wno-unused-parameter -fPIC -D_USING_LIBCXX -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.d -o out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.o out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c"
In file included from out/target/product/poplar/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c:11:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 61% 53616/87279] target StaticLib: libv8 (out/target/product/poplar/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
18:47:24 ninja failed with: exit status 1
#### failed to build some targets (05:24:19 (hh:mm:ss)) ####
rsabluebulls said:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 61% 53616/87279] target StaticLib: libv8 (out/target/product/poplar/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
18:47:24 ninja failed with: exit status 1
#### failed to build some targets (05:24:19 (hh:mm:ss)) ####
Click to expand...
Click to collapse
Noob here. Does this (https://medium.com/@christopherney/building-android-o-with-a-mac-da07e8bd94f9) help?
christopherney said:
If the following error is raised during the Android building process:
external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:10: fatal error: 'linux/netfilter/xt_DSCP.h' file not found
#include <linux/netfilter/xt_DSCP.h>
Please check the filename user or lower case. Remember that the Android building process is case-sensitive.
Click to expand...
Click to collapse
Does anyone tried any Android Pie Treble GSI roms on our device? is it working fine?
Anyone able to assist with the missing separator error in Android.mk which I'm receiving now?
many thanks
--------------------------
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_g8341
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.009
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/poplar/clean_steps.mk) was changed, regenerating...
out/build-aosp_g8341.ninja is missing, regenerating...
[2/947] including art/Android.mk ...
art/build/Android.common.mk:50: warning: unsupported HOST_ARCH=x86_64
[119/947] including device/sony/common/Android.mk ...
hardware/qcom/gps/sdm845/android/Android.mk:48: error: missing separator.
19:53:11 ckati failed with: exit status 1
#### failed to build some targets (57 seconds) ####
arslancn said:
Does anyone tried any Android Pie Treble GSI roms on our device? is it working fine?
Click to expand...
Click to collapse
I tested some ROMs, but I will restart them in Sony LOGO. I don't know if anyone is successful. Maybe I still need to flash something.
Anyone come across a StaticLib: libv8src_32 related compiling issue like mine shown in the log below?
Many thanks - got up to 64% clean build...
make[3]: *** Waiting for unfinished jobs....
INSTALL usr/include/scsi/ufs/ (2 files)
INSTALL usr/include/linux/caif/ (2 files)
INSTALL usr/include/linux/byteorder/ (2 files)
INSTALL usr/include/linux/can/ (5 files)
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
make[4]: *** [usr/include/linux/byteorder/.install] Error 1
make[4]: *** [usr/include/linux/caif/.install] Error 1
make[4]: *** [usr/include/linux/can/.install] Error 1
make[4]: *** [usr/include/scsi/ufs/.install] Error 1
make[3]: *** [can] Error 2
make[3]: *** [caif] Error 2
make[3]: *** [byteorder] Error 2
make[3]: *** [ufs] Error 2
make[2]: *** [linux] Error 2
make[2]: *** [scsi] Error 2
make[1]: *** [headers_install] Error 2
make: *** [sub-make] Error 2
[ 64% 56247/87336] target StaticLib: libv8src_32 (out/target/product/poplar/obj_arm/STATIC_LIBRARIES/libv8src_intermediates/libv8src.a)
ninja: build stopped: subcommand failed.
15:16:21 ninja failed with: exit status 1
#### failed to build some targets (49:07 (mm:ss)) ####
Hi all, anyone perhaps have an idea on the below error or perhaps came across it before? (PS. 8.1 ASOP Sony builds without any issues, latest SEP release), this is for Android Pie latest asop
[ 63% 55359/87336] Building Kernel Headers
FAILED: /Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.headers_install_stamp
/bin/bash -c "(if [ ! -z "aosp_yoshino_poplar_defconfig" ]; then rm -f ..//Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" aosp_yoshino_poplar_defconfig; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" headers_install; fi ) && (if [ "aosp_yoshino_poplar_defconfig" != "aosp_yoshino_poplar_defconfig" ]; then echo "Used a different defconfig for header generation"; rm -f ..//Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" aosp_yoshino_poplar_defconfig; fi ) && (if [ ! -z "" ]; then echo "Overriding kernel config with ''"; echo >> /Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ/.config; make -j10 -C kernel/sony/msm-4.9/kernel O=/Volumes/Extra/androidp_r06/out/target/product/poplar/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/Volumes/Extra/androidp_r06/prebuilts/misc/darwin-x86/ccache/ccache aarch64-linux-android-" oldconfig; fi )"
GEN ./Makefile
#
# configuration written to .config
#
https://developer.sony.com/file/dow...-for-aosp-pie-android-9-0-kernel-4-9-yoshino/ this link maybe useful for you guys

lineageos 16

build fails with the following error
[ 69% 65628/93948] //vendor/lineage/build/soong:generated_kernel_includes generate
FAILED: /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
/home/skoar/android/lineageos/out/soong/host/linux-x86/bin/sbox --sandbox-path /home/skoar/android/lineageos/out/soong/.temp --output-root /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen --copy-all-output -c 'make -j CFLAGS_MODULE="-fno-pic" -C O=__SBOX_OUT_DIR__ ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androideabi-" headers_install' && touch /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
make: *** O=/home/skoar/android/lineageos/out/soong/.temp/sbox985711399: No such file or directory. Stop.
sbox command (make -j CFLAGS_MODULE="-fno-pic" -C O=/home/skoar/android/lineageos/out/soong/.temp/sbox985711399 ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androideabi-" headers_install) failed with err "exit status 2"
[ 69% 65635/93948] //frameworks/base:gen-platform-proto-constants generate
ninja: build stopped: subcommand failed.
11:35:26 ninja failed with: exit status 1
p.s. I'm using prebuilt kernel
Three questions:
1. What device are you building for?
2. Does your device have any working Pie ROM?
3. Did you make the changes in the source needed for using the pre-built kernel?
Nitin
nitin.chobhe said:
Three questions:
1. What device are you building for?
2. Does your device have any working Pie ROM?
3. Did you make the changes in the source needed for using the pre-built kernel?
Nitin
Click to expand...
Click to collapse
1. Lenovo tab4 10 (X304L)
2. No I'm trying to do a bringup
3. Yes added TARGET_PREBUILT_KERNEL in boardconfig and
added the required PRODUCT_COPY_FILES in device.mk
skoar said:
1. Lenovo tab4 10 (X304L)
2. No I'm trying to do a bringup
3. Yes added TARGET_PREBUILT_KERNEL in boardconfig and
added the required PRODUCT_COPY_FILES in device.mk
Click to expand...
Click to collapse
Ok! As far as I understand it, adding just the TARGET_PREBUILT_KERNEL in boardconfig and a change in device make file will not help you. Lineage team (and other ROMs) has done a lot of changes (thousands of commits) in the android/build (and some other) repos as can be seen here:
https://github.com/LineageOS/android_build/commits/lineage-16.0/core/Makefile
So, I would suggest you to build the kernel inline; that would save a lot of your efforts.
Nitin

Categories

Resources