All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] using crosstool-ng with glibc and buildroot
@ 2009-09-14 21:39 Florian Schimmer
  2009-09-15  4:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Schimmer @ 2009-09-14 21:39 UTC (permalink / raw)
  To: 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


-- 
GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] using crosstool-ng with glibc and buildroot
  2009-09-14 21:39 [Buildroot] using crosstool-ng with glibc and buildroot Florian Schimmer
@ 2009-09-15  4:58 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2009-09-15  4:58 UTC (permalink / raw)
  To: buildroot

Le Mon, 14 Sep 2009 23:39:07 +0200,
"Florian Schimmer" <slaanch@gmx.de> a ?crit :

> 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.

> 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

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
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-15  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-14 21:39 [Buildroot] using crosstool-ng with glibc and buildroot Florian Schimmer
2009-09-15  4:58 ` Thomas Petazzoni

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.