Solaris 7 x86 GCC 3.0 build problems

Chris McKay chris.mckay@solipsys.com
Mon Jun 18 15:42:00 GMT 2001


GCC 3.0 fails to build. Configured on a Solaris 7 MU4 x86 box with GNU Make
with the
following configure command :

configure --prefix=/usr/local/gcc-3.0 --enable-threads=posix

make[1]: Entering directory `/home/chris/gcc-3.0/objdir/libiberty'
make[2]: Entering directory `/home/chris/gcc-3.0/objdir/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/chris/gcc-3.0/objdir/libiberty/testsuite'
make[1]: Leaving directory `/home/chris/gcc-3.0/objdir/libiberty'
make[1]: Entering directory `/home/chris/gcc-3.0/objdir/zlib'
true "AR_FLAGS=cr" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2"
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/sh
/home/chris/gcc-3.0/install-sh -c" "INSTALL_DATA=/bin/sh
/home/chris/gcc-3.0/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh
/home/chris/gcc-3.0/install-sh -c " "INSTALL_SCRIPT=/bin/sh
/home/chris/gcc-3.0/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2"
"LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo  " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest"
"RUNTESTFLAGS=" "exec_prefix=/usr/local/gcc-3.0"
"infodir=/usr/local/gcc-3.0/info" "libdir=/usr/local/gcc-3.0/lib"
"prefix=/usr/local/gcc-3.0" "tooldir=/usr/local/gcc-3.0/i386-pc-solaris2.7"
"AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm"
"PICFLAG=" "RANLIB=true" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/home/chris/gcc-3.0/objdir/zlib'
make[1]: Entering directory `/home/chris/gcc-3.0/objdir/fastjar'
make[1]: Leaving directory `/home/chris/gcc-3.0/objdir/fastjar'
make[1]: Entering directory `/home/chris/gcc-3.0/objdir/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/chris/gcc-3.0/objdir/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/chris/gcc-3.0/objdir/gcc/intl'
(cd po && make all)
make[2]: Entering directory `/home/chris/gcc-3.0/objdir/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/chris/gcc-3.0/objdir/gcc/po'
make
GCC_FOR_TARGET="/home/chris/gcc-3.0/objdir/gcc/xgcc -B/home/chris/gcc-3.0/ob
jdir/gcc/ -B/usr/local/gcc-3.0/i386-pc-solaris2.7/bin/ -B/usr/local/gcc-3.0/
i386-pc-solaris2.7/lib/ -isystem
/usr/local/gcc-3.0/i386-pc-solaris2.7/include" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  AR_FOR_TARGET="ar" \
  AR_CREATE_FOR_TARGET="ar  rc" \
  AR_FLAGS_FOR_TARGET="" \
  OLDCC="cc" CCLIBFLAGS="-O" \


CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-protot
ypes -Wtraditional -pedantic -Wno-long-long" \
  RANLIB_FOR_TARGET="true" \
  RANLIB_TEST_FOR_TARGET="[ -f true ] || ( [ "i386-pc-solaris2.7" =
"i386-pc-solaris2.7" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
  NM_FOR_TARGET="/usr/ccs/bin/nm" AWK="nawk" \


LIBGCC2_CFLAGS="-O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototyp
es -Wmissing-prototypes -isystem
./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEED
ED " \


INCLUDES="-I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/.
./include" MAYBE_USE_COLLECT2="" \
  CONFIG_H="tconfig.h  insn-codes.h insn-flags.h" MACHMODE_H="machmode.h
machmode.def" \
  LIB1ASMSRC='' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/home/chris/gcc-3.0/objdir/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/chris/gcc-3.0/objdir/gcc/xgcc -B/home/chris/gcc-3.0/objdir/gcc/ -B/usr
/local/gcc-3.0/i386-pc-solaris2.7/bin/ -B/usr/local/gcc-3.0/i386-pc-solaris2
.7/lib/ -isystem
sr/local/gcc-3.0/i386-pc-solaris2.7/include -O2   -DIN_GCC    -W -Wall -Wwri
te-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
/include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDE
D  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../inclu
de -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:219: warning: implicit declaration of function
`strlen'
../../gcc/unwind-dw2.c: In function `execute_stack_op':
../../gcc/unwind-dw2.c:300: warning: `result' might be used uninitialized in
this function
../../gcc/unwind-dw2.c: In function `execute_cfa_program':
../../gcc/unwind-dw2.c:775: warning: implicit declaration of function
`alloca'
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:886: warning: implicit declaration of function
`memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1088: warning: missing braces around initializer
../../gcc/unwind-dw2.c:1088: warning: (near initialization for
`once_regsizes.__pthread_once_pad')
../../gcc/unwind-dw2.c:1103: warning: implicit declaration of function
`memcpy'
Assembler: unwind-dw2.c
        aline 4252      : Illegal subtraction
        aline 4275      : Illegal subtraction
        aline 4306      : Illegal subtraction
        aline 4333      : Illegal subtraction
        aline 4370      : Illegal subtraction
        aline 4413      : Illegal subtraction
        aline 4456      : Illegal subtraction
        aline 4495      : Illegal subtraction
        aline 4530      : Illegal subtraction
        aline 4559      : Illegal subtraction
        aline 4594      : Illegal subtraction
        aline 4625      : Illegal subtraction
        aline 4668      : Illegal subtraction
        aline 4711      : Illegal subtraction
        aline 4748      : Illegal subtraction
        aline 4783      : Illegal subtraction
        aline 4822      : Illegal subtraction
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/chris/gcc-3.0/objdir/gcc'
make[1]: *** [libgcc.a] Error 2

Chris McKay                 mailto:chris.mckay@solipsys.com
Solipsys Corporation        http://www.solipsys.com



More information about the Gcc-help mailing list