[MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix

Bob Rossi bob_rossi@cox.net
Mon Dec 18 21:22:00 GMT 2006


On Mon, Dec 18, 2006 at 01:06:30PM -0800, Brian Dessent wrote:
> > Well, it's about time someone solves them, don't you think? I'm here to
> > make a little noise I guess :). Unfortunatly, hacking gcc isn't really
> > my thing.
> > 
> > I'm wondering if I should try building gcc-3.4.2 to see if I can get a
> > relocatable version of gcc, or a version of gcc that works at all.
> > 
> > If I can, that would at least be a starting point, even though gcc-3.4.2
> > is useless to me.
> 
> Comparing 3.4 to 4.x won't really tell you much, there have been so many
> changes.  The gcc packages on the MinGW site are already relocatable
> (you can extract them anywhere and they work fine) and you can see
> exactly how they're built with the included build script.  If anything
> this just implies to me that the code to support this has bitrotted, or
> there is some new bug.

Ugh, I don't know. I just downloaded the source and build script from
here, 
  http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723&release_id=237094
and ended with the below error. I actually modified the build script so
as to only build the c,c++ languages. I don't think I messed anything up
though. The original configure line was,

../gcc/configure \
--with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32  \
--prefix=/mingw --enable-threads --disable-nls \
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry \
--disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt \
--without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter \
--enable-hash-synchronization --enable-libstdcxx-debug

The new configure line was,

../gcc-3.4.5-20060117-1/configure \
--with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32  \
--prefix=/mingw --enable-threads --disable-nls \
--enable-languages=c,c++ --disable-win32-registry --disable-shared \
--without-x --enable-libstdcxx-debug

O well, like you said, I'm not sure how useful it would be to get this
to work ...

Thanks,
Bob Rossi

(MAKE="make"; srcdir=`cd ../../gcc-3.4.5-20060117-1/gcc/fixinc && ${PWDCMD-pwd}` ; \                    
CC="gcc"; CFLAGS="  -g0  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -p
edantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS="-s"; \                  
WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long 
 -Wno-error"; LIBERTY=`${PWDCMD-pwd}`/"../libiberty/libiberty.a"; \                                     
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; \                                             
cd ./fixinc && \                                                                                        
/bin/sh ${srcdir}/mkfixinc.sh i386-pc-mingw32 i386-pc-mingw32)                                          
constructing ../fixinc.sh for i386-pc-mingw32 to run on i386-pc-mingw32                                 
The directory that should contain system headers does not exist:                                        
  /usr/include                                                                                          
make[2]: *** [stmp-fixinc] Error 1                                                                      
make[2]: Leaving directory `/home/bobbybrasko/gcc/gcc-3.4.5-20060117/builddir/gcc'                      
make[1]: *** [stage1_build] Error 2                                                                     
make[1]: Leaving directory `/home/bobbybrasko/gcc/gcc-3.4.5-20060117/builddir/gcc'                      
make: *** [bootstrap] Error 2                                                                           




More information about the Gcc-patches mailing list