This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug with -ggdb on sparc-solaris2.5.1 ?
- To: egcs-bugs at cygnus dot com
- Subject: Bug with -ggdb on sparc-solaris2.5.1 ?
- From: Laurent Bonnaud <bonnaud at irisa dot fr>
- Date: 28 Nov 1997 22:04:13 +0100
Hi,
when i try to compile this program
int main()
{
}
with the -ggdb option, it does not link :
% gcc -v -ggdb e.c
Reading specs from /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/specs
gcc version egcs-2.90.19 971127 (gcc2-970802 experimental)
/udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -ggdb -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) e.c /tmp/cca004Jt.i
GNU CPP version egcs-2.90.19 971127 (gcc2-970802 experimental) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/udd/bonnaud/poubelle/sparc-egcs/sparc-sun-solaris2.5.1/include
/udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/include
/usr/include
End of search list.
/udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/cc1 /tmp/cca004Jt.i -quiet -dumpbase e.c -ggdb -version -o /tmp/cca004Jt.s
GNU C version egcs-2.90.19 971127 (gcc2-970802 experimental) (sparc-sun-solaris2.5.1) compiled by GNU C version egcs-2.90.19 971127 (gcc2-970802 experimental).
/usr/ccs/bin/as -V -Qy -s -o /tmp/cca004Jt1.o /tmp/cca004Jt.s
/usr/ccs/bin/as: WorkShop Compilers 4.2 dev 13 May 1996
/udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/crt1.o /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/crti.o /usr/ccs/lib/values-Xa.o /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/crtbegin.o -L/udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19 -L/udd/bonnaud/poubelle/sparc-egcs/sparc-sun-solaris2.5.1/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/udd/bonnaud/poubelle/sparc-egcs/lib /tmp/cca004Jt1.o -lgcc -lc -lgcc /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/crtend.o /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.19/crtn.o
ld: Software Generation Utilities (SGU) SunOS/ELF (LK-2.0 (S/I) - versioning)
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.text'
from a non-allocatable section `.debug_line'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.debug_abbrev'
from a non-allocatable section `.debug_info'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.text'
from a non-allocatable section `.debug_info'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.debug_line'
from a non-allocatable section `.debug_info'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.debug_info'
from a non-allocatable section `.debug_pubnames'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.debug_info'
from a non-allocatable section `.debug_aranges'
cannot be processed at runtime: relocation ignored
ld: warning: file /tmp/cca004Jt1.o: relocation against external symbol `.text'
from a non-allocatable section `.debug_aranges'
cannot be processed at runtime: relocation ignored
Undefined first referenced
symbol in file
.debug_info /tmp/cca004Jt1.o
.text /tmp/cca004Jt1.o
.debug_abbrev /tmp/cca004Jt1.o
.debug_line /tmp/cca004Jt1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
--
Laurent.