using crosstool-ng with glibc and buildroot
Hello,
I'm not able to use the builds of crosstool-ng in buildroot as an external toolchain.
Buildroot Error:
Checking external toolchain settings
Cannot find cross-compiler /home/flo/x-tools/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/-gcc
make: *** [/home/xx/xx/buildroot/buildroot-2009.08/build_x86_64/stamps/ext-toolchain-installed] Error 1
Buildroots want's a prefix like x86_64, but crosstools-ng builds a gcc without prefix
if i add a symlink to gcc with the prefix, i get this output:
Incorrect selection of the C library
make: *** [/home/flo/Arbeit/buildroot/buildroot-2009.08/build_x86_64/stamps/ext-toolchain-installed] Error 255
Buildroot doesn't find the library.
ext-tool.mk :
if ! test -f $${SYSROOT_DIR}/lib/ld-linux.so.* ; then \
echo "Incorrect selection of the C library"; \
exit -1; \
fi; \but crosstools output for ld is:/lib/ld.so.1 and /lib/ld-2.9.so
what can i do?
thx
flo
Signature · 2 lines
GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Le Mon, 14 Sep 2009 23:39:07 +0200,
"Florian Schimmer" <[email protected]> a ?crit :
Quoted 6 lines
Checking external toolchain settings
Cannot find
cross-compiler/home/flo/x-tools/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/-gcc
make: *** [/home/xx/xx/buildroot/buildroot-2009.08/build_x86_64/stamps/ext-toolchain-installed] Error 1
Instead of pointing Buildroot
to /home/flo/x-tools/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/, could you point it to /home/flo/x-tools/x86_64-unknown-linux-gnu/ ? The bin/ directory in this directory should contain the cross-compiling tools with prefix.
Quoted 8 lines
ext-tool.mk :
if ! test -f $${SYSROOT_DIR}/lib/ld-linux.so.* ; then \ echo "Incorrect selection of the C library"; \ exit -1; \ fi; \but crosstools output for ld is:
/lib/ld.so.1and/lib/ld-2.9.so
Can you give me the full list of libraries in $${SYSROOT_DIR}/lib/ ? Here, on an ARM toolchain, I have a lib/ld-linux.so.3 symbolic link. Maybe it's different per architecture, in which case I could relax the test.
Sincerly,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com