This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: _G_config.h is not installed
- From: Dan Kegel <dank at kegel dot com>
- To: Robert Schwebel <robert at schwebel dot de>
- Cc: libc-alpha at sources dot redhat dot com, crossgcc <crossgcc at sources dot redhat dot com>
- Date: Wed, 13 Aug 2003 06:28:34 -0700
- Subject: Re: _G_config.h is not installed
- References: <20030813111158.GA21684@pengutronix.de>
Robert Schwebel wrote:
I'm currently trying to cross compile [gcc-2.95.3/]glibc-2.2.4 for
an i386-linux system; while compiling gcc it breaks here:
...
_G_config.h was somehow not installed by the glibc 'make install' run. Glibc
was configured with
.../glibc-2.2.4/configure i386-linux --build=i686-pc-linux-gnu --host=i386-linux --disable-sanity-checks --with-fp=no --enable-shared --enable-profile=no --enable-omitfp --enable-add-ons=linuxthreads --prefix=/tmp/ptxdist-local/i386-linux --libexecdir=/tmp/ptxdist-local/i386-linux/usr/bin
Does anybody have an idea what the reason could be?
When I was debugging my gcc/glibc cross build script (http://kegel.com/crosstool),
I found that glibc-2.2.5 thought it was doing a native compile
if it could run the target executables on the build host.
Maybe 2.2.4 is similar? Here's a patch to force cross-compilation:
--- glibc-2.2.5/configure.old 2003-05-30 21:51:13.000000000 -0700
+++ glibc-2.2.5/configure 2003-05-30 21:51:23.000000000 -0700
@@ -1738,7 +1738,7 @@
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
+ ac_cv_prog_cc_cross=yes
else
ac_cv_prog_cc_cross=yes
fi
Have you tried my build script? It does a few other tricks to
get an x86->x86 crosstoolchain to build and test properly, and
you shouldn't need to edit it at all, just create a patch directory
for glibc-2.2.4 and put that patch in it.
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045