I got a weird error when try to compile kernel source from samsung SGH-I747M, I use the lastest JB kernel source from samsung open source. I google it but no luck
I use a linux box (backbox lastest version). I also try it on Ubuntru 12.04 but same output. I also try the NDK and ARM-EABI still the same output. Here the error :
[email protected]:~/samsung$ make -j 4
Traceback (most recent call last):
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 110, in <module>
status = run_gcc()
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 100, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
CHK include/linux/version.h
CC scripts/mod/empty.o
HOSTCC scripts/conmakehash
Traceback (most recent call last):
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 110, in <module>
status = run_gcc()
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 100, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
Traceback (most recent call last):
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 110, in <module>
status = run_gcc()
File "/home/nannaniel/samsung/scripts/gcc-wrapper.py", line 100, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
Any Idea ?
thks
https://github.com/vmobi-gogh/andro...mmit/d871746203d240d2ca6df762c852853359f2ce2d
You will need to also run a
$ make mr proper
inside the kernel folder. I had some other weirdness working on the goghvmu kernel as well. Good luck!
---------- Post added at 10:51 AM ---------- Previous post was at 10:44 AM ----------
Also looks like I missed csh
$ sudo apt-get install csh
http://stackoverflow.com/questions/6330705/python-subprocess-throws-error-no-such-file-or-direcrory
Here is one last commit that fixed and got me a build! Still need to flash but at least it built
https://github.com/vmobi-gogh/andro...mmit/01b11606e6ea6597d5df39c1dc75ebd91d4349ec
Related
Sony seems to be really supporting dev community...
they just released some instructions on how to create kernel for this device...
read the source link:
http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/
we can may be use this thread as a place to have a feedback/discuss the issues so that it may help other devs...
Nice, now we can get going on some custom ROM's, maybe even cyanogenmod will make a ROM
@DooMLord
Have you got your device yet ?
-----------------
I hope to see MiUi v4 working on my Xperia S , that will be a total Destruction :O
OS4. said:
@DooMLord
Have you got your device yet ?
-----------------
I hope to see MiUi v4 working on my Xperia S , that will be a total Destruction :O
Click to expand...
Click to collapse
sadly nope... the device isnt released in India yet
nice comment on their site DooM
i'm really keen to try, (read: mess about) but please excuse my ignorance - what defconfig should i be making? fuji_nozomi?
Code:
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
And now... Let the ROMs and kernels begin...
Sent from Xperia X10 Mini Pro using CM9 by paul-xxx
Gonna jab my hands into the dirt and try building as well
sminki said:
nice comment on their site DooM
i'm really keen to try, (read: mess about) but please excuse my ignorance - what defconfig should i be making? fuji_nozomi?
Code:
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
Click to expand...
Click to collapse
cat README_Xperia
Configuration files can be found in arch/arm/configs.
Xperia NX SO-02D => fuji_nozomi_dcm_defconfig
Xperia S => fuji_nozomi_defconfig
hylu said:
cat README_Xperia
Configuration files can be found in arch/arm/configs.
Xperia NX SO-02D => fuji_nozomi_dcm_defconfig
Xperia S => fuji_nozomi_defconfig
Click to expand...
Click to collapse
Funny, I missed that completely! Lucky I guessed correctly
EDIT: I've moved on a little, if anyone can help I'd greatly appreciate it!
Code:
CC init/main.o
In file included from include/linux/kernel_stat.h:64:0,
from init/main.c:31:
include/linux/irq.h: In function 'alloc_desc_masks':
include/linux/irq.h:442:8: warning: variable 'gfp' set but not used [-Wunused-but-set-variable]
error, forbidden warning: irq.h:442
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Ignore, fixed a few posts down..
Hi all
As I said in thsi thread http://forum.xda-developers.com/showthread.php?t=1588800
I don't know what toolchain i've to use to build the .62 kernel of XS
I get the following error:
When I use the default arm-linux-gnueabi- (gcc 4.6):export CROSS_COMPILE=arm-linux-gnueabi-
>make
(a lot of line)
/tmp/cc33fOK4.s: Assembler messages:
/tmp/cc33fOK4.s:119: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:171: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:390: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:544: Error: selected processor does not support ARM mode `smc #0'
make[1]: *** [arch/arm/mach-msm/scm.o] Erreur 1
make: *** [arch/arm/mach-msm] Erreur 2
--
I try to use this toolchain https://sourcery.mentor.com/sgpp/lite/arm/portal/release2032
(arm-2011.09) export CROSS_COMPILE=/home/choco/xs/arm-2011.09/bin/arm-none-eabi-
I get this:
>make
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
I try also the latest linaro toolchain
export CROSS_COMPILE=/home/chocobn/xs/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/arm-linux-gnueabi-
And i get the same error as previous
err what's wrong with toolchain ?
PS: I do the correct export for ARCH (arm), i'm on ubuntu 12.04, and havn't spoiler on this forum ?
arc_u said:
Hi all
As I said in thsi thread http://forum.xda-developers.com/showthread.php?t=1588800
I don't know what toolchain i've to use to build the .62 kernel of XS
I get the following error:
When I use the default arm-linux-gnueabi- (gcc 4.6):export CROSS_COMPILE=arm-linux-gnueabi-
>make
(a lot of line)
/tmp/cc33fOK4.s: Assembler messages:
/tmp/cc33fOK4.s:119: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:171: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:390: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:544: Error: selected processor does not support ARM mode `smc #0'
make[1]: *** [arch/arm/mach-msm/scm.o] Erreur 1
make: *** [arch/arm/mach-msm] Erreur 2
--
I try to use this toolchain https://sourcery.mentor.com/sgpp/lite/arm/portal/release2032
(arm-2011.09) export CROSS_COMPILE=/home/choco/xs/arm-2011.09/bin/arm-none-eabi-
I get this:
>make
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
I try also the latest linaro toolchain
export CROSS_COMPILE=/home/chocobn/xs/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/arm-linux-gnueabi-
And i get the same error as previous
err what's wrong with toolchain ?
PS: I do the correct export for ARCH (arm), i'm on ubuntu 12.04, and havn't spoiler on this forum ?
Click to expand...
Click to collapse
try these
https://github.com/DooMLoRD/android_prebuilt_toolchains
I hope you guys know this, but you can't boot custom kernels yet..
Sony needs to release a patched bootloader first, so don't flash your own kernels yet and wait for the bootloader update from Sony
DooMLoRD said:
try these
https://github.com/DooMLoRD/android_prebuilt_toolchains
Click to expand...
Click to collapse
DooMLoRD to the rescue yet again. Thanks man, arm-eabi-4.4.3 worked a treat with the problem i had 2 weeks ago ^ back up there (i guess my post should have been more explicit)
6.0.A.3.62 and 6.0.A.5.6 just compiled no problem with that tool-chain! Yes, I know we can't use them (yet), but it was something i needed to do for my own satisfaction
i heard that the bootloader is fixed in 6.0.A.5.6 or higher.
anyone tried it???? (i mailed sony about it and they told me that it is fixed in that firmware)
nickholtus said:
i heard that the bootloader is fixed in 6.0.A.5.6 or higher.
anyone tried it???? (i mailed sony about it and they told me that it is fixed in that firmware)
Click to expand...
Click to collapse
Don't think anyone has put the 5.6 fw up yet.
Edit : most recent up is the Japanese 4.1
Sent from my LT26i using XDA
nickholtus said:
i heard that the bootloader is fixed in 6.0.A.5.6 or higher.
anyone tried it???? (i mailed sony about it and they told me that it is fixed in that firmware)
Click to expand...
Click to collapse
that FW is not for the Xperia S... its for the Japaneses variant [ Xperia™ acro HD (SO-03D) ]...
DooMLoRD said:
that FW is not for the Xperia S... its for the Japaneses variant [ Xperia™ acro HD (SO-03D) ]...
Click to expand...
Click to collapse
I don't know if it's relevant but it has the fuji_nozomi def config, I'm still new to this
Sent from my LT26i using XDA
DooMLoRD said:
that FW is not for the Xperia S... its for the Japaneses variant [ Xperia™ acro HD (SO-03D) ]...
Click to expand...
Click to collapse
My sources say we might not get the bootloader fix as a separate update...
Sent from my LT26i using XDA
K900 said:
My sources say we might not get the bootloader fix as a separate update...
Sent from my LT26i using XDA
Click to expand...
Click to collapse
This looks grim. Plus bin4ry saying he has a bricked S. Not looking good for this device is it.
Sent from my R800i using XDA
poo-tang said:
This looks grim. Plus bin4ry saying he has a bricked S. Not looking good for this device is it.
Sent from my R800i using XDA
Click to expand...
Click to collapse
When I said no separate update I meant it'll be included with ICS, which should be coming really soon, likely as soon as legal stuff gets sorted out.
Sent from my LT26i using XDA
I Get This Problem Please Help Me...
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
make: /opt/arm-2011.09/bin/arm-none-eabigcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: /opt/arm-2011.09/bin/arm-none-eabigcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
i think u missing some libraries. u on 64 bit ? maybe u need install 32 libraries
what kind of linux u have?
ChaosFirZen said:
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
Click to expand...
Click to collapse
You forgot about export:
Code:
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
and double check if CROSS_COMPILE should be arm-none-eabi or arm-none-eabi- (with a minus at the end)
denisl78 said:
i think u missing some libraries. u on 64 bit ? maybe u need install 32 libraries
what kind of linux u have?
Click to expand...
Click to collapse
Im on 32bit ubuntu..
Sent from my LT18i using XDA App
This What Shows and it doesnt reponse at
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
Click to expand...
Click to collapse
[email protected]:~$ cd kernel
[email protected]:~/kernel$ export ARCH=arm
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
[email protected]:~/kernel$ setprop persist.world.domination 1
setprop: command not found
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
make: /opt/arm-2011.09/bin/arm-none-eabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /opt/arm-2011.09/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: /opt/arm-2011.09/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
[email protected]:~/kernel$ export ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
[email protected]:~/kernel$ export ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
[email protected]:~/kernel$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd kernel
[email protected]:~/kernel$ export ARCH=arm
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
[email protected]:~/kernel$ export arm-none-eabi=/opt/arm-2011.09/bin/arm-none-eabi- make
bash: export: `arm-none-eabi=/opt/arm-2011.09/bin/arm-none-eabi-': not a valid identifier
[email protected]:~/kernel$
what u get with :
Code:
file /opt/arm-2011.09/bin/arm-none-eabi-gcc
?
do u installed all build packages ?
i not fluent with deb distributions (more rpm), but maybe
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
may help
and
Code:
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
export KERNEL_DIR=/full/path/to/kernel
make
ChaosFirZen said:
[email protected]:~/kernel$ setprop persist.world.domination 1
setprop: command not found
Click to expand...
Click to collapse
OMGLOL, it's my signature (setprop is android specific)
Anyway, if any packages would be missing make would whine about them first. Just to be sure check official docs
As for exports- I use envsetup.sh-s like this one:
Code:
export ARCH=arm
export CC=arm-spica-linux-uclibcgnueabi-gcc
export CXX=arm-spica-linux-uclibcgnueabi-gcc
export CROSS_COMPILE=arm-spica-linux-uclibcgnueabi-
export PATH=$PATH:${HOME}/x-tools/bin:${HOME}/x-tools/arm-spica-linux-uclibcgnueabi/bin
(this one is for crosstools-ng, you have to adjust names and paths for your environment)
usage:
Code:
. ./envsetup.sh
Please give Me The Full View Of The Script On Your terminal ..
ChaosFirZen said:
Please give Me The Full View Of The Script On Your terminal ..
Click to expand...
Click to collapse
What do you mean by 'full view'?
Command
Code:
. ./envsetup.sh
does not produse any visible output, script just sets variables
tapatalked from Desire
Error During Cross compile
Sir after giving the bellow cmd
make ARCH=arm CROSS_COMPILE=/home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-
I am getting folloeing error
#
# configuration written to .config
#
include/config/auto.conf:15:warning: symbol value 'arch/x86/configs/x86_64_defconfig' invalid for ARCH_DEFCONFIG
include/config/auto.conf:106:warning: symbol value 'elf64-x86-64' invalid for OUTPUT_FORMAT
make: execvp: /home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-gcc: Permission denied
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-gcc: Permission denied
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Please help me out.. pleas its urgent. ASAP
It seems that you don't have ARM config, make still tries to build x86.
Do exports and 'make menuconfig' first to check if config is correct
tapatalked from Xperia Arc S
Hey all, i get the same error
I close the terminal and re-open it and i get rid of this but now i've foud another error
>ARCH=arm CROSS_COMPILER=$CCOMPILER make
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
kernel/bounds.c:1:0: erreur: unknown ABI (aapcs-linux) for -mabi= switch
kernel/bounds.c:1:0: erreur: bad value (armv5t) for -march= switch
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
Can someone help me ?
arc_u said:
Hey all, i get the same error
I close the terminal and re-open it and i get rid of this but now i've foud another error
>ARCH=arm CROSS_COMPILER=$CCOMPILER make
Click to expand...
Click to collapse
IIRC it should be: make ARCH=arm [...] (make first, then arguments)
arc_u said:
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
kernel/bounds.c:1:0: erreur: unknown ABI (aapcs-linux) for -mabi= switch
kernel/bounds.c:1:0: erreur: bad value (armv5t) for -march= switch
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
Click to expand...
Click to collapse
You have errors in kernel config
-kernel is NOT compiled for arm
-cpu is armv7, not armv5t
Do exports and
Code:
make menuconfig
before you try to compile
>make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Erreur 1
make: *** [menuconfig] Erreur 2
EDIT: installed the libncurses5-dev and it seems to work now, i've to configure now
But what config i've to do
ARCH=arm CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi- make semc_anzu_defconfig
or
make menuconfig (and what i have to do exactly in menuconfig?)
arc_u said:
EDIT: installed the libncurses5-dev and it seems to work now, i've to configure now
But what config i've to do
ARCH=arm CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi- make semc_anzu_defconfig
or
make menuconfig (and what i have to do exactly in menuconfig?)
Click to expand...
Click to collapse
1. Do required exports
2. make semc_anzu_defconfig (this will create kernel config required for make- copy of semc_anzu_defconfig)
3. If you want to make any changes (drivers/options/modules/whatever) in config- make menuconfig
4. make
A lot of thanks for your help
I do the following export
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
then
make semc_anzu_defconfig
make
make
CHK include/linux/version.h
make[1]: « include/asm-arm/mach-types.h » est à jour.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: attention : ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: attention : ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: attention : ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function ‘fault_in_pages_readable’:
include/linux/pagemap.h:415:16: erreur: variable ‘c’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Erreur 1
make: *** [init] Erreur 2
very disappointed
arc_u said:
very disappointed
Click to expand...
Click to collapse
This needs to be added in Makefile :
Code:
# This warning generated too much noise in a regular build.
KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
By default the toolchain stops compiling on all errors.
iates/pac_toro-target_files-eng.root.zip /root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip
unzipping target target-files...
running: unzip -o -q /root/pac/out/target/product/toro/obj/PACKAGING/target_files_intermediates/pac_toro-target_files-eng.root.zip -d /tmp/targetfiles-mX0gSB
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 884, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 836, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/root/pac/build/tools/releasetools/common.py", line 146, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/root/pac/build/tools/releasetools/common.py", line 160, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
make: *** [/root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip] error 1
yun3195 said:
iates/pac_toro-target_files-eng.root.zip /root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip
unzipping target target-files...
running: unzip -o -q /root/pac/out/target/product/toro/obj/PACKAGING/target_files_intermediates/pac_toro-target_files-eng.root.zip -d /tmp/targetfiles-mX0gSB
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 884, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 836, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/root/pac/build/tools/releasetools/common.py", line 146, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/root/pac/build/tools/releasetools/common.py", line 160, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
make: *** [/root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip] error 1
Click to expand...
Click to collapse
Hi!
I am getting the same error. Do you know how to fix it?
QUESTION
yun3195 said:
iates/pac_toro-target_files-eng.root.zip /root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip
unzipping target target-files...
running: unzip -o -q /root/pac/out/target/product/toro/obj/PACKAGING/target_files_intermediates/pac_toro-target_files-eng.root.zip -d /tmp/targetfiles-mX0gSB
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 884, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 836, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/root/pac/build/tools/releasetools/common.py", line 146, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/root/pac/build/tools/releasetools/common.py", line 160, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
make: *** [/root/pac/out/target/product/toro/pac_toro-ota-eng.root.zip] error 1
Click to expand...
Click to collapse
I met that error too,did you solve that,sir?
Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
lesmil said:
Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
Click to expand...
Click to collapse
edit: should modify MAKEFILE i guess, gonna try this ^^
edit2: damn, didn't want to reply to myself....
I tried building CM and ResurrectionRemix for Nexus 5X and got the same error:
Code:
using prebuilt boot.img from BOOTABLE_IMAGES...
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 53, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 49, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/gururoop/android/cm13/build/tools/releasetools/common.py", line 1443, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/gururoop/android/cm13/build/tools/releasetools/common.py", line 1131, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/gururoop/android/cm13/build/tools/releasetools/common.py", line 87, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/gururoop/android/cm13/out/target/product/bullhead/system/bin/install-recovery.sh] Error 1
make: Leaving directory `/home/gururoop/android/cm13'
I tried downloading the repo afresh, but got the same error. Any help would be highly appreciated.