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

[Bug bootstrap/13551] New: Cannot build GCC 3.3.2 on Windows


I am using Windows 2000 on a P3 with 512 MB and Cygwin to build the gcc 3.3.2.

The gcc version from Cygwin is
bash-2.05b$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-
as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexe
cdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable-langua
ges=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=posix --with
-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enab
le-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --dis
able-win32-registry --enable-java-gc=boehm --disable-hash-synchronization --verb
ose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)

I used the following command to try to build gcc.  Source directory of GCC
is in C:\gcc-3.3.2

C:\> MKDIR C:\gcc_obj
C:\> CD C:\gcc_obj
C:\> bash
bash-2.05b$ ../gcc-3.3.2/configure
...
...
bash-2.05b$ make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-
implicit-templates' bootstrap-clean

At this point, there were a lot of error messges.  It turned out that
the file 'insn-conditions.c' contained some DOS '^M' charaters.  After
removing these characters, the compilation seemed to work fine. But then
the genflags failed with 'Internal error'.

bash-2.05b$ pwd
/cygdrive/c/gcc_obj
bash-2.05b$ make
make[1]: Entering directory `/cygdrive/c/gcc_obj/libiberty'
make[2]: Entering directory `/cygdrive/c/gcc_obj/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/gcc_obj/libiberty/testsuite'
make[1]: Leaving directory `/cygdrive/c/gcc_obj/libiberty'
make[1]: Entering directory `/cygdrive/c/gcc_obj/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g
 -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/bin/sh /cygdr
ive/c/gcc-3.3.2/install-sh -c" "INSTALL_DATA=/bin/sh /cygdrive/c/gcc-3.3.2/insta
ll-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /cygdrive/c/gcc-3.3.2/install-sh -c "
"INSTALL_SCRIPT=/bin/sh /cygdrive/c/gcc-3.3.2/install-sh -c" "LDFLAGS=" "LIBCFLA
GS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --no
-split " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTE
ST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "
libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/i686-pc-cygwin" "
AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG="
"RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/cygdrive/c/gcc_obj/zlib'
make[1]: Entering directory `/cygdrive/c/gcc_obj/fastjar'
gcc -DHAVE_CONFIG_H -I. -I../../gcc-3.3.2/fastjar -I. -I. -I../../gcc-3.3.2/fast
jar -I../../gcc-3.3.2/fastjar/../zlib -I../../gcc-3.3.2/fastjar/../include   -W
-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2
-c ../../gcc-3.3.2/fastjar/jartool.c
../../gcc-3.3.2/fastjar/jartool.c: In function `list_jar':
../../gcc-3.3.2/fastjar/jartool.c:1684: warning: pointer targets in passing arg
1 of `__builtin_puts' differ in signedness
../../gcc-3.3.2/fastjar/jartool.c:1691: warning: pointer targets in passing arg
1 of `__builtin_puts' differ in signedness
../../gcc-3.3.2/fastjar/jartool.c:1830: warning: pointer targets in passing arg
1 of `__builtin_puts' differ in signedness
../../gcc-3.3.2/fastjar/jartool.c:1837: warning: pointer targets in passing arg
1 of `__builtin_puts' differ in signedness
../../gcc-3.3.2/fastjar/jartool.c: In function `help':
../../gcc-3.3.2/fastjar/jartool.c:1904: warning: string length `594' is greater
than the length `509' ISO C89 compilers are required to support
../../gcc-3.3.2/fastjar/jartool.c:1904: warning: string length `593' is greater
than the length `509' ISO C89 compilers are required to support
gcc -DHAVE_CONFIG_H -I. -I../../gcc-3.3.2/fastjar -I. -I. -I../../gcc-3.3.2/fast
jar -I../../gcc-3.3.2/fastjar/../zlib -I../../gcc-3.3.2/fastjar/../include   -W
-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2
-c ../../gcc-3.3.2/fastjar/dostime.c
gcc -DHAVE_CONFIG_H -I. -I../../gcc-3.3.2/fastjar -I. -I. -I../../gcc-3.3.2/fast
jar -I../../gcc-3.3.2/fastjar/../zlib -I../../gcc-3.3.2/fastjar/../include   -W
-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2
-c ../../gcc-3.3.2/fastjar/compress.c
gcc -DHAVE_CONFIG_H -I. -I../../gcc-3.3.2/fastjar -I. -I. -I../../gcc-3.3.2/fast
jar -I../../gcc-3.3.2/fastjar/../zlib -I../../gcc-3.3.2/fastjar/../include   -W
-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2
-c ../../gcc-3.3.2/fastjar/pushback.c
gcc -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
-g -O2  -o jar.exe  jartool.o dostime.o compress.o pushback.o ./../zlib/libz.a -
L/../zlib/ ../libiberty/libiberty.a
gcc -DHAVE_CONFIG_H -I. -I../../gcc-3.3.2/fastjar -I. -I. -I../../gcc-3.3.2/fast
jar -I../../gcc-3.3.2/fastjar/../zlib -I../../gcc-3.3.2/fastjar/../include   -W
-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2
-c ../../gcc-3.3.2/fastjar/jargrep.c
In file included from ../../gcc-3.3.2/include/xregex.h:26,
                 from ../../gcc-3.3.2/fastjar/jargrep.c:118:
../../gcc-3.3.2/include/xregex2.h:551: warning: ISO C90 does not support `static
' or type qualifiers in parameter array declarators
gcc -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
-g -O2  -o grepjar.exe  jargrep.o dostime.o compress.o pushback.o ./../zlib/libz
.a -L/../zlib/ ../libiberty/libiberty.a
make[1]: Leaving directory `/cygdrive/c/gcc_obj/fastjar'
make[1]: Entering directory `/cygdrive/c/gcc_obj/gcc'
./genflags.exe ../../gcc-3.3.2/gcc/config/i386/i386.md > tmp-flags.h
genflags: Internal error: abort in maybe_eval_c_test, at ../../gcc-3.3.2/gcc/gen
support.c:1110
make[1]: *** [s-flags] Error 1
make[1]: Leaving directory `/cygdrive/c/gcc_obj/gcc'
make: *** [all-gcc] Error 2

-- 
           Summary: Cannot build GCC 3.3.2 on Windows
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: achen at packetmotion dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: 192.168.1.100
  GCC host triplet: 192.168.1.100
GCC target triplet: 192.168.1.100


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13551


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