This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with linking library libgnat.a


I am encountering a problem generating a fatal error when I try to create a shared 
object library including ada code called from C.
The code can be correctly linked to a C calling program that is linked to shared 
libraries containging the ada code if the main C program is linked with 
-lgnat. (linking  libgnat.a) but I get the following fatal error if I try to link 
libgnat.a into my .so to create a standalone relocatable so library.

wanrum:/home/wanrum/w858ah2/ada/gnulib> make_shared
gnatmake: objects up to date.
Reading specs from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/specs
gcc version 2.8.1
 /opt/gnu/sparc-sun-solaris2.5.1/bin/ld -V -G -dy -z text -Bsymbolic -G -dy -z text 
-Y P,/usr/ccs/lib:/usr/lib -Qy -o libmylib.so 
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crti.o /usr/ccs/lib/values-Xa.o 
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crtbegin.o 
-L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/adalib 
-L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/adainclude 
-L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1 -L/opt/gnu/sparc-sun-solaris2.5.
1/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/opt/gnu/lib b_mycall.o interface.o -lgnat 
-lgcc -lgcc -lgcc /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crtend.o 
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crtn.o
GNU ld version 2.8.1 (with BFD 2.8.1)
  Supported emulations:
   elf32_sparc
gcc: Internal compiler error: program ld got fatal signal 6


wanrum:/home/wanrum/w858ah2/ada/gnulib> version
Machine hardware:   sun4u
OS version:         5.6
Processor type:     sparc
Hardware:           SUNW,Ultra-Enterprise

Any ideas who could help ?

Regards,
Andy

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]