* [Buildroot] This linker was not configured to use sysroots
@ 2007-06-22 10:45 Nuno da Costa Ferro
2007-06-22 11:24 ` Bernhard Fischer
0 siblings, 1 reply; 2+ messages in thread
From: Nuno da Costa Ferro @ 2007-06-22 10:45 UTC (permalink / raw)
To: buildroot
Hello,
I'm getting this error while compiling 'fontconfig':
make[4]: Entering directory
`/build/firmware/buildroot/build_arm/fontconfig-2.4.2/fc-case'
/usr/bin/gcc -Os -pipe -I/build/firmware/buildroot/build_arm/staging_dir/usr/include
--sysroot=/build/firmware/buildroot/build_arm/staging_dir/ -isysroot
/build/firmware/buildroot/build_arm/staging_dir -L/build/firmware/buildroot/build_arm/staging_dir/lib
-L/build/firmware/buildroot/build_arm/staging_dir/usr/lib -o fc-case
fc-case.o
/usr/bin/ld: this linker was not configured to use sysroots
What do I need to do in order to fix this?
Thanks.
Kind regards,
Nuno da Costa Ferro
---------------------------
Number Five Software, S.A.
Development & IT Management
Email: nferro at nfive.com
DDI: +351 261 860 472
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] This linker was not configured to use sysroots
2007-06-22 10:45 [Buildroot] This linker was not configured to use sysroots Nuno da Costa Ferro
@ 2007-06-22 11:24 ` Bernhard Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Fischer @ 2007-06-22 11:24 UTC (permalink / raw)
To: buildroot
On Fri, Jun 22, 2007 at 11:45:34AM +0100, Nuno da Costa Ferro wrote:
>Hello,
>
>I'm getting this error while compiling 'fontconfig':
>make[4]: Entering directory
>`/build/firmware/buildroot/build_arm/fontconfig-2.4.2/fc-case'
>/usr/bin/gcc -Os -pipe -I/build/firmware/buildroot/build_arm/staging_dir/usr/include
> --sysroot=/build/firmware/buildroot/build_arm/staging_dir/ -isysroot
>/build/firmware/buildroot/build_arm/staging_dir -L/build/firmware/buildroot/build_arm/staging_dir/lib
> -L/build/firmware/buildroot/build_arm/staging_dir/usr/lib -o fc-case
>fc-case.o
>
>/usr/bin/ld: this linker was not configured to use sysroots
IIRC this fc-case is ment to be run on the host (to create some stuff).
Last time i looked, fontconfig was utterly broken for cross-compiling.
I suggests you add -march=armv5 (or any arm* that matches your target)
to your BR2_TARGET_OPTIMIZATION, this will make it very, very clear
which packages are broken (are and also were even before the sysroot
support).
>
>What do I need to do in order to fix this?
fix fontconfig upstream so it can properly be cross-compiled, i.e. so
that it uses CC_FOR_BUILD CFLAGS_FOR_BUILD when creating binaries ment
to be run on the host, and CC/CFLAGS for stuff that is cross-compiled.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-22 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 10:45 [Buildroot] This linker was not configured to use sysroots Nuno da Costa Ferro
2007-06-22 11:24 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox