* Can not compile u-boot with meta toolchain
@ 2015-06-16 18:16 mar.krzeminski
2015-06-16 18:36 ` mar.krzeminski
0 siblings, 1 reply; 2+ messages in thread
From: mar.krzeminski @ 2015-06-16 18:16 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can not compile u-boot with meta toolchain
2015-06-16 18:16 Can not compile u-boot with meta toolchain mar.krzeminski
@ 2015-06-16 18:36 ` mar.krzeminski
0 siblings, 0 replies; 2+ messages in thread
From: mar.krzeminski @ 2015-06-16 18:36 UTC (permalink / raw)
To: yocto
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:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-16 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 18:16 Can not compile u-boot with meta toolchain mar.krzeminski
2015-06-16 18:36 ` mar.krzeminski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.