I'm trying (unsuccessfully) to build gcc 4.1.2 on Windows with MinGW and
MSys. A number of messages posted to the gcc mailing list report
success building 4.1.1 and 4.1.2 prereleases. I have used them as a
guide, with no success.
config.guess produces this:
i686-pc-mingw32
uname -a produces this:
MINGW32_NT-5.1 MARSAILI 1.0.11(0.46/3/2) 2007-01-12 12:05 i686 Msys
Versions of other tools are:
GNU bash, version 3.1.0(3)-release (i686-pc-msys)
binutils version 2.17.50 20060824
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
GNU Awk 3.1.5
bison (GNU Bison) 2.3
flex 2.5.33
GNU m4 1.4
GNU Make 3.81
GNU sed version 3.02
makeinfo (GNU texinfo) 4.3
I'm using the MinGW 3.4.5 compiler. When I invoke it with gcc -v I get this:
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/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
Thread model: win32
gcc version 3.4.5 (mingw special)
The successful builders usually only build c and c++ and use a simpler
configuration. My most recent one looks like this:
../gcc-4.1.2/configure --prefix=/mingw --with-ld=/mingw/bin/ld.exe
--with-as=/mingw/bin/as.exe --enable-threads --disable-nls
--enable-languages=c,c++ --disable-win32-registry --disable-shared
--enable-sjlj-exceptions
My build directory is named objdir.
I have tried various make command lines but all of them eventually
result in the same failure, so I have gone back to "make bootstrap", as
it reproduces the failure.
The build makes it through all three build stages and compares the stage
2 and stage 3 successfully. It then starts building runtime libraries.
The first thing it does is work through the objdir/fixincludes directory
and builds applyfix.exe. The next thing that happens is in the directory
objdir/libcpp, and this is where the failure occurs:
make[3]: Entering directory `/home/Administrator/objdir/libcpp'
.deps/charset.Po:1: *** multiple target patterns. Stop.
make[3]: Leaving directory `/home/Administrator/objdir/libcpp'
make[2]: *** [all-libcpp] Error 2
What am I doing wrong?