This is the mail archive of the gcc-help@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]

mingw svn trunk failure


Hi,

Is this the correct place to talk about problems compiling gcc on mingw?

If I checkout svn trunk, and do, 

mkdir gcc-builddir-1
cd gcc-builddir-1
../gcc/configure  --disable-werror  --with-gmp=/home/bobbybrasko/gcc/gmp/gmp \
--with-mpfr=/home/bobbybrasko/gcc/mpfr/prefixdir  --host=mingw32 \
--target=mingw32 --prefix=/c/mingw  --program-suffix="-4.1"  --with-gcc \
--with-gnu-ld  --with-gnu-as  --enable-threads=win32  --disable-nls \
--enable-languages=c,c++  --disable-win32-registry  --disable-shared \
--enable-static  --without-x  --enable-libstdcxx-debug \
2>&1 | tee configure-out.txt

then I do,

cd gcc-builddir-1
make  CFLAGS="-O2 -fomit-frame-pointer" \
CXXFLAGS="-mthreads -fno-omit-frame-pointer -O2"  LDFLAGS=-s \
bootstrap 2>&1 | tee make-out.txt

Now, when I compile gcc, I get this error,

make[4]: Entering directory `/home/bobbybrasko/gcc/svn-head/gcc-builddir-1/gcc'                         
/home/bobbybrasko/gcc/svn-head/gcc-builddir-1/./gcc/xgcc -B/home/bobbybrasko/gcc/svn-head/gcc-builddir-1
/./gcc/ -L/home/bobbybrasko/gcc/svn-head/gcc-builddir-1/mingw32/winsup/mingw -L/home/bobbybrasko/gcc/svn
-head/gcc-builddir-1/mingw32/winsup/w32api/lib -isystem /home/bobbybrasko/gcc/svn-head/gcc/winsup/mingw/
include -isystem /home/bobbybrasko/gcc/svn-head/gcc/winsup/w32api/include -B/c/mingw/mingw32/bin/ -B/c/m
ingw/mingw32/lib/ -isystem /c/mingw/mingw32/include -isystem /c/mingw/mingw32/sys-include -O2 -I../../gc
c/gcc/../winsup/w32api/include -O2 -O2 -fomit-frame-pointer  -DIN_GCC    -W -Wall -Wwrite-strings -Wstri
ct-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT -
DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../inclu
de -I../../gcc/gcc/../libcpp/include -I/home/bobbybrasko/gcc/gmp/gmp/include -I/home/bobbybrasko/gcc/mpf
r/prefixdir/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber -DL_chkstk -xassembler-with-cpp -c
 ../../gcc/gcc/config/i386/cygwin.asm -o libgcc/./_chkstk.o                                             
cc1.exe: internal compiler error: in add_standard_paths, at c-incpath.c:173                             
Please submit a full bug report,                                                                        
with preprocessed source if appropriate.                                                                
See <URL:http://gcc.gnu.org/bugs.html> for instructions.                                                
make[4]: *** [libgcc/./_chkstk.o] Error 1                                                               
make[4]: Leaving directory `/home/bobbybrasko/gcc/svn-head/gcc-builddir-1/gcc'                          
make[3]: *** [libgcc.a] Error 2                                                                         
make[3]: Leaving directory `/home/bobbybrasko/gcc/svn-head/gcc-builddir-1/gcc'                          
make[2]: *** [all-stage1-gcc] Error 2                                                                   
make[2]: Leaving directory `/home/bobbybrasko/gcc/svn-head/gcc-builddir-1'                              
make[1]: *** [stage1-bubble] Error 2                                                                    
make[1]: Leaving directory `/home/bobbybrasko/gcc/svn-head/gcc-builddir-1'                              
make: *** [bootstrap] Error 2                                                                           

At c-incpath.c:173 I have,

              /* If the compiler is relocated, and this is a configured 
                 prefix relative path, then we use gcc_exec_prefix instead 
                 of the configured prefix.  */
              gcc_assert (strncmp (p->fname, cpp_PREFIX,
                                     cpp_PREFIX_len) == 0);

The values of the varaiables are,
  p->fname=/c/mingw/include cpp_PREFIX=c:/mingw cpp_PREFIX_len=8

I've also tried with --prefix=/mingw, and that simply changes the fname
to /mingw/include, and it still fails at the same point. If I change the
prefix to C:/mingw, I get totally different errors. I don't think the
Makefile is happy with the : there.

Should I report this as a bug? Is there any easy way someone can help me
debug this further to fix it?

Thanks,
Bob Rossi


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