Related
Hi All,
Hope someone can help me with a specific error I am receiving please. I have overcome some errors already but this one, I just cannot see the wood for the trees.
I am new to compiling AOSP. Other than copying a bit from the CM7 repository, everything else is pure AOSP source. I haven't altered anything myself.
Some of the error:
Code:
make: *** [out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.jar] Error 137
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
make: *** [out/target/common/docs/api-stubs-timestamp] Error 45
Preparing output jar [/home/dan/mydroid/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/dan/mydroid/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/classes.jar]
Full Error and some lines above that here:
http://pastebin.com/5QL0bpxC
Any advice and help greatly appreciated.
Thanks in advance, Dan
Edit, if it helps, I'm trying to compile AOSP for the HTC desire (Bravo)
What projects did you fork into from CM? You may have to fork some more in since alot of the packages are codependent.
Thanks for the reply.
I used the cm script to obtain the proprietory files from cm7.0.3
I used hardware/qcom/gps/libbloc-api/android.mk and also a camera folder (off the top of my head can't remember the exact path. It had 2 folders in it, one of which was called test.
That's all though. Both in response to errors received on those modules.
The gps was a LOCATION_MODULE error, which I read up on but by the time I'd finished I'd forgotten what changes I'd made. I knew cm compiled fine so just swapped it out.
Sent from my HTC Desire using XDA App
rootSU said:
I used hardware/qcom/gps/libbloc-api/android.mk
Click to expand...
Click to collapse
did you use the entire package?
if not the entire package I would fork https://github.com/CyanogenMod/android_hardware_qcom_gps into the build from hardare/qcom/gps down
Thanks. I shall try that and feed back
Sent from my HTC Desire using XDA App
No dice I am afraid.
The compile runs for 20 minutes or so before its killed. I'm pretty sure its quite far along.
I've pasted more here:
http://pastebin.com/SDqvuNtc
Last 1500 lines (or just over) if it helps identify where in the process this occurs?
Any further guidance greatly appreciated (as always )
You can try forking in cyanogenmod/framework_base_core
But then you start moving pretty far from aosp
Humm... not sure
Sent from my DROID2 using Tapatalk
Thanks ill look at that and maybe revisit the location module tag too.
It would be nice if the source would just compile "out of the box"
Sent from my HTC Desire using XDA App
Well back to the original gps module and android.mk with LOCAL_MODULE_TAGS =:Optional, I still get errors which are similar:
Code:
Install: out/target/product/bravo/system/lib/libaudio.so
Install: out/target/product/bravo/system/lib/libaudiopolicy.so
Install: out/target/product/bravo/system/lib/libcameraservice.so
target SharedLib: libFFTEm (out/target/product/bravo/obj/SHARED_LIBRARIES/libFFTEm_intermediates/LINKED/libFFTEm.so)
Install: out/target/product/bravo/system/lib/libSR_AudioIn.so
target SharedLib: libandroid (out/target/product/bravo/obj/SHARED_LIBRARIES/libandroid_intermediates/LINKED/libandroid.so)
target SharedLib: libaudioeffect_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libaudioeffect_jni_intermediates/LINKED/libaudioeffect_jni.so)
target SharedLib: libjnigraphics (out/target/product/bravo/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/LINKED/libjnigraphics.so)
target SharedLib: librs_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/librs_jni_intermediates/LINKED/librs_jni.so)
target SharedLib: libsoundpool (out/target/product/bravo/obj/SHARED_LIBRARIES/libsoundpool_intermediates/LINKED/libsoundpool.so)
Install: out/target/product/bravo/system/lib/libsrec_jni.so
target SharedLib: libttssynthproxy (out/target/product/bravo/obj/SHARED_LIBRARIES/libttssynthproxy_intermediates/LINKED/libttssynthproxy.so)
target SharedLib: libwebcore (out/target/product/bravo/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
target Jar: core-tests-dalvik (out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-dom_intermediates/emma_out/lib/classes-jarjar.jar
target Jar: core-tests-json (out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-xml_intermediates/noproguard.classes.dex
target Executable: AudioHardwareRecordLoop (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecordLoop_intermediates/LINKED/AudioHardwareRecordLoop)
target Executable: AudioHardwareRecord (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecord_intermediates/LINKED/AudioHardwareRecord)
target Executable: AudioInRecord (out/target/product/bravo/obj/EXECUTABLES/AudioInRecord_intermediates/LINKED/AudioInRecord)
target Executable: SRecTestAudio (out/target/product/bravo/obj/EXECUTABLES/SRecTestAudio_intermediates/LINKED/SRecTestAudio)
target Executable: SRecTest (out/target/product/bravo/obj/EXECUTABLES/SRecTest_intermediates/LINKED/SRecTest)
target Executable: quake (out/target/product/bravo/obj/EXECUTABLES/quake_intermediates/LINKED/quake)
target SharedLib: libplatform_library_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libplatform_library_jni_intermediates/LINKED/libplatform_library_jni.so)
target Executable: app_process (out/target/product/bravo/obj/EXECUTABLES/app_process_intermediates/LINKED/app_process)
Install: out/target/product/bravo/system/lib/libandroid_runtime.so
target SharedLib: libstagefright (out/target/product/bravo/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so)
make: *** [out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests] Killed
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests'
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
Looks like libstagefright is the cause?
Found in first log- line 160:
Code:
/bin/bash: line 26: 23801 Killed LD_LIBRARY_PATH=out/host/linux-x86/lib javadoc \@out/target/product/bravo/obj/JAVA_LIBRARIES/doc-comment-check_intermediates/droiddoc-src-list -J-Xmx768m -J-Djava.library.path=out/host/linux-x86/lib -quiet -doclet DroidDoc -docletpath out/host/linux-x86/framework/clearsilver.jar:out/host/linux-x86/framework/droiddoc.jar:out/host/linux-x86/framework/apicheck.jar......
IMO there are 2 possibilities:
1.build environment is not set properly
-did you install compatibility libs that are mentioned for Froyo? These can also be needed
-is sun java set as default JVM? Check update-alternatives for java and javac
2. some files can be from a different branch (line 58)
Code:
Note: Some input files use or override a deprecated API.
(this happened to me when I accidetaly merged fixes for Arabic support into standard framework)
Brilliant. Thanks for your response. I will double check all these things.
I did not:
Code:
Java 5: for Froyo and older
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
Or...
Code:
For building Froyo or an older release on a 64-bit system, several other packages are necessary to establish a 32-bit build environment:
$ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev-i386
rootSU said:
Brilliant. Thanks for your response. I will double check all these things.
I did not:
Code:
Java 5: for Froyo and older
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
Or...
Code:
For building Froyo or an older release on a 64-bit system, several other packages are necessary to establish a 32-bit build environment:
$ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev-i386
Click to expand...
Click to collapse
You don't need java5 (since you have java6 which is OK for Froyo also), but I'd recommend to install "several other packages are necessary to establish a 32-bit build environment"- this won't hurt but can help.
I don't remember which packages I had to install to build Redux 1.2
Well checking the environment, I did install the froyo stuff and there is only Java so nothing to configure there with sudo update-alternatives --config java
Guess its option 2 then....
Other than the camera folder I imported (forget which it is now - Bad Dan), I imported vendor/htc/bravo for proprietary files and device/htc/bravo (so I can build) both from the CM repository
Would it be better to lunch for passion? It was that bit I was never certain of (and couldnt find the answer) so I just guessed it.
EDIT> The camera was frameworks/base/services/camera/
Sounds possible cause
Well put the original camera folder back and now back to my original camera error
Code:
target SharedLib: libcameraservice (out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::getCameraInfo(int, android::CameraInfo*):frameworks/base/services/camera/libcameraservice/CameraService.cpp:109: error: undefined reference to 'HAL_getCameraInfo'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:148: error: undefined reference to 'HAL_openCameraHardware'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:154: error: undefined reference to 'HAL_getCameraInfo'
Not getting on very well am I?
This shouldn't happend, where did you get Camera Service sources? Or- where did you get android_device_bravo (some files required by CameraService are most probably device specific)?
The android/device/bravo is from the cm7 bravo repository. I got this so I could lunch bravo_full-userdebug.
The camera stuff is back to Google source.
I wasn't sure where else to get android/device/bravo from to lunch it.
Also I have vendor/HTC/bravo which has proprietory files in. I extracted from cm7 nightlies and copied entire directory
Sent from my HTC Desire using XDA App
rootSU said:
The android/device/bravo is from the cm7 bravo repository.
Click to expand...
Click to collapse
Did you try to use android_device_bravo from AOSP sources (Redux, Oxygen etc) ? There are major differences between AOSP and CM framework and services. It seems that there are also differences between AOSP and CM android_device since you get compilation errors (I'm not that deep in Desire sources yet so sorry if I'm mistaken)
That sounds a sensible suggestion. Where is the redux source please? EDIT> Nevermind, I didn't realise it was there.
Sent from my HTC Desire using XDA App
gen_scheisskopf said:
Did you try to use android_device_bravo from AOSP sources (Redux, Oxygen etc) ? There are major differences between AOSP and CM framework and services. It seems that there are also differences between AOSP and CM android_device since you get compilation errors (I'm not that deep in Desire sources yet so sorry if I'm mistaken)
Click to expand...
Click to collapse
Thank you, this worked! Now to phase 2. Make update.zips
Many thanks for all your help and support.
Does anyone know how to.overcome "no rule to make xxxx. Needed by xxxxx" errors?
Compilation works with just vendor and device directories, but boot loops stating no audio policy published, so forking in what I can from redux source, I have been getting a lot of these errors which I need to over come. Where are these rules and what is needed to create the targets?
Id rather add than remove at this point.
Sent from my HTC Desire using XDA App
Background :
So I was asked by some people on how I compile kernels so I am just posting some stuff related to same .
This is a beginners' tutorial and is mostly relevant to Xperia 2011 MDPI section . It might work on other sections but I won't be offering any guarantee .
For whom is this tutorial designed for ?
People who like to read stuff and can read stuff ,people who have desire to learn something and would like a more hands on approach .
Index :
#post 1 = Introduction & Setup Environment
#post 2 =Index of Toolchains & sources+FAQ
#post 3 =Kernel Manipulation
#post 4=Compiling , Source Distribution
Click to expand...
Click to collapse
Requirements :
Linux Distro installed on PC .Thats preferrable . Search,read ,install.It's not rocket science .
I am using Linux Mint 13 in this tutorial . Ubuntu,Debian and Ubuntu/debian based distros should be similar to setup.
This tutorial should work on other distros too ...
Click to expand...
Click to collapse
I am not going to support questions/doubts regarding
Cygwin on Windows
Linux installed in Virtual machine
Live Linux distributions .
I would rather spend time fixing issue then figuring out how to do same thing in another environment .
Get tools for stuff you need not know
install these tools via relevant package manager
Code:
build-essential,bzip2,gcc-multilib,g++-multilib,git,gnupg,libncurses5-dev,lib32ncurses5-dev,lib32z1-dev,kernel-package,ia32-libs,zlib1g-dev,zip
e.g for Linux Mint it's
Code:
sudo apt-get install build-essential bzip2 gcc-multilib g++-multilib git gnupg libncurses5-dev lib32ncurses5-dev lib32z1-dev kernel-package ia32-libs zlib1g-dev zip
Next download Android SDK and configure adb and fastboot . Use the amazing service known as google to set up .Test run if they work properly .
Click to expand...
Click to collapse
Some information :
Q1:What is boot.img ,kernel and ramdisk ?
Boot.img or the file you flash to boot partion .It is actually made up of two parts.
zImage is the actual kernel .You can't edit it .You have to recompile it using the kernel sources
initrd.img is the ramdisk .Using tools like Android Kitchen or kernel-tools-master you can edit it .
More about each part in relevant section .
Q2:How do you manipulate ramdisk,change bootlogo ?
A: Check @dsixda 's Android Kitchen or @championswimmer 's kernel-tools-master
Q3:Where does BOOTCLASSPATH lie in ramdisk ?
A:It's present in init.rc
Q4:Where do you change the path to wifi libs ?
A:Check init.semc.rc
Steps I use to work with Boot.img
Modify Ramdisk with Android Kitchen completely .
Use Stock kernel
Repack using Android kitchen
Check if kernel boots
if it does than you have a working ramdisk.
Now you just have to change zImage after compiling it.
Click to expand...
Click to collapse
Sources :
For Xperia Phones
Download the stock sources from
http://developer.sonymobile.com/dow...s/open-source-archive-for-build-4-0-2-a-0-84/
http://developer.sonymobile.com/dow...ves/open-source-archive-for-build-4-1-b-1-13/
to fix toolchain errors
I peeked into wedgess' Lupus and kast's Kappa sources
https://github.com/garwedgess/LuPuS-STOCK-ICS-Xperia2011
Toolchains :
Toolchains are the compilers (cross compilers to be exact ) with which kernel is compiled .
There are tooooooooo many compilers .
I can't test everyone
The best way is to go for compilers which are proven to be work
Path to the compiler .
Before compiling kernels the path to cross compiler must be exported using
Code:
export CROSS_COMPILE=path_ to_compiler
e.g.
My 4.4.3 compiler lies in
/home/user/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
In the folder of the toolchain the compiler is present ,all the tools are prefixed with arm-linux-android-eabi-
so the path to compiler becomes
Code:
export CROSS_COMPILE=/home/karan/xd/android-ndk-r8d/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-
Some have arm-eabi- as prefix ,some have no prefixes .Adjust the path accordingly
The usual path of compiler is in bin folder .
Toolchain sources :
Source no 1 : Android NDK
http://developer.android.com/tools/sdk/ndk/index.html
Download the one which has above 360MB of download size ...I have the older version and it has 4.4.3,4.6,4.7
Source no. 2 : Github of @DooMLoRD and @wedgess
https://github.com/garwedgess/toolchains
https://github.com/DooMLoRD/android_prebuilt_toolchains
Doomlord has 4.4.3,Linaro 4.6.2,4.7
Wedgess has 4.4.3 ,Linaro 4.6.2 , Linaro 4.7.3
Use git clone command to download the toolchains
e.g
Code:
git clone https://github.com/DooMLoRD/android_prebuilt_toolchains.git
Code:
git clone https://github.com/garwedgess/toolchains.git
@Christopher83's thread
http://forum.xda-developers.com/showthread.php?p=36677987
He has one toolchain for every occasion . If you wish to dabble ,feel free to dive in ...
FAQ:
What Toolchain works on Stock sources ?
On pure Stock ROM ,without any modification I have been able to compile only on the 4.4.3 by DoomLord ..I would recommend using that one.It works fine on both ICS and GB stock kernels .The kernels boot fine
What should be done so that that you can compile with other toolchains ?
A:There are certain changes in the main Makefile which need to be carried out
Open the main makefile and search for
KBUILD_CFLAGS
Replace
Code:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks
with
Code:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Wno-unused-but-set-variable -Wno-uninitialized \
-fno-strict-aliasing -fno-common \
-Wimplicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks
Now open
Code:
/include/linux/netfilter/x_tables.h
and delete these lines
Code:
const struct xt_match *match;
const void *matchinfo;
That should fix 4.6.2 & 4.7.3 erros
The Linaro 4.7.3 toolchain requires editing the /arch/arm/boot/compressed/Makefile.Honestly ,peek into kast's Makefile ,since I was able to compile only by applying his Makefile fix .
For others ,Please check logs and correct errors
Making changes to source :
Governors,I/O schedulers & Overclocking :-
Check XDA university's thread
http://xda-university.com/as-a-developer/adding-features-to-your-kernel
It's very well written and i don't want to repeat the same stuff
Making changes to Partition on MDPI
this is a post I made earlier :Read it for details ..
http://forum.xda-developers.com/showthread.php?t=2532418
Compiling the kernel :
First Open Terminal in the main kernel directory .
It is in kernel folder of stock sources .
Step no. 1
Export the architecture .Our phone use arm architecture . Some phones use x86 architecture like our phones .Hence the architecture must be defined before compiling .Do this by .
Code:
export ARCH=arm
Step no. 2
Export the Cross Compiler since thats what will be used to compile kernel .
Code:
export CROSS_COMPILE=/home/karan/a/android_prebuilt_toolchains/arm-linux-androideabi-4.7/bin/arm-linux-androidwabi-
Step no. 3
Clean earlier builds . Important before recompiling
Code:
make clean && make mrproper
Step no. 4
Specify the defconfig
The default config for xperia is in /arch/arm/configs ...they are like semc_mango_defconfig or whatever phone you are using
use
Code:
make semc_mango_defconfig
Step no. 5 Editing: optional
Make edits via menuconfig or xconfig :
This allows you to enable/disable governors,schedulers,filesytems ,modify other parameters which were predefined in defconfig
Code:
make menuconfig
OR
Code:
make xconfig
menuconfig is Command line tool while xconfig is the graphical interface .
You can save the config and use it later and use that as defconfig next time instead
Step 6: Compile
Initiate Compiling ....
Code:
make
If you are compiling for first time it's recommended to use
Code:
make
instead of
Code:
make -j2
or whatever . It will help you to troubleshoot errors .Else errors will be thrown ,you wouldn't be abele to view in terminal and there would be no zImage
Step no. 7: Grab zImage and pack it
after successful compiling zImage will be present in /arch/arm/boot folder
Then use Android kitchen to pack it .
Source Distribution :
1)In a tar ball like sony
Just use an archive manager and make a tar archive ...
Advantages : Easy ,hassle free
Disadvantages : Too large in size if modifying very few aspects
2.)Using diff patch
It's like a comparing tool
e.g If I am my base kernel source is Lupus and I have added some tweak then I can create a patch file which can be used on the Lupus source and the result will be my work .It's pretty handy if you are dealing with few files .
Advantages : small size ,pretty handy ,
Disadvantages : Without a proper text editor like Geany ,check patches is a nuisance .The Mesa patch for MDPI has over 1,500,000 lines ...enough to screw with normal text editors
3)Git with github or similar site
It's a fantastic way to upload source .It allows many features to a developer which makes life lot easier .
Advantages : Excellent Version Control
Disadvantages : Steep learning curve .
Git is quite complex for a newbie and it can overwhelm a person .I would suggest reading a lot about git and experimenting thoroughly before diving in .
Credits :
@pinkflozd
For helping me out when i needed
@DooMLoRD
@wedgess
@kast
@an0nym0us_
Peeked in their sources and learnt Stuff
Recommended Text Editor :If you want to seriously dabble with sources I would suggest to use Geany .
It saves a lot of time .It's a must have if you peek a lot into patch files and/or sources .
Reserved for future FAQ
Reserved Just in case
Reserved Just in case
Stuck with this errors!
trying to find solution from a week
Xperia Mini | Stock GB Kernel Source | android-ndk-r9b-linux-x86.tar.bz2 with x32 ubuntu
http://forum.xda-developers.com/showthread.php?t=2569212
Thanks for the guide
Now i dont have to search around.
Thanx
@karandpr- a guide like this suits for the android general or appropriate forums!
Why keep it so inside? just a suggestion though
Thanx for this!
piousheart said:
Stuck with this errors!
trying to find solution from a week
Xperia Mini | Stock GB Kernel Source | android-ndk-r9b-linux-x86.tar.bz2 with x32 ubuntu
http://forum.xda-developers.com/showthread.php?t=2569212
Thanks for the guide
Now i dont have to search around.
Click to expand...
Click to collapse
usually the error of unknown CPU architecture is because you're using linaro toolchain but without proper definition of CPU architecture in Makefile flags. stay away from linaro for first timer. i would strongly suggest using google vanilla 4.4.3 toolchain. abit old but always work given that the're no actual error in the source itself.
Finally karan:thumbup: Thanks a lot for the guide. Really helpful
Cheers,
Vatsal
piousheart said:
Stuck with this errors!
trying to find solution from a week
Xperia Mini | Stock GB Kernel Source | android-ndk-r9b-linux-x86.tar.bz2 with x32 ubuntu
http://forum.xda-developers.com/showthread.php?t=2569212
Thanks for the guide
Now i dont have to search around.
Click to expand...
Click to collapse
add
Code:
-Wno-unused-but-set-variable
in the makefile in KBUILD_CFLAGS =
Didn't check the second error .
It's because you are using Linaro 4.7.3
Like i said above
Code:
/arch/arm/boot/compressed/Makefile
You need to change it a bit ...
Compare it with changes of Kappa or Lupus .
http://forum.xda-developers.com/showthread.php?p=36677987
an0nym0us_ said:
usually the error of unknown CPU architecture is because you're using linaro toolchain but without proper definition of CPU architecture in Makefile flags. stay away from linaro for first timer. i would strongly suggest using google vanilla 4.4.3 toolchain. abit old but always work given that the're no actual error in the source itself.
Click to expand...
Click to collapse
Thanks for the reply!
I'm not using linaro toolchain but ndk r9b (something 4.8)
i also modified makefile according to your solution i found when searching google in one of the xda thread.
---------- Post added at 11:20 AM ---------- Previous post was at 11:18 AM ----------
karandpr said:
add
Code:
-Wno-unused-but-set-variable
in the makefile in KBUILD_CFLAGS =
Didn't check the second error .
It's because you are using Linaro 4.7.3
Like i said above
Code:
/arch/arm/boot/compressed/Makefile
You need to change it a bit ...
Compare it with changes of Kappa or Lupus .
http://forum.xda-developers.com/showthread.php?p=36677987
Click to expand...
Click to collapse
I'm not using Linaro but ndk r9b. (correct me if ndk is also known as Linaro, im a Noob)
piousheart said:
Thanks for the reply!
I'm not using linaro toolchain but ndk r9b (something 4.8)
i also modified makefile according to your solution i found when searching google in one of the xda thread.
---------- Post added at 11:20 AM ---------- Previous post was at 11:18 AM ----------
I'm not using Linaro but ndk r9b. (correct me if ndk is also known as Linaro, im a Noob)
Click to expand...
Click to collapse
I will take a look at it but for time being ,I would recommend switching to 4.4.3 since it has least erros and the zImage boots fine .
Congratulations karan for finally making the guide will be very helpful for many of us :good:
[email protected] ~/13/kernel $ export ARCH=arm
[email protected] ~/13/kernel $ export CROSS_COMPILE=~/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected] ~/13/kernel $ make semc_haida_defconfig
#
# configuration written to .config
#
[email protected] ~/13/kernel $ make -j4
make: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: Command not found
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: 1: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/bin/sh: 1: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
[email protected] ~/13/kernel $
Hey karan can you look into this error?
koradiavatsal said:
[email protected] ~/13/kernel $ export ARCH=arm
[email protected] ~/13/kernel $ export CROSS_COMPILE=~/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected] ~/13/kernel $ make semc_haida_defconfig
#
# configuration written to .config
#
[email protected] ~/13/kernel $ make -j4
make: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: Command not found
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: 1: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/bin/sh: 1: /home/vatsal/file:///home/vatsal/android/kernel/ndk/toolchains/4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
[email protected] ~/13/kernel $
Hey karan can you look into this error?
Click to expand...
Click to collapse
Check Path to toolchains
Can i use the guide for 2010 devices? X10mini..
piousheart said:
Can i use the guide for 2010 devices? X10mini..
Click to expand...
Click to collapse
Yes... Except you will need different source...
Sent from my MT11i using Tapatalk 2
Attitude.SSJ said:
Yes... Except you will need different source...
Sent from my MT11i using Tapatalk 2
Click to expand...
Click to collapse
can you prefer any toolchain?
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
tthtlc said:
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
Click to expand...
Click to collapse
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
shimp208 said:
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
Click to expand...
Click to collapse
My java version is the latest 1.7 (from Ubuntu repository):
Ubuntu 12.04.03, LTS, 64-bit
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
javac 1.7.0_51
As per this:
http://forum.pcsoft.fr/fr-FR/pcsoft...n-error-target-release-1-5-conflicts/read.awp
and this:
https://groups.google.com/forum/#!topic/android-platform/NHhin464dxc
It seemed that Java 7 cannot generate compatible Java 5 binaries, whereas Java 6 still can.
Ok, I shall try downgrading it to Java 6 than.
Am I right to say this?
Source
CyanogenMOD https://github.com/CyanogenMod
OnePlus One kernel https://github.com/CyanogenMod/andro...4/tree/cm-13.0
Credits
All credit go to Cyanogenmod and the devs in this forum (CraZY_BoY^, vinman12 and Temasek specifically). I just build, picked, tweaked and learnt a bit about cm13.
What works
Bluetooth, vpn, incoming calls, gps, outgoing calls, sim, wifi, battery %.
Install
1. wipe dalvik, system, data and cache
2. flash rom, gapps (I use slim gapps here or opengapps) and supersu. Boot.
3. Set up the device and reboot
4. Enjoy
I recommend running the rom in f2fs data and cache mode but ext4 is cool too. Clean flash is always best, however this does generally dirty flash onto previous releases. The rom now has superuser installed and operable. However I still cant work out a way of updating the binaries,hence flashing supersu is recommended and Selinux is set to permissive.
Probably lots more other problems that you can advise, but these are to do with CM13.
I take no responsibility if this messes your device. Use it at your own risk. I did this for myself but it may be of use by others, and its nice to be nice.
Download
zb-cm-13-20151101-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151109-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151112-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151113-uber-4.9-5.2-bacon.zip
zb-cm-13.0-20151115-uber-4.9-5.2-bacon.zip
zb-cm-13.0-20151211-uber-4.9-5.2-bacon.zip
First. Oo. Flashing
Reserved
Amazing! Thanks a lot looking forward!
Sent from my A0001 using Tapatalk
Placing a call causes the phone to freeze up.
Sent from my A0001 using Tapatalk
Thanks for this build! For now the only thing that doesn't seem to work is GPS.
Edit: And the placing calls issue.
itslels said:
Placing a call causes the phone to freeze up.
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
Oh yes. Didnt spot that. Worked fine on yesterdays build.
Spider-Vice said:
Thanks for this build! For now the only thing that doesn't seem to work is GPS.
Edit: And the placing calls issue.
Click to expand...
Click to collapse
GPS seem to be working for me.
It didn't here, probably related to network location though, CM has it broken I think.
Spider-Vice said:
It didn't here, probably related to network location though, CM has it broken I think.
Click to expand...
Click to collapse
GPS test shows up 10 satellites ok and google maps gets it right for me. The outgoing calls problem is new , as other cm13 roms built 1/11 have the same problem. Im rebuilding from source and compiling another build overnight so ill check it out tomorrow. CM13 had many changes yesterday.
Hopefully the next build will be UBER based, but its proving to be a little inconsistent with CM13.0 at the moment.
Added to OnePlus One index thread:
[INDEX] OnePlus One
Edid....
Enviado do meu Oneplus One através de Tapatalk
Just updated to cm1 09/11/15 build now with minimal changes to source. Running pretty good now, and Im using this build as my daily relatively problem free in f2fs mode.
The 12/11/15 build is perfect. Almost. Everything seems to work well. SuperSU still needs to be flashed, but all seems to be working very well, and this seems to be the best battery version of CM13.0 to date.
Dirty flashing this version over the last version works fine.
15/11/15 build has fixed the startup reboot.
Is AOKP dead?
On your rom for over a week now, working like a charm. Thnks
@zaphodbeeb thanx for ur rom, been using it since a week.
i need some help with cm13 compilation.
I am new to android development stuff and getting stuck at this error.
Code:
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
Building with Jack: /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jack
java -Xmx3500m -jar /home/amardeep/cm13/out/host/linux-x86/framework/jill.jar --output /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/17/android.jar
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
Using additional config 'cyanogenmod_debug_config'
Using /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config as base
Merging kernel/oneplus/msm8974/arch/arm/configs/cyanogenmod_debug_config
#
# merged configuration written to /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config (needs make)
#
make[1]: Entering directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --alldefconfig Kconfig
/home/amardeep/cm13/out/host/linux-x86/bin/jack: line 131: 24457 Killed $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack'
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack'
make: Leaving directory `/home/amardeep/cm13'
#### make failed to build some targets (06:47 (mm:ss)) ####
amardeep434 said:
@zaphodbeeb thanx for ur rom, been using it since a week.
i need some help with cm13 compilation.
I am new to android development stuff and getting stuck at this error.
Code:
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
Building with Jack: /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jack
java -Xmx3500m -jar /home/amardeep/cm13/out/host/linux-x86/framework/jill.jar --output /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/17/android.jar
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
Using additional config 'cyanogenmod_debug_config'
Using /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config as base
Merging kernel/oneplus/msm8974/arch/arm/configs/cyanogenmod_debug_config
#
# merged configuration written to /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config (needs make)
#
make[1]: Entering directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --alldefconfig Kconfig
/home/amardeep/cm13/out/host/linux-x86/bin/jack: line 131: 24457 Killed $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack'
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack'
make: Leaving directory `/home/amardeep/cm13'
#### make failed to build some targets (06:47 (mm:ss)) ####
Click to expand...
Click to collapse
Hi,
Are you building on Ubuntu? If so have you probably need to pick 113774 else the build will fail due to using Java 7 on Ubuntu. The pick enables that. I think thats should solve the problem.
Use repopick 113774
zaphodbeeb said:
Hi,
Are you building on Ubuntu? If so have you probably need to pick 113774 else the build will fail due to using Java 7 on Ubuntu. The pick enables that. I think thats should solve the problem.
Click to expand...
Click to collapse
First of all thanks for the reply
Yes im on ubuntu 14.04lts
Thanx for pointing,will surely try that and report back.
I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
blackstar1744 said:
I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
Click to expand...
Click to collapse
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
culot said:
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Click to expand...
Click to collapse
blackstar1744 said:
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
Click to expand...
Click to collapse
USE_HOST_LEX set the build to use host's Flex instead of the one in-tree. See build/core/config.mk:
Code:
ifeq ($(USE_HOST_LEX),yes)
LEX := flex
else
LEX := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/flex/flex-2.5.39
endif
I don't know about elsewhere, but this has been a problem on Arch for a while. Lately this has not longer been a problem for me, so I assumed it was not an issue. Apparently still a problem for 64bit build, but not 32bit. Hmm.
Another workaround was to preface your make with LC_ALL=C, but I tried that without setting 'USE_HOST_LEX=yes' and it didn't help.
EDIT: I don't think it's compiler-related, as I did try different toolchains and different toolchain versions -- none made a difference. I tried 3 different Make versions, no help. USE_HOST_LEX? That fixed it. Compiling as we speak.
I added export USE_HOST_LEX=yes to my .bashrc and went back to the GCC compiler...new problem to debug. Any suggestions on debugging control groups would be greatly appreciated
Code:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 1
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
<stdin>:1226:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC kernel/cgroup.o
kernel/cgroup.c: In function 'subsys_cgroup_allow_attach':
kernel/cgroup.c:2138:59: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
if (current != task && cred->euid != tcred->uid &&
^
kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
cred->euid != tcred->suid)
^
make[1]: *** [kernel/cgroup.o] Error 1
make: *** [kernel] Error 2
Random side rant: The way Google shows search results is going wayyy downhill.