Hi, I am trying to make a version of gpc on an Irix6.5 system with MIPS Compiler 7.3. I have built gcc (version 2.95.2) separately and it seemed OK. When trying to make pascal.install (version gpc-20001122) i run into a stop after some time. I had problems with mixing o32 and n32, as 6.5 prefers the latter, but that seems fixed. However, I have not been able to find where the error occurs. Is there someone out there with more experience and knowledge regarding SGI systems? The make stops with the following message (some lines above) there is some more before it...... "CC=cc -n32" "CROSS=" "X_CFLAGS=" "EXTRA_LIBS=" "MAYBE_TARGET_DEFAULT=" "MAYBE_USE_COLLECT2=" "SCHED_CFLAGS=" "includedir=`echo '/usr/local/include'|sed -e 's/\$/\\&&/g'`" "libsubdir=`echo '/usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.2'|sed -e 's/\$/\\&&/g'`" "target_alias=mips-sgi-irix6.5" "version=2.95.2" "target_alias=mips-sgi-irix6.5" "program_transform_name=s,x,x," "program_transform_cross_name=s,^,mips-sgi-irix6.5-," "exeext=" "GCC_FOR_TARGET=./xgcc -B/usr/local/mips-sgi-irix6.5/bin/ -B./ -I/usr/local/mips-sgi-irix6.5/include" "GPC_FOR_TARGET=./xgpc -B./" "GPCSOLIBSHORTNAME=libgpc.so" "GPCSOLIBDIR=lib" "WITH_SHARED=@with_shared@" ../gpc1 echo " `cat ../stamp-objlist | sed -e 's: : :g' -e 's:../convert.o::g' -e 's:../dbxout.o::g' -e 's:../expr.o::g' -e 's:../fold-const.o::g' -e 's:../function.o::g' -e 's:../optabs.o::g' -e 's:../stor-layout.o::g' -e 's:../toplev.o::g' -e 's:../tree.o::g'` convert.o dbxout.o expr.o fold-const.o function.o optabs.o stor-layout.o toplev.o tree.o" >stamp-gbe cc -n32 -c -DIN_GCC -DGPC -g -Wall -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-common.c cc ERROR parsing -Wall: bad syntax for option cc ERROR parsing -Wall: unknown flag *** Error code 2 (bu21) *** Error code 1 (bu21) Your advice is appreciated, however I am not subscribed to the mailing list. Thanks in advance Hans Hauska
Hans Hauska wrote:
I am trying to make a version of gpc on an Irix6.5 system with MIPS Compiler 7.3. I have built gcc (version 2.95.2) separately and it seemed OK. When trying to make pascal.install (version gpc-20001122) i run into a stop after some time. I had problems with mixing o32 and n32, as 6.5 prefers the latter, but that seems fixed. However, I have not been able to find where the error occurs. Is there someone out there with more experience and knowledge regarding SGI systems? The make stops with the following message (some lines above) there is some more before it...... "CC=cc -n32" "CROSS=" "X_CFLAGS=" "EXTRA_LIBS=" "MAYBE_TARGET_DEFAULT=" "MAYBE_USE_COLLECT2=" "SCHED_CFLAGS=" "includedir=`echo '/usr/local/include'|sed -e 's/\$/\\&&/g'`" "libsubdir=`echo '/usr/local/lib/gcc-lib/mips-sgi-irix6.5/2.95.2'|sed -e 's/\$/\\&&/g'`" "target_alias=mips-sgi-irix6.5" "version=2.95.2" "target_alias=mips-sgi-irix6.5" "program_transform_name=s,x,x," "program_transform_cross_name=s,^,mips-sgi-irix6.5-," "exeext=" "GCC_FOR_TARGET=./xgcc -B/usr/local/mips-sgi-irix6.5/bin/ -B./ -I/usr/local/mips-sgi-irix6.5/include" "GPC_FOR_TARGET=./xgpc -B./" "GPCSOLIBSHORTNAME=libgpc.so" "GPCSOLIBDIR=lib" "WITH_SHARED=@with_shared@" ../gpc1 echo " `cat ../stamp-objlist | sed -e 's: : :g' -e 's:../convert.o::g' -e 's:../dbxout.o::g' -e 's:../expr.o::g' -e 's:../fold-const.o::g' -e 's:../function.o::g' -e 's:../optabs.o::g' -e 's:../stor-layout.o::g' -e 's:../toplev.o::g' -e 's:../tree.o::g'` convert.o dbxout.o expr.o fold-const.o function.o optabs.o stor-layout.o toplev.o tree.o" >stamp-gbe cc -n32 -c -DIN_GCC -DGPC -g -Wall -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-common.c cc ERROR parsing -Wall: bad syntax for option cc ERROR parsing -Wall: unknown flag *** Error code 2 (bu21) *** Error code 1 (bu21) Your advice is appreciated, however I am not subscribed to the mailing list. Thanks in advance
Apparently, the compiler (SGI's cc, I guess) does not like the `-Wall' flag (which means for gcc: turn on a number of warnings).
Maybe the following change will help (you might have to run configure again after applying it, especially if using a non-GNU version of make):
--- /home/gpc/src/p/Makefile.in.orig Sun Jul 16 21:14:05 2000 +++ /home/gpc/src/p/Makefile.in Sun Dec 10 12:26:00 2000 @@ -134,7 +134,8 @@ ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
# Extra warnings for GPC -ALL_WARNINGS = -Wall +ALL_WARNINGS = `case "$(CC)" in *gcc*) echo -Wall;; esac` # -ansi -pedantic -Wpointer-arith # -Wmissing-prototypes # -Wwrite-strings
# Even if ALLOCA is set, don't use it if compiling with GCC.
If this doesn't help, try adding `ALL_WARNINGS=' to the make command line.
Frank
PS: Could you please turn off HTML in the mail, thanks.