Hi,
I am running HP-UX 11.0 and am attempting to build gcc and gpc. I can build the gcc fine by itself, but when I attempt gcc with gpc, I get the failure listed below.
I am trying to build gcc 3.2.1 and the alpha version of gpc-20030209. I start with a freshly unpacked gcc, then unpack the gpc and move the "p" directory into the gcc subdir of the build dir. Is all this correct? Then I type "make bootstrap" the same as for gcc alone? I know about the quadlib path bug in gcc 3.2.1.
BTW, I start out with setenv CC cc (the HP ansi c compiler).
Anyway, thanks for any pointers anyone can give me.
Tom
============================================================================ Tom Wurgler The Goodyear Tire & Rubber Company Principal Engineer Tire-Vehicle Engineering Technology Phone: 330-796-1656 Technical Center D/460G Fax: 330-796-3292 P.O.Box 3531 internet mail: twurgler@goodyear.com Akron, Ohio 44309-3531 ============================================================================
[gcc-3.2.1.obj]rds294[69]% make bootstrap make[1]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/libiberty' make[2]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/libiberty/testsuite' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/libiberty/testsuite' make[1]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/libiberty' make[1]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/zlib' : make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=cc" "CFLAGS=-g" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g" "INSTALL=/bin/sh /u/rdstt1/t901353/src/gcc-3.2.1/install-sh -c" "INSTALL_DATA=/bin/sh /u/rdstt1/t901353/src/gcc-3.2.1/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /u/rdstt1/t901353/src/gcc-3.2.1/install-sh -c " "INSTALL_SCRIPT=/bin/sh /u/rdstt1/t901353/src/gcc-3.2.1/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g" "LIBCFLAGS_FOR_TARGET=-O2 -g" "MAKE=make" "MAKEINFO=makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/rdstt1/t901353/local" "infodir=/home/rdstt1/t901353/local/info" "libdir=/home/rdstt1/t901353/local/lib" "prefix=/home/rdstt1/t901353/local" "tooldir=/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00" "AR=ar" "AS=as" "CC=cc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g" "NM=nm" "PICFLAG=" "RANLIB=true" "DESTDIR=" DO=all multi-do make[1]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/zlib' Bootstrapping the compiler make[1]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' make CC="stage1/xgcc -Bstage1/ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/" \ STAGE_PREFIX=stage1/ \ CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/home/rdstt1/t901353/local/lib LANGUAGES="c gcov c++ f77 java objc pascal" MAKEOVERRIDES= OUTPUT_OPTION="-o $@" make[2]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' (cd intl && make all) make[3]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/intl' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/intl' make[2]: Circular libgcc.a <- pascal dependency dropped. if [ -f specs.ready ] ; then \ true; \ else \ echo timestamp > specs.ready; \ fi if [ -f fixhdr.ready ] ; then \ true; \ else \ echo timestamp > fixhdr.ready; \ fi make GCC_FOR_TARGET="./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include" \ HOST_PREFIX="" HOST_PREFIX_1="ignore-" \ AR_FOR_TARGET="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ar; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ar | sed -e $t ; fi; fi`" \ AR_CREATE_FOR_TARGET="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ar; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ar | sed -e $t ; fi; fi` rc" \ AR_FLAGS_FOR_TARGET="" \ CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \ RANLIB_FOR_TARGET="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi`" \ RANLIB_TEST_FOR_TARGET="[ -f ` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \ NM_FOR_TARGET="` if [ -f ./nm ] ; then echo ./nm ; elif [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/nm-new ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/nm-new ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo nm; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo nm | sed -e $t ; fi; fi`" AWK="gawk" \ LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \ INCLUDES="-I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include" \ CONFIG_H="tconfig.h " MACHMODE_H="machmode.h machmode.def" \ LIB1ASMSRC='' \ MAKEOVERRIDES= \ -f libgcc.mk all make[3]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' for d in libgcc; do \ if [ -d $d ]; then true; else /bin/sh ../../gcc-3.2.1/gcc/mkinstalldirs $d; fi; \ done if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -c ../../gcc-3.2.1/gcc/quadlib.c -o libgcc/./quadlib.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -DL_eprintf -c ../../gcc-3.2.1/gcc/libgcc2.c -o libgcc/./_eprintf.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -DL_bb -c ../../gcc-3.2.1/gcc/libgcc2.c -o libgcc/./_bb.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -DL__gcc_bcmp -c ../../gcc-3.2.1/gcc/libgcc2.c -o libgcc/./__gcc_bcmp.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled rm -rf ./libgcc.a ar rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./lib2funcs.o libgcc/./quadlib.o libgcc/! ./_eprintf.o libgcc/./_bb.o libgcc/./__gcc_bcmp.o if [ -f ranlib ] || ( [ hppa2.0w-hp-hpux11.00 = hppa2.0w-hp-hpux11.00 ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \ ranlib ./libgcc.a ; \ else true; fi; ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -fexceptions -c ../../gcc-3.2.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled ../../gcc-3.2.1/gcc/unwind-pe.h:61: warning: `size_of_encoded_value' defined but not used ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -fexceptions -c ../../gcc-3.2.1/gcc/unwind-dw2-fde.c -o libgcc/./unwind-dw2-fde.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include -fexceptions -c ../../gcc-3.2.1/gcc/unwind-sjlj.c -o libgcc/./unwind-sjlj.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled rm -rf ./libgcc_eh.a ar rc ./libgcc_eh.a libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o if [ -f ranlib ] || ( [ hppa2.0w-hp-hpux11.00 = hppa2.0w-hp-hpux11.00 ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \ ranlib ./libgcc_eh.a ; \ else true; fi; ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -o libgcc_s.sl libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_! absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./lib2funcs.o libgcc/./quadlib.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.1 && ln -s libgcc_s.sl libgcc_s.1 make[3]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' echo "int xxy_us_dummy;" >tmp-dum.c ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include -S tmp-dum.c echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \ echo "int prepends_underscore = 1;" >>tmp-under.c; \ else \ echo "int prepends_underscore = 0;" >>tmp-under.c; \ fi /bin/sh ../../gcc-3.2.1/gcc/move-if-change tmp-under.c underscore.c rm -f tmp-dum.c tmp-dum.s echo timestamp > s-under stage1/xgcc -Bstage1/ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include underscore.c -o underscore.o cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled stage1/xgcc -Bstage1/ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o Tcollect2 \ collect2.o tlink.o hash.o intl.o underscore.o version.o ./intl/libintl.a ../libiberty/libiberty.a /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (../libiberty/libiberty.a(cplus-dem.o)) was detected. The linked output may not run on a PA 1.x system. mv -f Tcollect2 collect2 cd ../../gcc-3.2.1/gcc/p/rts && make -f Makefile.in srcdir=. GCC_VERSION="3.2.1" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ar; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ar | sed -e $t ; fi; fi`" AR_FLAGS="rc" RANLIB="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi`" RANLIB_TEST="[ -f ` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa! 2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" RTSFLAGS="" DESTDIR="../.." generated-files make[3]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts' make[3]: Nothing to be done for `generated-files'. make[3]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts' cd ../../gcc-3.2.1/gcc/p/rts && make -f Makefile.in srcdir=. GCC_VERSION="3.2.1" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ar; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ar | sed -e $t ; fi; fi`" AR_FLAGS="rc" RANLIB="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi`" RANLIB_TEST="[ -f ` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa! 2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" RTSFLAGS="" DESTDIR="../.." generated-files make[3]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts' make[3]: Nothing to be done for `generated-files'. make[3]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts' ../../gcc-3.2.1/gcc/p/script/mkdir-p p/rts src=`cd ../../gcc-3.2.1/gcc && pwd` && \ cd ./p/rts && \ CC="`echo ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" PC="`echo ./xgpc -B./ -I./p/rts' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" CONFIG_SITE=nonexisting-file \ $src/p/rts/configure --silent > /dev/null --srcdir=$src/p/rts \ `if [ x@with_shared@ = xyes ]; then echo '--with-shared'; fi` cd ./p/rts && make CC="`echo ./xgcc -B./ -B/home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/bin/ -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/include -isystem /home/rdstt1/t901353/local/hppa2.0w-hp-hpux11.00/sys-include' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" PC="`echo ./xgpc -B./ -I./p/rts' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" GCC_VERSION="3.2.1" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ar ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ar; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ar | sed -e $t ; fi; fi`" AR_FLAGS="rc" RANLIB="` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-! hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi`" RANLIB_TEST="[ -f ` if [ -f /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ] ; then echo /u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/../binutils/ranlib ; else if [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] ; then echo ranlib; else t='s,^,hppa2.0w-hp-hpux11.00-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "hppa2.0w-hp-hpux11.00" = "hppa2.0w-hp-hpux11.00" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" RTSFLAGS="" DESTDIR="../.." all make[3]: Entering directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/p/rts' echo '{ rts-config.inc. Generated automatically from rts-config.h. }' > rts-config.inc sed -e 's,/*,{,g;s,*/,},g;s,^[ \t]*#(.*),{$\1},' rts-config.h >> rts-config.inc ../.././xgpc -B../.././ -I../.././p/rts -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts --automake --print-needed-options "/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep -v '^--' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`" >&2; rm -f "needed-options"; false; else true; fi needed-options: gpc1: warning: -g is only supported when using GAS on this processor, gpc1: warning: -g option disabled make[3]: *** [needed-options] Error 1 make[3]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc/p/rts' make[2]: *** [pascal.rts] Error 2 make[2]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/u/rdstt1/t901353/src/gcc-3.2.1.obj/gcc' make: *** [bootstrap] Error 2 [gcc-3.2.1.obj]rds294[70]%
Tom Wurgler wrote:
I am running HP-UX 11.0 and am attempting to build gcc and gpc. I can build the gcc fine by itself, but when I attempt gcc with gpc, I get the failure listed below.
I am trying to build gcc 3.2.1 and the alpha version of gpc-20030209. I start with a freshly unpacked gcc, then unpack the gpc and move the "p" directory into the gcc subdir of the build dir. Is all this correct?
Yes (assuming you mean the source directory, which should
I know about the quadlib path bug in gcc 3.2.1.
Well, I don't. ;-)
cc1: warning: -g is only supported when using GAS on this processor, cc1: warning: -g option disabled
So cc1 (i.e., GCC) is giving this warning already.
../.././xgpc -B../.././ -I../.././p/rts -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts --automake --print-needed-options "/u/rdstt1/t901353/src/gcc-3.2.1/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep -v '^--' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`" >&2; rm -f "needed-options"; false; else true; fi needed-options: gpc1: warning: -g is only supported when using GAS on this processor, gpc1: warning: -g option disabled
And GPC just checks for it.
The solution seems to be to avoid using `-g' (i.e., `CFLAGS="-O2"', something without `-g', or with an explicit `-g0' if necessary), or to install gas (if it supports this target).
Frank