bootstrap on 3.1 (probably 3.0.4) on i586-pc-sco3.2v5.0.2 --with-gnu-as

rbrown64@csc.com.au rbrown64@csc.com.au
Tue Feb 19 00:58:00 GMT 2002


Sorry, I should have reported this earlier (& actually tested 3.0.4 rather
than 3.0.3).
Building on i586-pc-sco3.2v5.0.2 --with-gnu-as fails as follows

./xgcc -B./ -B/usr/local/i586-pc-sco3.2v5.0.2/bin/ -isystem
/usr/local/i586-pc-sco3.2v5.0.2/include -isystem
/usr/local/i586-pc-sco3.2v5.0.2/sys-include -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
-I. -I. -I../../gcc-20020218/gcc -I../../gcc-20020218/gcc/.
-I../../gcc-20020218/gcc/config -I../../gcc-20020218/gcc/../include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions -mcoff
-fno-omit-frame-pointer \
   -c ../../gcc-20020218/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
  -o crtbeginS.o
cc1: invalid option `coff'
../../gcc-20020218/gcc/crtstuff.c: In function `__do_global_ctors_aux':
../../gcc-20020218/gcc/crtstuff.c:373: warning: implicit declaration of
function `alloca'
../../gcc-20020218/gcc/unwind-dw2-fde.h: At top level:
../../gcc-20020218/gcc/crtstuff.c:370: warning: `__do_global_ctors_aux'
defined but not used
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/users/rdb/src/gcc-20020218.chk/gcc'
make[1]: *** [stage1_build] Error 2

./xgcc -B./ -B/usr/local/i586-pc-sco3.2v5.0.2/bin/ -isystem
/usr/local/i586-pc-sco3.2v5.0.2/include -isystem
/usr/local/i586-pc-sco3.2v5.0.2/sys-include  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
-I. -I. -I../../gcc-3.0.3/gcc -I../../gcc-3.0.3/gcc/.
-I../../gcc-3.0.3/gcc/config-I../../gcc-3.0.3/gcc/../include  -g0 \
  -finhibit-size-directive -fno-inline-functions \
  -fno-exceptions -mcoff -fno-omit-frame-pointer  \
  -c ../../gcc-3.0.3/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
  -o crtbeginS.o
cc1: Invalid option `coff'
../../gcc-3.0.3/gcc/crtstuff.c: In function `__do_global_ctors_aux':
../../gcc-3.0.3/gcc/crtstuff.c:329: warning: implicit declaration of
function `alloca'
../../gcc-3.0.3/gcc/crtstuff.c: At top level:
../../gcc-3.0.3/gcc/crtstuff.c:324: warning: `__do_global_ctors_aux'
defined but not used
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/users/rdb/src/gcc-3.0.3.obj/gcc'
make[1]: *** [stage1_build] Error 2

The -mcoff is provided by

gcc/config/i386/t-sco5gas:CRTSTUFF_T_CFLAGS_S = -mcoff
-fno-omit-frame-pointer

I worked around it by editting the gcc/Makefile. The obvious fix is to
remove the -mcoff from
t-sco5gas .Will try tomorrow when this bootstrap completes.

Robert, do you agree with removing -mcoff from t-sco5gas and is it
sufficiently low impact
to go into 3.0.4?

I went to --with-gnu-as (binutils 2.11) after

/users/rdb/src/gcc-3.0.3.obj/gcc/xgcc -B/users/rdb/src/gcc-3.0.3.obj/gcc/
-nostdinc++
-L/users/rdb/src/gcc-3.0.3.obj/i586-pc-sco3.2v5.0.2/libstdc++-v3/src
-L/users/rdb/src/gcc-3.0.3.obj/i586-pc-sco3.2v5.0.2/libstdc++-v3/src/.libs
-B/usr/local/i586-pc-sco3.2v5.0.2/bin/
-B/usr/local/i586-pc-sco3.2v5.0.2/lib/ -isystem
/usr/local/i586-pc-sco3.2v5.0.2/include -nostdinc++
-I/users/rdb/src/gcc-3.0.3.obj/i586-pc-sco3.2v5.0.2/libstdc++-v3/include/i586-pc-sco3.2v5.0.2

-I/users/rdb/src/gcc-3.0.3.obj/i586-pc-sco3.2v5.0.2/libstdc++-v3/include
-I../../../../gcc-3.0.3/libstdc++-v3/libsupc++
-I../../../../gcc-3.0.3/libstdc++-v3/libmath -g -O2 -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c
../../../../gcc-3.0.3/libstdc++-v3/src/limits.cc -o limits.o
../../../../gcc-3.0.3/libstdc++-v3/src/limits.cc:0: warning:
-ffunction-sections
   may affect debugging on some targets.
xgcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[4]: *** [limits.lo] Error 1
make[4]: Leaving directory
`/users/rdb/src/gcc-3.0.3.obj/i586-pc-sco3.2v5.0.2/libstdc++-v3/src'



More information about the Gcc-bugs mailing list