i have error whene compile from source code, please help me ?
target Symbolic: libRScpp (/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/product/i9100/symbols/system/lib/libRScpp.so)
target Java: Bluetooth (/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/APPS/Bluetooth_intermediates/classes)
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:43: error 5: Added public field android.Manifest.permission.CANCEL_NOTIFICATIONS
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:114: error 5: Added public field android.Manifest.permission.SEND_MOCK_SMS
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:21431: error 5: Added public field android.provider.Telephony.Carriers.PREFERRED
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
^^^^^^^^^^^^^^^^^^
NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IF YOU DO THIS I WILL HATE YOU.
USE OPTION #1.
-Koush
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
make: *** [/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/checkapi-current-timestamp] Error 38
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
real 208m49.614s
user 324m24.650s
sys 16m22.670s
Build failed.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
erolmutlu said:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
Click to expand...
Click to collapse
Did you try this?
Dakura said:
Did you try this?
Click to expand...
Click to collapse
yes i can find first 2 error but third one icant find ?
android.provider.Telephony.Carriers.PREFERRED
erolmutlu said:
yes i can find first 2 error but third one icant find ?
android.provider.Telephony.Carriers.PREFERRED
Click to expand...
Click to collapse
where can i find this line ?
erolmutlu said:
where can i find this line ?
Click to expand...
Click to collapse
please anybody dont know where is the
/var/lib/jenkins/.jenkins/workspace/android/cm-11.0/out/target/common/obj/PACKAGING/public_api.txt:21429: error 5: Added public field android.provider.Telephony.Carriers.PREFERRED
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
^^^^^^^^^^^^^^^^^^
NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IF YOU DO THIS I WILL HATE YOU.
USE OPTION #1.
-Koush
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
Related
This is a thread for thoose who want's help with Building Android from source
(This thread will be updates as answer's and new info will be announced)
Currently i am still a noob on this and i may get some info from good AOSP builder's
Make sure to try to fix any problem before disturbing the dev's, this can cause that either you will get a mean answer, or you will get mod on you (often if you doesn't stop begging) (Currently SWEATTAIMI is a pro on that!)
This thread is for those who wants to build Android AOSP
AS
Andy
Bytecode
_Arjen_
luboprhrip
are making their rom's
Have setup the file's as code.google.com has told you to do.
You have agreed and accepted the license terms (yeah, yeah.)
You have, time to try to solve the problem that your facing before posting in any PM!
You Agree that this Topic is for everyone who wants to build from AOSP but need some info about what is what and what problem is caused by what, how to solve and how you can increase your building!
Question's
You're building on Darwin
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. generic_thunderg-eng
5. full_maguro-userdebug
6. full_tuna-userdebug
7. full_panda-eng
Which would you like? [full-eng] 4
build/core/product_config.mk:195: *** device/thunderg/device_thunderg.mk: PRODUCT_NAME must be unique; "thunderg" already used by device/lge/android_device_lge_thunderg/device_thunderg.mk device/thunderg/device_thunderg.mk . Stop.
** Don't have a product spec for: 'generic_thunderg'
** Do you have the right repo manifest?
Answer's
Currently None here ^^
dont u have 2 thunderg folders in device folder?
This is better SWEATTAIMI
Better start to explain how to get your buildingenvironment ready
I advise to use Ubuntu 10.10, because it's most compatible, compiling on Mac is also possible.
Info to setup is here, this is the most important.
Next you need to download the sources (AOSP)
You can also get sources for CyanogenMod or CodeAurora (often referred to as CAF)
Next you need the device and vendor files, for CM7 you can get them from Mik's github or ICS AOSP from Andy's github
Folders they reside in are vendor/lge/thunderg and device/lge/thunderg.
Before you start building you run
Code:
source build/envsetup.sh
or
Code:
. build/envsetup.sh
All device-configs are imported now.
Now you choose what you want to build, in our case it is thunderg, so you can start with
Code:
lunch thunderg-user
After that you start building
Code:
make -j4
This is just a very short guide and no garantuee for succesfull building,
you still need to do a little research yourself.
One tip, Google is your friend
---------- Post added at 09:55 PM ---------- Previous post was at 09:51 PM ----------
SWEATTAIMI said:
You're building on Darwin
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. generic_thunderg-eng
5. full_maguro-userdebug
6. full_tuna-userdebug
7. full_panda-eng
Which would you like? [full-eng] 4
build/core/product_config.mk:195: *** device/thunderg/device_thunderg.mk: PRODUCT_NAME must be unique; "thunderg" already used by device/lge/android_device_lge_thunderg/device_thunderg.mk device/thunderg/device_thunderg.mk . Stop.
** Don't have a product spec for: 'generic_thunderg'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Try lunch-thunderg-user instead
Oh, and read prev. post for correct locations for the files
ciolnadu said:
dont u have 2 thunderg folders in device folder?
Click to expand...
Click to collapse
I have one also then it says not there are you using right repo? Don't get it i did as told still this folder stuff
Sent from my LG-P500 using xda premium
_Arjen_ said:
This is better SWEATTAIMI
Better start to explain how to get your buildingenvironment ready
I advise to use Ubuntu 10.10, because it's most compatible, compiling on Mac is also possible.
Info to setup is here, this is the most important.
Next you need to download the sources (AOSP)
You can also get sources for CyanogenMod or CodeAurora (often referred to as CAF)
Next you need the device and vendor files, for CM7 you can get them from Mik's github or ICS AOSP from Andy's github
Folders they reside in are vendor/lge/thunderg and device/lge/thunderg.
Before you start building you run
Code:
source build/envsetup.sh
or
Code:
. build/envsetup.sh
All device-configs are imported now.
Now you choose what you want to build, in our case it is thunderg, so you can start with
Code:
lunch thunderg-user
After that you start building
Code:
make -j4
This is just a very short guide and no garantuee for succesfull building,
you still need to do a little research yourself.
One tip, Google is your friend
---------- Post added at 09:55 PM ---------- Previous post was at 09:51 PM ----------
Try lunch-thunderg-user instead
Oh, and read prev. post for correct locations for the files
Click to expand...
Click to collapse
The thing is when i see the device in lunch i can't make anything either it says i got two files or asks if i got right repo
Sent from my LG-P500 using xda premium
SWEATTAIMI said:
The thing is when i see the device in lunch i can't make anything either it says i got two files or asks if i got right repo
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
paste here your error and we will try to solve it
BTW, i am building froyo 2.2.2 from aosp, and now i have this issue:
Code:
target asm: libdvm <= dalvik/vm/compiler/codegen/arm/armv6-vfp/CallingConvention.S
target asm: libdvm <= dalvik/vm/compiler/template/out/CompilerTemplateAsm-armv6-vfp.S
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S: Assembler messages:
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:7572: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:7576: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8094: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8097: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8178: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8181: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8278: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8282: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8501: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8508: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8741: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8742: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:8747: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:9342: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:9349: Error: cannot represent SHIFT_IMM relocation in this object file format
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:9372: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:9373: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/mterp/out/InterpAsm-armv6-vfp.S:9378: Error: cannot represent SHIFT_IMM relocation in this object file format
make: *** [out/target/product/thunderg/obj/SHARED_LIBRARIES/libdvm_intermediates/mterp/out/InterpAsm-armv6-vfp.o] Errore 1
make: *** Attesa per i processi non terminati....
dalvik/vm/compiler/template/out/CompilerTemplateAsm-armv6-vfp.S: Assembler messages:
dalvik/vm/compiler/template/out/CompilerTemplateAsm-armv6-vfp.S:367: Error: internal_relocation (type: OFFSET_IMM) not fixed up
dalvik/vm/compiler/template/out/CompilerTemplateAsm-armv6-vfp.S:380: Error: internal_relocation (type: OFFSET_IMM) not fixed up
make: *** [out/target/product/thunderg/obj/SHARED_LIBRARIES/libdvm_intermediates/compiler/template/out/CompilerTemplateAsm-armv6-vfp.o] Errore 1
does someone know how to solve it?
It is because you have the android_device etc folder still in it.
move these files to correct location and remove folder.
also do not choose from within lunch, but enter what i mentioned above.
_Arjen_ said:
It is because you have the android_device etc folder still in it.
move these files to correct location and remove folder.
also do not choose from within lunch, but enter what i mentioned above.
Click to expand...
Click to collapse
question, im trying to build ICS for the lg Optimus M, thunderc board. i have the same dalvik error as above with the InterAsm_armv6-vfp.S. what do you mean by your above statement? android_device etc folder? i have an etc folder, looks something like this im my tree, device/lge/thunderc/files/etc/ however, everything int hat folder is being pointed to correctly. the make files are making the correct calls to the correct places. also, i took my InterAsm-armv6-vfp.S file from a cm7 gingerbread build. would that have an effect? Ive been working on this for a few weeks, worked through many errors, but this one has me at a loss on how to fix it. any help you can provide would be greatly appreciated.
What I meant for SWEATTAIMI is that he/she (still don know how to call it ) didn't extract files correctly and left some old unpacked folders.
In your case all seems fine.
You can take build, dalvik and core from Andy's github, this should solve build problems.
sorry didnt mean to jack the thread. thanx for the info though, i took a look at andys changes and applied the changes to my armv6-vfp.mk file to see if that helped. thanx again.
Hello,
I want build the kernel of Xperia S but I hava this error :
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
Thank you !
Solved
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
c3ma138 said:
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
Click to expand...
Click to collapse
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
kuisma said:
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
Click to expand...
Click to collapse
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
c3ma138 said:
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
Click to expand...
Click to collapse
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
kuisma said:
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
Click to expand...
Click to collapse
thank you,
But this does not work
I download: https://sourcery.mentor.com/sgpp/lite/arm/portal/release2188
then: http://developer.sonymobile.com/wportal/devworld/downloads/download/61a0452tarbz2
I unzipped all in my Desktop and in a terminal, I wrote:
- cd source/kernel
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make fuji_nozomi_defconfig
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make
c3ma138 said:
But this does not work
Click to expand...
Click to collapse
Sorry, but I'm no mind reader. "does not work" is not sufficient information for me to reply anything helpful to.
The basic is, if you don't know what you are doing, do it by the book. Still not working? Ask for help. Sony Xperia has presented quite a verbose instruction about how to compile their kernels. Try following this before choosing your own tool chain, edit Makefiles and so. When you get problems, read the instructions more carefully and/or ask the community (hi!) for help, with somewhat more detailed information about what you did and how it failed. The more verbose information you present, the more likely you are to get a useful reply.
Best of luck.
------------------
(edit)
A curious question, why do you want to compile a new kernel? I get the impression this is not your field of expertise, and maybe you are trying to achieve something somewhat more complicated than needed.
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
zongojim said:
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
Click to expand...
Click to collapse
You need android-ndk-r5b to compile the Xperia kernel source. I.e. you can not use the latest NDK.
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
zongojim said:
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
Click to expand...
Click to collapse
http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
zongojim said:
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
Click to expand...
Click to collapse
It's compiled ready to use.
Read the documentation at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/
Replace the toolchain path with e.g. "CROSS_COMPILE=/opt/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" and you are good to go.
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
zongojim said:
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Only specify ONE toolchain ...
Also, I'm note quite sure if I used 4.4.0 or 4.4.3, since both are included in the same r5b distribution. You can also try;
CROSS_COMPILE=~/Toolchain//android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
zongojim said:
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
Click to expand...
Click to collapse
Start with the original root filesystem from the standard boot.img you are already running.
You'll find my tool working with boot.img here: http://whiteboard.ping.se/Android/Unmkbootimg
Also, read the links on the page my signature links to, to get more information about how to build boot images, root file systems etc.
The ramdisk contains the root filesystem, and yes, it's very much needed.
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
zongojim said:
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
Click to expand...
Click to collapse
Last? Ok, I'll take your word for it.
http://www.youtube.com/watch?v=bB77gWRUI_A
Remember, Google is your friend.
help me somebody please
i'm trying to build custom kernel for my xperia M dual
got sources from sony's website, doing build by guide
here is an error:
Code:
In file included from drivers/usb/gadget/android.c:51:0:
drivers/usb/gadget/f_qdss.c: In function 'qdss_bind_config':
drivers/usb/gadget/f_qdss.c:586:38: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: f_qdss.c:586
make[3]: *** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
is it an NDK version issue?
I'm running:
Code:
make -j8 ARCH=arm CROSS_COMPILE=/home/dev/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-
thanks
EDIT: I don't know why but I rerun the below commands and It worked. I wanted to delete this thread, but Edit/Delete just allows me to edit :/
Hi, I was building android from AOSP and followed the instructions at source.android.com.
But I find no system.img in out/ subdirectories.
I used this commands to build it:
Code:
. build/envsetup.sh
lunch full-eng
nohup make -j8 &
I looked at log file nohup.out for errors but I found no one. The building process ended like this:
Code:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target Dex: android.core.tests.libcore.package.org.no-core-tests-res
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
target Dex: android.core.tests.libcore.package.sun.no-core-tests-res
make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.com.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.org.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Killed
make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.libcore.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Killed
DroidDoc took 299 sec. to write docs to out/target/common/docs/api-stubs
DroidDoc took 483 sec. to write docs to out/target/common/docs/doc-comment-check
What have I done wrong? Is there some step I missed?
PD: Attached is the log of the whole building process.
Thanks.
Update: I have since found a solution to this error... I was using "make -j9 otapackage" and doing "make" instead seems to prevent the error.
===
Old post:
I am new to AOSP building... I first synced the master branch and built it, no issues, then I synced 4.2.1_r1.2 and built that (both for toro), no issues. Then I decided to sync many recent branches going back to 4.0.4... I decided to try and build 4.1.1_r5 since that seems to be what the factory image uses. I recieved the following error:
Import includes file: out/target/product/toro/obj/EXECUTABLES/check_prereq_intermediates/import_includes
Export includes file: build/tools/check_prereq/Android.mk -- out/target/product/toro/obj/EXECUTABLES/check_prereq_intermediates/export_includes
Export includes file: device/samsung/tuna/recovery/Android.mk -- out/target/product/toro/obj/STATIC_LIBRARIES/librecovery_updater_tuna_intermediates/export_includes
Export includes file: device/samsung/toro/recovery/Android.mk -- out/target/product/toro/obj/STATIC_LIBRARIES/librecovery_updater_toro_intermediates/export_includes
make: *** No rule to make target `out/target/product/toro/obj/PACKAGING/updater_extensions_intermediates/register.inc.list', needed by `out/target/product/toro/obj/PACKAGING/updater_extensions_intermediates/register.inc'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: bootable/recovery/edify/Android.mk -- out/target/product/toro/obj/STATIC_LIBRARIES/libedify_intermediates/export_includes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
I'm not exactly sure why this happened, any hints anyone can offer will be greatly appreciated. First I had an error regarding some vender proprietary file from the master branch, so I deleted it and re-extracted the 4.1.1 proprietary binaries. Of course I am compiling jro03o while the binaries are jro03h. Maybe I should try it with jro 03r binaries?
I was thinking maybe if I could "unsync" all other aosp branches other than the one I want to build on (4.1.1_r5) that might fix the error due to some mix-matching of files between syncs... Is it possible to "unsync" from aosp branches?
I re-extracted the most recent binaries for 4.2.1 and synced back to the master branch and am rebuilding that one. So far no errors, but won't know until it finishes in an hour or so.
bump...
Since this, I have successfully built and flashed 4.2.1_r1.2, however, now I am trying to syn 4.1.1_r6.1 and getting this same error again. Any ideas?
I decided to try just a simple "make" with no multi-threading to see if that might help, and it definitely created the "out/target/product/toro/obj/PACKAGING/updater_extensions_intermediates/register.inc.list" file.
Any idea why this might happen when using "make -j9 otapackage" as opposed "make"? Is it possible that doing a single-threaded build at first is necessary, then multi-threaded builds after that work. When I first compiled the master branch, I did a single-thread build, and may have done single threaded at first with 4.2.1_r1.2, I can't exactly recall how many single-thread builds I did before I learned about "-j#" option... which VASTLY speeds up my builds to an hour give or take!
Tried to build CM13 from source, but I always had this error
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/hicham03/cm13/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Arrêt.
make: *** Attente des tâches non terminées....
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (16:28 (mm:ss)) ####
Full log here: http://pastebin.com/jyBW0jzz
Is there any solution for that?
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
LahKeda said:
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
Click to expand...
Click to collapse
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Hicham03 said:
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Click to expand...
Click to collapse
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
wow! cm 13 nice !
LahKeda said:
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
Click to expand...
Click to collapse
But the missing file is located in that missing folder..
Hicham03 said:
But the missing file is located in that missing folder..
Click to expand...
Click to collapse
Here is wait is going on while building :
While building here are files copied to that path
out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'.
Click to expand...
Click to collapse
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Bro can re-repo source cm13?
LahKeda said:
Here is wait is going on while building :
While building here are files copied to that path
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Click to expand...
Click to collapse
Oh oh... bluetooth_intermediates isn't available too.
New error after re-synced repo:
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/product/higgs2g/obj/KERNEL_OBJ/usr', needed by '/home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Arrêt.
make: *** Attente des tâches non terminées....
Export includes file: external/tinyalsa/Android.mk -- /home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/export_includes
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (06:48 (mm:ss)) ####
And there too, KERNEL_OBJ is unavailable.