_G_config.h is not installed

Dan Kegel dank@kegel.com
Wed Aug 13 13:16:00 GMT 2003


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


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list