Problems with linking library libgnat.a
Andy Hall
andy.hall@baesystems.com
Thu May 1 14:34:00 GMT 2003
Any ideas ?
---------------------- Forwarded by Andy Hall/Technical/MAA/BAe on 01/05/2003 15:31
---------------------------
Andy Hall
01/05/2003 11:54
abcd
To: gcc-help@gcc.gnu.org@internet
cc:
Paper Mail:
Subject: 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.
********************************************************************
More information about the Gcc
mailing list