Skip to contentSkip to conversation

Can not compile u-boot with meta toolchain

DISCUSSION mar.krzeminski 1 participant 2 messages Jun 16, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I've got problem with compiling u-boot usind SDK.
I am building image for my platform, then I am running commnad bitbake meta-toolchain. In result I've got:
CC examples/standalone/hello_world.o
LD examples/standalone/hello_world
arm-poky-linux-gnueabi-ld.bfd: cannot find -lgcc
make[2]: *** [examples/standalone/hello_world] Error 1 scripts/Makefile.build:421: recipe for target 'examples/standalone' failed make[1]: *** [examples/standalone] Error 2
Makefile:1145: recipe for target 'examples' failed
make: *** [examples] Error 2

In yocto environment u-boot builds fine.
I've also tried
unset LDFLAGS
unset CFLAGS
unset CPPFLAHS
before compilation.

What might be wrong here?

Regards,
Marcin

#1 lore raw

That does the trick:

make CROSS_COMPILE=arm-poky-linux-gnueabi- CC="arm-poky-linux-gnueabi-gcc --sysroot=/media/work/sdk/sysroots/armv7a-vfp-neon-poky-linux-gnueabi" all

Regards,
Marcin

W dniu 16.06.2015 o 21:16, mar.krzeminski pisze:

Quoted 25 lines

Hi,

I've got problem with compiling u-boot usind SDK.
I am building image for my platform, then I am running commnad bitbake meta-toolchain. In result I've got:
CC examples/standalone/hello_world.o
LD examples/standalone/hello_world
arm-poky-linux-gnueabi-ld.bfd: cannot find -lgcc
make[2]: *** [examples/standalone/hello_world] Error 1 scripts/Makefile.build:421: recipe for target 'examples/standalone' failed make[1]: *** [examples/standalone] Error 2
Makefile:1145: recipe for target 'examples' failed
make: *** [examples] Error 2

In yocto environment u-boot builds fine.
I've also tried
unset LDFLAGS
unset CFLAGS
unset CPPFLAHS
before compilation.

What might be wrong here?

Regards,
Marcin