kernel compile error Error 127

help me
hi. Im following this instruction
http://www.sasabremec.com/wordpress/arm11-my-friendlyarm/friendlyarm-whe...

so, im now make kernel but it makes an error
# make zImage
The log is:
~/tiny6410/Android/linux-2.6.36-android$ make zImage
make: arm-linux-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

any ideas why i having this error? I tried lots of ways to add
arm-linux-gcc but they still recognize this. 

im using ubuntu 11.10 and tiny6410 board. all resources are copied from 
the CD

davef
Did this work for you:

    Check the tool-chain path to see if it is set up correctly or not,
whether it show gcc version 4.5.1

# arm-linux-gcc –v

help me
yep, I alreaady did that.
And it does not work... I know it must show version but it does not
recognize this.
I also  typed
arm-
and tab twice, and it does not show arm-linux-gcc.
So, they dont recognize stuffs in bin file.

davef
At the command line try:

export PATH=/path/to/your/cross-compiler/bin:$PATH 

and then followed immediately by:

# arm-linux-gcc –v

Actually, when you try to manually find the path to your cross-compiler you
will find it is not installed or your bashrc thing didn't work.

Ashish Vishwakarma
Thanks to davef,

 according to your suggestion able to compile kernel..

thanks...

Sandeep
sandeep_r@ubuntu:~/linux-2.6.38$ make
make: arm-linux-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

I am getting the above error when i try to compile kernel for arm-linux
Tiny6410 in ubuntu.

I did set the path asbelow  
sandeep_r@ubuntu:~/linux-2.6.38$ echo $PATH
/opt/FriendlyARM/toolschain/4.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
usr/bin:/sbin:/bin:/usr/games:

checking the version- give below error(no such file or directory) 
sandeep_r@ubuntu:~/linux-2.6.38$ arm-linux-gcc -v
-bash: /usr/bin/arm-linux-gcc: No such file or directory

my tool chain is at path "/opt/FriendlyARM/toolschain/4.5.1/bin", I set it
up but still it gives me same when I try make.

Please could anyone tell me why was the error.

Thanks in advance..

Sandeep

davef
Have a look in "/opt/FriendlyARM/toolschain/4.5.1/bin" and see if there
really is a "arm-linux-gcc" or a link to one.  It might be could something
else.

davef
could = called !

Sandeep
Hi davef, Thanks for the reply.

All the arm linux binaries are available in tool chain path only.
Have got fix for the problem. This was not recognising the arm binaries due
to 64bit compatibility(OS) and our tool chain correspondes to 32 bit
binaries.

Have installed the library "ia32.libs" for this and able to compile
successfully.

Arun
Hi davef/Sandeep,
       I am also facing same problem.. Please help me..
ia32.libs is already installed in my ubuntu 11.04..
I want to compile kernel 2.6.xx to powerpc405..'
Please help me.

Thanks in advance..


Arun

Bhargav Shah
Hi all
I am cross-compiling Linux kernel 3.6 for panda board.I am facing same
problem.I am not getting a proper path to debug and solve this error.


Thanks in advance.

jack
Hi davef ,

i am trying to install the android for mini2440 i am getting the follwing
error 

rnd@rnd-VirtualBox:~/usr/local/android/kernel$ make zImage
make: arm-linux-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
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
rnd@rnd-VirtualBox:~/usr/local/android/kernel$ 

and i have already tried the 
export PATH=/path/to/your/cross-compiler/bin:$PATH 
i am using Ubuntu 11.10

please help me.........

davef
Where are you putting export PATH ?

Either in a compile script or in EACH terminal session you open.  Which
cross-compiler are you using?

After you have exported the path have you checked that it works, ie:

arm-linux-gcc -v  (or the "name of the cross-compiler you are using" -v)

jack
hi davef,
The following errors i got after trying those two commands

rnd@rnd-VirtualBox:~/usr/local/android/kernel$ arm-linux-gcc       
arm-none-linux-gnueabi-gcc
arm-linux-gcc: command not found
rnd@rnd-VirtualBox:~/usr/local/android/kernel$ arm-linux-gcc –v
arm-linux-gcc: command not found
rnd@rnd-VirtualBox:~/usr/local/android/kernel$

davef
The -v is missing on the first one.

Which cross-compiler do you have on the host machine and where is it
located?

davef
If you are entering those commands from a terminal session you have to do:

export PATH=/path/to/your/cross-compiler/bin:$PATH  

before you make the command to see which version you have.

Juergen Beisert
jack,

did you read the whole thread? Did you really read the whole thread? I
guess the solution you need you can find in one of the upper mails. Hint:
do you run a 64 bit system?

davef
Unless you have the export path in .bashrc or .profile

jack
Hi,

I am keeping it in home/rnd/opt/FriendlyARM/toolschain/4.5.1/bin 
 
root@rnd-VirtualBox:/home/rnd/opt/FriendlyARM/toolschain/4.5.1/bin# export
PATH=/opt/FriendlyARM/toolschain/4.5.1/bin:$PATH 
root@rnd-VirtualBox:/home/rnd/opt/FriendlyARM/toolschain/4.5.1/bin#
arm-linux-gcc –v
arm-linux-gcc: command not found
root@rnd-VirtualBox:/home/rnd/opt/FriendlyARM/toolschain/4.5.1/bin#


i am using 32 bit system only

Juergen Beisert
For me it looks like a PEBCAK:

                        PATH=/opt/FriendlyARM/toolschain/4.5.1/bin:$PATH
root@rnd-VirtualBox:/home/rnd/opt/FriendlyARM/toolschain/4.5.1/bin

Enter the directory where the 'arm-linux-gcc' binary is stored to and run

./arm-linux-gcc -v

If you want to know if all dependencies of the 'arm-linux-gcc' binary are
met, run "ldd arm-linux-gcc"

davef
> Which cross-compiler do you have on the host machine

Shows us what is in:

..../opt/FriendlyARM/toolschain/4.5.1/bin

jack
bash: export:
`/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbi
n:/bin:/usr/games:/usr/local/arm/4.3.2/bin':
not a valid identifier
rnd@rnd-VirtualBox:~$ ls
bash: ls: No such file or directory
rnd@rnd-VirtualBox:~$ ls

after export i am getting like this and its not showing any directory list
how can i remove that first two line 
by default these two line is showing whenever i opened the terminal

davef
Well, it says you have a path to 4.3.2/bin, but no path to the
cross-compiler you want.

Sorry, don't know anything about VirtualBox

sham
root@coinel-PC:/opt/linux-cortexm-1.4.1/projects/lcdtest# make

cp -f /opt/linux-cortexm-1.4.1/linux/initramfs-list-min.stub \
    /opt/linux-cortexm-1.4.1/linux/initramfs-list-min
rm -f /opt/linux-cortexm-1.4.1/linux/usr/initramfs_data.cpio \
    /opt/linux-cortexm-1.4.1/linux/usr/initramfs_data.cpio.gz
cp -f lcdtest.kernel.LPC /opt/linux-cortexm-1.4.1/linux/.config
make -C /opt/linux-cortexm-1.4.1/linux vmlinux
make[1]: arm-none-eabi-gcc: Command not found
make[1]: Entering directory `/opt/linux-cortexm-1.4.1/linux'
scripts/kconfig/conf -s arch/arm/Kconfig
make[1]: Leaving directory `/opt/linux-cortexm-1.4.1/linux'
make[1]: arm-none-eabi-gcc: Command not found
make[1]: Entering directory `/opt/linux-cortexm-1.4.1/linux'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[2]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: 1: arm-none-eabi-gcc: not found
make[2]: *** [kernel/bounds.s] Error 127
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/opt/linux-cortexm-1.4.1/linux'
make: *** [_prepare_modules] Error 2

sham
Can any one help me on this error

make[1]: arm-none-eabi-gcc: Command not found

/bin/sh: 1: arm-none-eabi-gcc: not found

ravi
make zImage
scripts/kconfig/conf -s arch/arm/Kconfig
  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
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘ignore_undef_symbol’:
scripts/mod/modpost.c:487:6: error: ‘MODULE_SYMBOL_PREFIX’ undeclared
(first use in this function)
scripts/mod/modpost.c:487:6: note: each undeclared identifier is reported
only once for each function it appears in
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c:487:6: error: expected ‘)’ before string constant
scripts/mod/modpost.c: In function ‘handle_modversions’:
scripts/mod/modpost.c:518:23: error: ‘MODULE_SYMBOL_PREFIX’ undeclared
(first use in this function)
scripts/mod/modpost.c:518:23: error: expected ‘)’ before string constant
scripts/mod/modpost.c:518:23: error: too few arguments to function ‘memcmp’
scripts/mod/modpost.c:520:36: error: expected ‘)’ before string constant
scripts/mod/modpost.c:562:23: error: expected ‘)’ before string constant
scripts/mod/modpost.c:562:23: error: too few arguments to function ‘memcmp’
scripts/mod/modpost.c:563:38: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:566:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:568:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:568:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:568:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:568:7: error: expected ‘)’ before string constant
scripts/mod/modpost.c:568:7: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
scripts/mod/modpost.c:568:7: error: expected ‘)’ before string con

davef
‘MODULE_SYMBOL_PREFIX’ undeclared

Always tackle the first error message.

Suggests to me that a file that declares this value has not been included. 
I would look in modpost.c and see which .h files are suppose to be included
and then ensure they are accessible to your compiler.

ambarish
I am getting the same error while cross-compiling a kernel object.
Toolchain is where it has been specified using export. No problem there.

Linux ubuntu
32 bit system

yogesh@Yogesh-desktop:~/practice/trial$ sudo make all
make ARCH=arm CROSS_COMPILE=arm-cortexa8-linux-gnueabihf- -C
/home/yogesh/WEGA/linux-3.2 M=/home/yogesh/practice/trial modules
make[1]: arm-cortexa8-linux-gnueabihf-gcc: Command not found
make[1]: Entering directory `/home/yogesh/WEGA/linux-3.2'
  CC [M]  /home/yogesh/practice/trial/trial.o
/bin/sh: 1: arm-cortexa8-linux-gnueabihf-gcc: not found
make[2]: *** [/home/yogesh/practice/trial/trial.o] Error 127
make[1]: *** [_module_/home/yogesh/practice/trial] Error 2
make[1]: Leaving directory `/home/yogesh/WEGA/linux-3.2'
make: *** [all] Error 2
yogesh@Yogesh-desktop:~/practice/trial$ 

Thanks in advance.

davef
make[1]: arm-cortexa8-linux-gnueabihf-gcc: Command not found

I suggest you find a solution to the first error message

Renato Aloi
Hey Guys!

Let's put some order here! For starters:

If you are at 32 bits Linux and getting this arm-linux-gcc command not
found, issue the following command:

sudo apt-get install gcc-arm-linux-gnueabi libstdc++6 libncurses5
libncurses5-dev

That should do the job.

If you are at 64 bits Linux, you should take one of two ways:

1. You are at Ubuntu version 12.04 or lower

# issue first the command above, then execute this one:
sudo apt-get install is32-bits

2. You have Ubuntu version 14.04 or later

# forget about above commands... just issue this:
sudo apt-get install gcc-arm-linux-gnueabi lib32ncurses5 lib32stdc++6
lib32z1 lib32bz2-1.0

I think that's it!
Renato

Renato Aloi
ERRATA!

it's ia32-libs!

# issue first the command above, then execute this one:
sudo apt-get install ia32-libs

mark
OS is ubuntu13.10 , 32bit , 
AMD E-450 APU with Radeon(tm) HD Graphics Χ 2 

mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$
arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with:
/opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure
--build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3
--with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-roo
t
--enable-languages=c,c++ --disable-multilib --with-arch=armv4t
--with-cpu=arm920t --with-tune=arm920t --with-float=soft
--with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions
--enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3
--with-mpfr=/opt/FriendlyARM/toolschain/4.4.3
--with-ppl=/opt/FriendlyARM/toolschain/4.4.3
--with-cloog=/opt/FriendlyARM/toolschain/4.4.3
--with-mpc=/opt/FriendlyARM/toolschain/4.4.3
--with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sy
s-root
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99
--enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1) 
mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ 

mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ echo
$PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
:/bin:/usr/games:/usr/local/games:/opt/FriendlyARM/toolschain/4.4.3/bin

//----------------------------------------------------------------

I did Renato's suggestions.

sudo apt-get install gcc-arm-linux-gnueabi libstdc++6 libncurses5
libncurses5-dev
done!

but : 
mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ sudo
apt-get install gcc-arm-linux-gnueabi lib32ncurses5 lib32stdc++6 lib32z1
lib32bz2-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lib32ncurses5
E: Unable to locate package lib32stdc++6
E: Couldn't find any package by regex 'lib32stdc++6'
E: Unable to locate package lib32z1
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by regex 'lib32bz2-1.0'
mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ 

mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ sudo
apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ia32-libs
mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ 

neither :

mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$ sudo
make
[sudo] password for mark: 
make: arm-linux-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: 1: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
mark@mark-Presario-CQ43-Notebook-PC:~/fA_new/mini2440/linux-2.6.32.2$

//----------------------------------------------------------------
Can anyone help? Thanks a lot!

Sandeep Sondagar
Use "make" instead of "sudo make". You don't need superuser privileged.

mark
Sandeep Sondagar,
change to root and it works!
su -
make

Thanks.

shruthi
Hi .. i followed the above steps for ubuntu 12.04:

1. sudo apt-get install gcc-arm-linux-gnueabi libstdc++6 libncurses5
libncurses5-dev 

2. sudo apt-get install is32-bits

still i hav the following error 


user@user-OptiPlex-7010:~/new/kernel_imx$ export ARCH=arm
user@user-OptiPlex-7010:~/new/kernel_imx$ export
CROSS_COMPILE=/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/
linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
user@user-OptiPlex-7010:~/new/kernel_imx$ make wandboard_defconfig
#
# configuration written to .config
#
user@user-OptiPlex-7010:~/new/kernel_imx$ make -j4
make:
/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/
arm-eabi-4.6/bin/arm-eabi-gcc:
Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make:
/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/
arm-eabi-4.6/bin/arm-eabi-gcc:
Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
/bin/sh: 1:
/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/
arm-eabi-4.6/bin/arm-eabi-gcc:
not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

jiameijiang
Your environmental abnormal configuration is wrong .  
First you should download the arm-linux-gcc.4.5.1.tgz , and unzip the file
. Then you should add the path in the PATH environment variable, then you
can use arm-linux-gcc comment directly . 

 export PATH="$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin

After adding the PATH, you have to reboot your PC .

Juergen
Sorry, but you do not have to reboot your PC after changing the PATH
variable.... we do not use w***s here :D

amit
amit_emb@madhu-desktop:~/Desktop/android/geniatech-kernel-master$ export
ARCH=arm CROSS_COMPILE=/home/amit_emb/cross_compiler/bin/arm-none-eabi-
amit_emb@madhu-desktop:~/Desktop/android/geniatech-kernel-master$ export
PATH=/home/amit_emb/cross_compiler/bin/:$PATH
amit_emb@madhu-desktop:~/Desktop/android/geniatech-kernel-master$ sudo make
exynos4_defconfig
*** Default configuration is based on 'exynos4_defconfig'
arch/arm/plat-meson/Kconfig:126: note: Open customer/boards/Kconfig
arch/arm/plat-meson/Kconfig:133: note: Open customer/drivers/Kconfig
drivers/amlogic/Kconfig:113: note: Open drivers/amlogic/ump/Kconfig
drivers/amlogic/Kconfig:114: note: Open drivers/amlogic/mali/Kconfig
drivers/amlogic/Kconfig:116: warning: Skip ../hardware/arm/gpu/ump/Kconfig
drivers/amlogic/Kconfig:117: warning: Skip ../hardware/arm/gpu/mali/Kconfig
arch/arm/mach-meson6tv/Kconfig:47:warning: choice value used outside its
choice group
arch/arm/mach-meson6tv/Kconfig:49:warning: choice value used outside its
choice group
drivers/amlogic/wifi/broadcm_40181/Kconfig:70:warning: choice value used
outside its choice group
drivers/amlogic/wifi/AP6xxx/Kconfig:10:warning: choice value used outside
its choice group
drivers/amlogic/wifi/AP6xxx/Kconfig:11:warning: defaults for choice values
not supported
drivers/amlogic/wifi/broadcm_40181/Kconfig:31:warning: defaults for choice
values not supported
drivers/amlogic/wifi/broadcm_40181/Kconfig:75:warning: choice value used
outside its choice group
drivers/amlogic/wifi/broadcm_40181/Kconfig:76:warning: defaults for choice
values not supported
drivers/amlogic/wifi/Kconfig:219:warning: choice value used outside its
choice group
drivers/amlogic/wifi/Kconfig:220:warning: defaults for choice values not
supported
#
# configuration written to .config
#
amit_emb@madhu-desktop:~/Desktop/android/geniatech-kernel-master$ sudo make
make: arm-none-linux-gnueabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/plat-meson/Kconfig:126: note: Open customer/boards/Kconfig
arch/arm/plat-meson/Kconfig:133: note: Open customer/drivers/Kconfig
drivers/amlogic/Kconfig:113: note: Open drivers/amlogic/ump/Kconfig
drivers/amlogic/Kconfig:114: note: Open drivers/amlogic/mali/Kconfig
drivers/amlogic/Kconfig:116: warning: Skip ../hardware/arm/gpu/ump/Kconfig
drivers/amlogic/Kconfig:117: warning: Skip ../hardware/arm/gpu/mali/Kconfig
arch/arm/mach-meson6tv/Kconfig:47:warning: choice value used outside its
choice group
arch/arm/mach-meson6tv/Kconfig:49:warning: choice value used outside its
choice group
drivers/amlogic/wifi/broadcm_40181/Kconfig:70:warning: choice value used
outside its choice group
drivers/amlogic/wifi/AP6xxx/Kconfig:10:warning: choice value used outside
its choice group
drivers/amlogic/wifi/AP6xxx/Kconfig:11:warning: defaults for choice values
not supported
drivers/amlogic/wifi/broadcm_40181/Kconfig:31:warning: defaults for choice
values not supported
drivers/amlogic/wifi/broadcm_40181/Kconfig:75:warning: choice value used
outside its choice group
drivers/amlogic/wifi/broadcm_40181/Kconfig:76:warning: defaults for choice
values not supported
drivers/amlogic/wifi/Kconfig:219:warning: choice value used outside its
choice group
drivers/amlogic/wifi/Kconfig:220:warning: defaults for choice values not
supported
make: arm-none-linux-gnueabi-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

amit
What to do ??

davef
> make: arm-none-linux-gnueabi-gcc: Command not found

Think you want to sort this first.

   arm-linux-gcc -v

on the command line

PT VN
I'm using command: sudo make zImage
and it error:
make: arm-linux-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: 1: arm-linux-gcc: not found
/home/pt/Desktop/linux-2.6.32.2/./Kbuild:35: recipe for target
'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:982: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

But, i'm using command: make zImage
it's ok.
build...
Kernel: arch/arm/boot/zImage is ready


Can you tell me why? :D :?

davef
Good question.

What do you get when you do:

 arm-linux-gcc -v

Amit P
Hello,

I am compiling modules for tiny6410 with make modules and I am getting
similar error. I have already installed files as per requirement. 32 bit
library also installed. Not sure of what I am missing.

Entry from bash file:
PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin

arm-linux-gcc -v gives below output.

amit@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38$
arm-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gcc
COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux
-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1
--with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root

--enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s
--with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp
--with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/
--disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--enable-threads=posix
--with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys
-root
--disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 


amit@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38$
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lib32bz2-1.0 is already the newest version.
lib32ncurses5 is already the newest version.
lib32z1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 304 not upgraded.
amit@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38$



amit@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38$
sudo make modules
make: arm-linux-gcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: 1: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2


When I execute same command with super user, I get different error as below

root@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38#
make modules
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
scripts/Makefile.build:254: target `drivers/char/mini6410_hello_module.O'
doesn't match the target pattern
  CC [M]  drivers/char/mini6410_hello_module.O
arm-linux-gcc: no input files
make[2]: *** [drivers/char/mini6410_hello_module.O] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2


Please advise what possibly I am missing.

Thank you,
Amit

davef
1) how bits is your host?

2) doing arm-linux-gcc -v  while in this directory

amit@Amit-Dell-System-XPS-L502X:/opt/FriendlyARM/mini6410/linux/linux-2.6.38

seems to work

Try arm-linux-gcc -v while in your home directory to make sure your
EXPORT_PATH is working.


When you said "Entry from bash file" do you mean your .bashrc file or
.profile file?

Amit P
1) -> Host machine(laptop) is 64 bit. Linux 14.01(64 bit) is installed.

2) -> arm-linux-gcc -v in home works fine. See below results.

amit@Amit-Dell-System-XPS-L502X:~$ arm-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gcc
COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux
-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1
--with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root

--enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s
--with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp
--with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/
--disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--enable-threads=posix
--with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys
-root
--disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 

3) -> "Entry from bash file" means .bashrc file.

davef
Further up the thread ... ia32-libs

Is it installed?

Amit P
Thank you davef for help. My issue is resolved now. I did some mistakes
while changing Makefile and after correcting it everything is fine

cherian
On android kernel compiling i got the following error
I tried different tool chains and everything ended with the same error.Am a
noob to this kernel compiling and someone please help me to solve this
error

  Using /home/cherian/kernel as source for kernel
  GEN     /home/cherian/kernel/output/Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[2]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
make[2]: *** [kernel/bounds.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
make: Leaving directory `/home/cherian/kernel'

saeid
i wrote a module and add it to kernel,now i want to compile it but i can't
:( what should i do?

root@ubuntu:/home/me64285/linux-4.6# make
make: arm-none-linux-gnueabi-gcc: Command not found
scripts/kconfig/conf  --silentoldconfig Kconfig
make: arm-none-linux-gnueabi-gcc: Command not found
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

davef
make: arm-none-linux-gnueabi-gcc: Command not found

Search the forum for this error.


It appears you haven't got a PATH to your compiler.