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] Cannot build GCC 3.3.2 on Windows


------- Additional Comments From achen at packetmotion dot com  2004-01-04 08:15 -------
Subject: [Fwd: Re:  Cannot build GCC 3.3.2 on Windows]

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-03 01:26 -------
>What is the error messages from here:
>"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."
>We have seen successful builds on cygwin:<http://gcc.gnu.org/gcc-3.3/buildstat.html>.
>
>Also what if you just do "make bootstrap" instead of "make CFLAGS='-O' LIBCFLAGS='-g -O2' 
>LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-clean"
>
>  
>
My machine has 521 MB of memory.  Memory is not the problem.  If you 
were able to compile it successfully,
can I get the binary for Windows 2000 somewhere so I do not need to try 
to rebuild it?
The Cygwin site does not have the latest build.


Here is some of the make file output. The make error starts in line 
60of  insn-conditions.c and  onward.
But after I removed the '^M' from the C file and recompiled it, make was 
able to run all the way until it generated
'genflags'.  But then 'genflags' hit the 'Internal error' message.


=== make output ===
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE   
-DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I. -I. 
-I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/gcc/. 
-I../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include 
../../gcc-3.3.2/gcc/genconstants.c -o genconstants.o
gcc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o genconstants.exe \
 genconstants.o gensupport.o dummy-conditions.o rtl.o read-rtl.o 
bitmap.o ggc-none.o \
    errors.o ../libiberty/libiberty.a
./genconstants.exe ../../gcc-3.3.2/gcc/config/i386/i386.md > tmp-constants.h
/bin/sh ../../gcc-3.3.2/gcc/move-if-change tmp-constants.h insn-constants.h
echo timestamp > s-constants
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE   
-DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I. -I. 
-I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/gcc/. 
-I../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include 
insn-conditions.c
insn-conditions.c:60:5: missing terminating " character
insn-conditions.c:61: error: stray '\' in program
insn-conditions.c:61: error: syntax error before "n"

=== insn-conditions.c===
.....
const struct c_test insn_conditions[] = {
  { "TARGET_64BIT && ix86_match_ccmode (insn, CCNOmode) ^M\n\
   && ix86_binary_operator_ok (XOR, SImode, operands)",
    MAYBE_EVAL (TARGET_64BIT && ix86_match_ccmode (insn, CCNOmode)^M
   && ix86_binary_operator_ok (XOR, SImode, operands)) },

=== genflags error after removing all '^M' from insn-conditions.c===
.....
sed -e 's/config[.]h/hconfig.h/' ../../gcc-3.3.2/gcc/print-rtl.c > 
print-rtl1.c
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE   
-DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I. -I. 
-I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/gcc/. 
-I../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include 
print-rtl1.c -o print-rtl1.o
gcc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o genflags.exe \
 genflags.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o 
insn-conditions.o print-rtl1.o \
    errors.o ../libiberty/libiberty.a
./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/gensupport.c:1110
make[2]: *** [s-flags] Error 1




-- 


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]