GNU bug report logs - #11423
x86_64-pc-solaris2.* GNU ld breakage due to _sol2 emulation detection

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Fabian Groffen <grobian@HIDDEN>; dated Sun, 6 May 2012 17:35:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 May 2012 17:34:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 06 13:34:59 2012
Received: from localhost ([127.0.0.1]:38787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SR5MI-0005YP-Aw
	for submit <at> debbugs.gnu.org; Sun, 06 May 2012 13:34:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43838)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <grobian@HIDDEN>) id 1SQykg-0003Il-EE
	for submit <at> debbugs.gnu.org; Sun, 06 May 2012 06:31:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <grobian@HIDDEN>) id 1SQyij-00070r-4v
	for submit <at> debbugs.gnu.org; Sun, 06 May 2012 06:29:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:38777)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <grobian@HIDDEN>) id 1SQyij-00070k-1e
	for submit <at> debbugs.gnu.org; Sun, 06 May 2012 06:29:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34822)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <grobian@HIDDEN>) id 1SQyih-0002D9-8N
	for bug-libtool@HIDDEN; Sun, 06 May 2012 06:29:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <grobian@HIDDEN>) id 1SQyif-0006yq-6u
	for bug-libtool@HIDDEN; Sun, 06 May 2012 06:29:38 -0400
Received: from amun.cheops.ods.org ([83.161.135.166]:50130)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <grobian@HIDDEN>) id 1SQyie-0006yj-Vp
	for bug-libtool@HIDDEN; Sun, 06 May 2012 06:29:37 -0400
Received: from nut.cheops.ods.org ([2001:888:1022:0:ca2a:14ff:fe35:7a00]
	helo=gentoo.org)
	by amun.cheops.ods.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77)
	(envelope-from <grobian@HIDDEN>) id 1SQyia-0001RZ-Bj
	for bug-libtool@HIDDEN; Sun, 06 May 2012 12:29:34 +0200
Date: Sun, 6 May 2012 12:29:31 +0200
From: Fabian Groffen <grobian@HIDDEN>
To: bug-libtool@HIDDEN
Subject: x86_64-pc-solaris2.* GNU ld breakage due to _sol2 emulation detection
Message-ID: <20120506102930.GN54691@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="96dIhm/ZjrNld+BP"
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (Darwin 11.3.0, VIM - Vi IMproved 7.3)
Organization: Gentoo Foundation, Inc.
X-Content-Scanned: by amun.cheops.ods.org (Exim Exiscan) using SpamAssassin
	and ClamAV
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 06 May 2012 13:34:57 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)


--96dIhm/ZjrNld+BP
Content-Type: multipart/mixed; boundary="1HuzLmPZrG5RH6bG"
Content-Disposition: inline


--1HuzLmPZrG5RH6bG
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

All,

Since commit [1] libtool tries to set a 64-bits target for GNU ld.
However, it does so wrongly for x86_64-pc-solaris2.* targets, causing
libtool to believe the linker is called ld_sol2.  There is no such
thing, and it obviously breaks things further down.
Some people wrongly assume there is supposed to be an ld_sol2 on their
systems, e.g. [2].

I think the original change is fragile, because it assumes it has all
CHOSTs matched, then appends _sol2.  In the wild, people have used
amd64-pc-solaris2* too, so perhaps it would be safer if the code only
appended _sol2 if there is actually an explicit target set.

Anyhow, since the 64-bits sparc target is called sparc64-* or sparcv9-*,
the sparc case is already correctly handled, so in the attached patch, I
just added an x86_64-* case, although I could imagine relaxing the i?86
case to *86*-pc-solaris2* too.

In any case, defaulting to a linker called ld_sol2 is wrong.

Regards,
Fabian


[1] http://lists.gnu.org/archive/html/libtool-commit/2011-02/msg00000.html
[2] http://osdyson.org/issues/8

--=20
Fabian Groffen
Gentoo on a different level

--1HuzLmPZrG5RH6bG
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="libtool-2.4.2-solaris_sol2.patch"

Unbreak x86_64-pc-solaris2.1[01], it IS 64-bits too.  Without this,
libtool thinks the linker is called ld_sol2.

--- libltdl/m4/libtool.m4
+++ libltdl/m4/libtool.m4
@@ -1383,7 +1383,7 @@
       case $lt_cv_prog_gnu_ld in
       yes*)
         case $host in
-        i?86-*-solaris*)
+        i?86-*-solaris*|x86_64-*-solaris*)
           LD="${LD-ld} -m elf_x86_64"
           ;;
         sparc*-*-solaris*)

--1HuzLmPZrG5RH6bG--

--96dIhm/ZjrNld+BP
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (Darwin)

iEYEARECAAYFAk+mUooACgkQX3X2B8XHTokHkACfa/ZHIL+H8MpDLwFd/gIQEVeE
UNMAnRBlZmwp0ZD7QCXuf+CB16764gZa
=0tx0
-----END PGP SIGNATURE-----

--96dIhm/ZjrNld+BP--




Acknowledgement sent to Fabian Groffen <grobian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#11423; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.