u-boot compilation error

217 views
Skip to first unread message

Pradeep Dayama

unread,
Jun 29, 2018, 3:43:34 AM6/29/18
to SysPlay's Inside Linux
Hello all,

while compiling u-boot using following command
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-


got an error  quoting older version of GCC usage, as shown in attached screenshot

but when i give path from gcc version greater than 6, using command shown below
make ARCH=arm CROSS_COMPILE=/home/ubuntu/Software_ToolChain/gcc-linaro-6.4.1-2017.11-i686-mingw32_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-

poped up an error as shown below

./scripts/binutils-version.sh: line 18: /home/ubuntu/Software_ToolChain/gcc-linaro-6.4.1-2017.11-i686-mingw32_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-as: No such file or directory
make: /home/ubuntu/Software_ToolChain/gcc-linaro-6.4.1-2017.11-i686-mingw32_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: Command not found
./scripts/gcc-version.sh: line 25: /home/ubuntu/Software_ToolChain/gcc-linaro-6.4.1-2017.11-i686-mingw32_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: No such file or directory
./scripts/gcc-version.sh: line 26: /home/ubuntu/Software_ToolChain/gcc-linaro-6.4.1-2017.11-i686-mingw32_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: No such file or directory
*** Your GCC does not produce working binaries in THUMB mode.
*** Your board is configured for THUMB mode.
arch/arm/config.mk:54: recipe for target 'checkthumb' failed
make: *** [checkthumb] Error 1

please help me on this

Regards,
Pradeep
Screenshot from 2018-06-29 13-09-13.png

Anil Kumar Pugalia

unread,
Jun 29, 2018, 5:41:51 AM6/29/18
to inside...@googlegroups.com

Do you have the binaries in the path mentioned?

Oh! More than that, it seems you have downloaded the wrong toolchain. mingw32 is mainly for running on Windows. Download the correct toolchain.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pranav Lavhate

unread,
Jun 29, 2018, 6:57:44 AM6/29/18
to inside...@googlegroups.com
Hi Pradeep,

It's not the issue of your gcc version. It's the problem of gcc toolchain. Download the toolchain (arm-linux-gnueabihf-) version greater than 6.0. Give path for  CROSS_COMPILE of new toolchain and compile again.

​just put below link on terminal,you will get ​arm-linux-gnueabihf-6.4 version.



tar xf gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz

export CC=`pwd`/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-

make ARCH=arm CROSS_COMPILE=${CC} 


Thanks and regards,
​Pranav​.


--

Pradeep Dayama

unread,
Jun 29, 2018, 7:37:16 AM6/29/18
to SysPlay's Inside Linux
Thanks anil and pranav

sorted out the issue

Regards,
Pradeep
Reply all
Reply to author
Forward
0 new messages