Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gcc not working

Status
Not open for further replies.

rk0000

Technical User
Mar 15, 2002
33
IN
i have installed gcc c compiler package on my sun solaris 2.6 machine. It worked well. Suddenly it is giving error now.
$gcc test.c
ld.so.1: /usr/ccs/bin/ld: fatal: relocation error: file /usr/ccs/lib/libld.so.2: symbol _elf_getxoff: referenced symbol not found
gcc: Internal compiler error: program ld got fatal signal 9

if i do $gcc -v test.c
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -Dunix -D__svr4__ -D__SVR4 -Dsun -D__unix__ -D__svr4__ -D__SVR4 -D__sun__ -D__unix -D__sun -Asystem(svr4) -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) anil.c /var/tmp/cc0088fq.i
GNU CPP version 2.8.1 (i386 System V Release 4)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/i386-pc-solaris2.6/include
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/cc1 /var/tmp/cc0088fq.i -quiet -dumpbase anil.c -version -o /var/tmp/cc0088fq.s
GNU C version 2.8.1 (i386-pc-solaris2.6) compiled by GNU C version 2.8.1.
/usr/ccs/bin/as -V -Qy -o /var/tmp/cc0088fq1.o /var/tmp/cc0088fq.s
as: WorkShop Compilers 4.2 alpha 14 Jun 1996
/usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crt1.o /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crti.o /usr/ccs/lib/values-Xa.o /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crtbegin.o -L/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib /var/tmp/cc0088fq1.o -lgcc -lc -lgcc /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crtend.o /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/crtn.o
ld: Software Generation Utilities - Solaris-ELF (4.0)
ld.so.1: /usr/ccs/bin/ld: fatal: relocation error: file /usr/ccs/lib/libld.so.2: symbol _elf_getxoff: referenced symbol not found
gcc: Internal compiler error: program ld got fatal signal 9

###
what can be the problem. That programme is also simple
#include <stdio.h>
main(){
printf(&quot;Hello world&quot;);
}
Please give some suggestion to over come this
Thank u
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top