Skip to contentSkip to conversation

Bug building fontconfig

Buildroot Dan Lykowski 2 participants 2 messages Dec 15, 2008 – Dec 16, 2008

lore
Share & tools
lore
#0 lore raw

Building fontconfig crashes with the following problem on Ubuntu 8.04/8.10.

/usr/bin/gcc -L/buildroot/build_i686/staging_dir/lib -L/buildroot/build_i686/staging_dir/usr/lib --sysroot=/buildroot/build_i686/staging_dir/ -o fc-case fc-case.o /usr/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status

Removing the --sysroot and building by hand allows the file to link. I cant seem to find where this is being added to the cflags/ldflags. Any help would be appreciated. It continues to happen whenever linking using the host linker.

Dan Lykowski

#1 lore raw

Le Mon, 15 Dec 2008 15:24:40 -0800,
Dan Lykowski <[email protected]> a ?crit :

Quoted 9 lines

Building fontconfig crashes with the following problem on Ubuntu 8.04/8.10.

/usr/bin/gcc -L/buildroot/build_i686/staging_dir/lib -L/buildroot/build_i686/staging_dir/usr/lib --sysroot=/buildroot/build_i686/staging_dir/ -o fc-case fc-case.o /usr/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status

Quoted 4 lines

Removing the --sysroot and building by hand allows the file to link. I cant seem to find where this is being added to the cflags/ldflags. Any help would be appreciated. It continues to happen whenever linking using the host linker.

My patch committed at r24408 added a --sysroot option in the case of external toolchains, to get things working properly. Are you by any chance using a configuration with an external toolchain ?

Could you send your .config ?

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com