This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: ld coredump building gcc 3.4.1 on Solaris 7
- From: "McGarry, Simon" <SMcGarry at acadinfo dot co dot uk>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 8 Jul 2004 10:45:33 +0100
- Subject: RE: ld coredump building gcc 3.4.1 on Solaris 7
The output from gdb is:
bash-2.05a# gdb ld core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...
Core was generated by `/opt/academy/gnu/bin/ld -Y P,/usr/ccs/lib:/usr/lib
-rpath-link /usr/lib -Qy -o'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /lib/libc.so.1...done.
Reading symbols from /lib/libdl.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1...done.
#0 elf_sort_symbol (arg1=0x0, arg2=0xfc020) at
/opt/academy/gnu/src/binutils-2.15/bfd/elflink.c:2698
2698 vdiff = h1->root.u.def.value - h2->root.u.def.value;
I haven't managed to get any further with the build and I'm at a loss now.
Any help greatly appreciated.
Thanks
Simon
-----Original Message-----
From: McGarry, Simon
Sent: 07 July 2004 12:50
To: 'gcc-help@gcc.gnu.org'
Subject: ld coredump building gcc 3.4.1 on Solaris 7
Hi, I am trying to compile gcc 3.4.1 on a Solaris 7 server.
The parameters I used were:
/opt/academy/gnu/src/gcc-3.4.1/configure --prefix=/opt/academy/gnu
--with-ld=/opt/academy/gnu/bin/ld --with-as=/opt/academy/gnu/bin/as
--disable-multilib
I am using gnu make 3.80 and binutils 2.15, I disabled multilib as we are
running 32bit only.
The error is shown below:
make[1]: Leaving directory `/opt/academy/gnu/src/build-gcc/intl'
make[1]: Entering directory `/opt/academy/gnu/src/build-gcc/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/gnu/bin/gcc" "CFLAGS=-g
-O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2"
"INSTALL=/usr/gnu/bin/ginstall -c" "INSTALL_DATA=/usr/gnu/bin/ginstall -c -m
644" "INSTALL_PROGRAM=/usr/gnu/bin/ginstall -c"
"INSTALL_SCRIPT=/usr/gnu/bin/ginstall -c" "LDFLAGS=" "LIBCFLAGS=-g -O2"
"LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS="
"exec_prefix=/opt/academy/gnu" "infodir=/opt/academy/gnu/info"
"libdir=/opt/academy/gnu/lib" "prefix=/opt/academy/gnu"
"tooldir=/opt/academy/gnu/sparc-sun-solaris2.7" "AR=ar" "AS=as"
"CC=/usr/gnu/bin/gcc" "CXX=c++" "LD=/usr/ccs/bin/ld" "LIBCFLAGS=-g -O2"
"NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/opt/academy/gnu/src/build-gcc/zlib'
Bootstrapping the compiler
make[1]: Entering directory `/opt/academy/gnu/src/build-gcc/gcc'
make CC=" stage1/xgcc -Bstage1/
-B/opt/academy/gnu/sparc-sun-solaris2.7/bin/" CC_FOR_BUILD=" stage1/xgcc
-Bstage1/ -B/opt/academy/gnu/sparc-sun-solaris2.7/bin/" \
STAGE_PREFIX=stage1/ \
ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS=""
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long
-Wold-style-definition " libdir=/opt/academy/gnu/lib LANGUAGES="c gcov
gcov-dump c++ f77 java objc" MAKEINFO="makeinfo --split-size=5000000"
MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
CFLAGS="-g -O2" WERROR=""
make[2]: Entering directory `/opt/academy/gnu/src/build-gcc/gcc'
stage1/xgcc -Bstage1/ -B/opt/academy/gnu/sparc-sun-solaris2.7/bin/ -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H
-DGENERATOR_FILE -o genattrtab \
genattrtab.o genautomata.o \
rtl.o read-rtl.o bitmap.o ggc-none.o min-insn-modes.o gensupport.o
insn-conditions.o print-rtl1.o errors.o \ varray.o ../libiberty/libiberty.a
-lm
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
make[2]: *** [genattrtab] Error 1
make[2]: Leaving directory `/opt/academy/gnu/src/build-gcc/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/opt/academy/gnu/src/build-gcc/gcc'
make: *** [bootstrap] Error 2
Can anyone help?
Thanks
Simon
---------------------------------------------------------------------
This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.
Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of the Capita Group and that the content herein
may not be held binding upon the Capita Group or any associated company.
----------------------------------------------------------------------