cross compiling

Started by khamar24, December 20, 2013, 09:50:24 AM

Previous topic - Next topic

khamar24

Hi,

I am getting an error while......  make a13-olinuxino CROSS_COMPILE=arm-linux-gnueabi-

/bin/bash: arm-linux-gnueabi-gcc: command not found
/bin/bash: arm-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
Configuring for A13-OLinuXino - Board: sun5i, Options: A13_OLINUXINO,SPL,STATUSLED=201,CONS_INDEX=2
make
/bin/bash: arm-linux-gnueabi-gcc: command not found
/bin/bash: arm-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
make[1]: Entering directory `/home/essl/olinuxino/u-boot-sunxi'
Generating include/autoconf.mk
/bin/bash: line 3: arm-linux-gnueabi-gcc: command not found
Generating include/autoconf.mk.dep
/bin/bash: line 3: arm-linux-gnueabi-gcc: command not found
make[1]: Leaving directory `/home/essl/olinuxino/u-boot-sunxi'
/bin/bash: arm-linux-gnueabi-gcc: command not found
/bin/bash: arm-linux-gnueabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
make[1]: Entering directory `/home/essl/olinuxino/u-boot-sunxi'
/bin/bash: arm-linux-gnueabi-gcc: command not found
arm-linux-gnueabi-ld: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such file or directory
Generating include/spl-autoconf.mk
/bin/bash: line 3: arm-linux-gnueabi-gcc: command not found
Generating include/tpl-autoconf.mk
/bin/bash: line 3: arm-linux-gnueabi-gcc: command not found
arm-linux-gnueabi-gcc -DDO_DEPS_ONLY \
      -g  -Os   -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float  -D__KERNEL__  -I/home/essl/olinuxino/u-boot-sunxi/include  -I/home/essl/olinuxino/u-boot-sunxi/arch/arm/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__     -march=armv5 -Wall -Wstrict-prototypes       \
      -o lib/asm-offsets.s lib/asm-offsets.c -c -S
/bin/bash: arm-linux-gnueabi-gcc: command not found
make[1]: *** [lib/asm-offsets.s] Error 127
make[1]: Leaving directory `/home/essl/olinuxino/u-boot-sunxi'
make: *** [a13-olinuxino] Error 2



JohnS

Command not found means you have failed to install it.

Look up what is needed and hot install on your OS.  google is your friend in these cases.

John

khamar24

Dear John, Thank for ur reply.

I installed the tool chain successfully. By command-  apt-get install gcc-4.6-arm-linux-gnueabi ncurses-dev uboot-mkimage build-essential git.

The output is

eading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
git is already the newest version.
libncurses5-dev is already the newest version.
uboot-mkimage is already the newest version.
gcc-4.6-arm-linux-gnueabi is already the newest version.
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 620 not upgraded.

JohnS

Note carefully the file names.  If they have 4.6 in them think a bit :)

John