This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix mingw32 bootstrap regression.


On Tue, Dec 26, 2006 at 03:57:38PM -0500, Bob Rossi wrote:
> On Tue, Dec 26, 2006 at 08:55:17PM +0000, Pedro Alves wrote:
> > While we are waiting for the correct way to handle this, (if there is
> > any), you could try one of the attached scripts.
> > Put one at a time in the PATH before anything else, eg:
> > 
> > put the ln script in /home/bobbybrasko/testscript
> > and 'export PATH=/home/bobbybrasko/testscript:$PATH'
> > 
> > Then, start the build from scratch on cygwin.
> > 
> > The first script makes ln always fail, so configure will revert
> > to use cp instead.  This should work, as long as nothing calls
> > 'ln -s' directly in the build system.  If this doesn't work, I would
> > go as far as saying the build system has a bug.  In that case you could
> > try the second ln script attached.  It is a quick hack to turn 'ln -s'
> > invocations into ln (hard links) ones.
> 
> Thanks, I'm currently trying this,
> 
> ac_cv_prog_LN_S="no" acx_cv_prog_LN="no" ../gcc/configure \
> --with-gmp=c:/msys/1.0/home/bobbybrasko/gcc/gmp/gmp \
> --with-mpfr=c:/msys/1.0/home/bobbybrasko/gcc/mpfr/prefixdir \
> --with-gcc  --enable-libgomp --host=mingw32 \
> ..
> 
> If this doesn't work, I'll try your solution before we find the real
> response. Danny must have got past this somehow ....

That didn't work cause all the sub packages have different variable
names that represent the ln and ln -s options.

Instead I did 'mv /usr/bin/ln /usr/bin/ln-bak' and then reran the
configure. That got rid of the symlinks. However, I'm starting to wonder
how others do this. It just doesn't seem possible.

Below is the error I currently have. Is this a real bug in gcc? What can
I do to diagnos it?

Bob Rossi

make[4]: Entering directory `/developex/gcc/trunk/build/mingw32/libstdc++-v3/include'
if [ ! -d "./mingw32/bits/extc++.h.gch" ]; then \
          mkdir -p ./mingw32/bits/extc++.h.gch; \
        fi; \
/developex/gcc/trunk/build/./gcc/xgcc -shared-libgcc 
-B/developex/gcc/trunk/build/./gcc -nostdinc++ 
-L/developex/gcc/trunk/build/mingw32/libstdc++-v3/src 
-L/developex/gcc/trunk/build/mingw32/libstdc++-v3/src/.libs 
-L/developex/gcc/trunk/build/mingw32/winsup/mingw 
-L/developex/gcc/trunk/build/mingw32/winsup/w32api/lib 
-isystem /developex/gcc/trunk/gcc/winsup/mingw/include 
-isystem /developex/gcc/trunk/gcc/winsup/w32api/include 
-B/mingw-trunk/mingw32/bin/ -B/mingw-trunk/mingw32/lib/ 
-isystem /mingw-trunk/mingw32/include 
-isystem /mingw-trunk/mingw32/sys-include -Winvalid-pch -Wno-deprecated 
-x c++-header -mthreads -O2  
-I/developex/gcc/trunk/build/mingw32/libstdc++-v3/include/mingw32 
-I/developex/gcc/trunk/build/mingw32/libstdc++-v3/include 
-I/developex/gcc/trunk/gcc/libstdc++-v3/libsupc++ -O2 -g 
/developex/gcc/trunk/gcc/libstdc++-v3/include/precompiled/extc++.h 
-o mingw32/bits/extc++.h.gch/O2g.gch

In file included from 
/developex/gcc/trunk/gcc/libstdc++-v3/include/precompiled/extc++.h:60:
/developex/gcc/trunk/build/mingw32/libstdc++-v3/include/ext/pb_ds/exception.hpp: 
In function 'void pb_ds::__throw_join_error()':
/developex/gcc/trunk/build/mingw32/libstdc++-v3/include/ext/pb_ds/exception.hpp:
84: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [mingw32/bits/extc++.h.gch/O2g.gch] Error 1
make[4]: Leaving directory `/developex/gcc/trunk/build/mingw32/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/developex/gcc/trunk/build/mingw32/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/developex/gcc/trunk/build/mingw32/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/developex/gcc/trunk/build'
make: *** [bootstrap] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]