This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/1955: Linking wrong shared libgcc with mabi=64 on irix6.5
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1955: Linking wrong shared libgcc with mabi=64 on irix6.5
- From: David dot Billinghurst at riotinto dot com
- Date: 12 Feb 2001 23:10:50 -0000
- Reply-To: David dot Billinghurst at riotinto dot com
>Number: 1955
>Category: c
>Synopsis: Linking wrong shared libgcc with mabi=64 on irix6.5
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 12 15:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: David Billinghurst
>Release: gcc version 2.97 20010211
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
multilib bootstrap fails to build mabi=64 version libobjc.
/exd4/billingd/obj/gcc/gcc/xgcc -B/exd4/billingd/obj/gcc/gcc/ -B/exd4/billingd/tmp/gcc/mips-sgi-irix6.5/bin/ -B/exd4/billingd/tmp/gcc/mips-sgi-irix6.5/lib/ -isystem /exd4/billingd/tmp/gcc/mips-sgi-irix6.5/include -mabi=64 -shared .libs/archive.o .libs/class.o .libs/encoding.o .libs/gc.o .libs/hash.o .libs/init.o .libs/linking.o .libs/misc.o .libs/nil_method.o .libs/NXConstStr.o .libs/Object.o .libs/objects.o .libs/Protocol.o .libs/sarray.o .libs/selector.o .libs/sendmsg.o .libs/thr.o .libs/thr-objc.o -lc -Wl,-soname -Wl,libobjc.so.2 `test -n "sgi2.0" && echo -Wl,-set_version -Wl,sgi2.0` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libobjc.so.2.0
ld64: FATAL 12: Expecting 64-bit objects: /exd4/billingd/obj/gcc/gcc/libgcc_s.so is n32.
We are linking with libgcc_s.so rather than libgcc_s_mabi=64.so
The specs file gives
*libgcc:
-dont_warn_unused %{shared-libgcc:-lgcc_s%M}%{static-libgcc:-lgcc}%{!shared-libgcc:%{!static-libgcc:%{shared:-lgcc_s%M}}}%{!shared-libgcc:%{!static-libgcc:%{!shared:-lgcc}}} -warn_unused
I guess this would work if:
-mabi=n32 => M =
-mabi=64 => M = _mabi=64
but I don't know check if this is the case.
>How-To-Repeat:
configure
make bootstrap
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: