GNU bug report logs - #8481
linking with externally generated objects

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: Nikos Mavrogiannopoulos <nmav@HIDDEN>; dated Tue, 12 Apr 2011 03:48:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 12 Apr 2011 03:47:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 11 23:47:08 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Q9UZH-00013y-5D
	for submit <at> debbugs.gnu.org; Mon, 11 Apr 2011 23:47:08 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9UG7-0000cy-TA
	for submit <at> debbugs.gnu.org; Mon, 11 Apr 2011 23:27:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9UFz-0002IA-KA
	for submit <at> debbugs.gnu.org; Mon, 11 Apr 2011 23:27:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from [140.186.70.17] (port=51379 helo=lists.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9UFz-0002Hq-F3
	for submit <at> debbugs.gnu.org; Mon, 11 Apr 2011 23:27:11 -0400
Received: from eggs.gnu.org ([140.186.70.92]:56509)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9SjB-0003He-2d
	for bug-libtool@HIDDEN; Mon, 11 Apr 2011 21:49:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9Kkt-0001fm-Bf
	for bug-libtool@HIDDEN; Mon, 11 Apr 2011 13:18:28 -0400
Received: from mail-wy0-f169.google.com ([74.125.82.169]:46554)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.mavrogiannopoulos@HIDDEN>) id 1Q9Kkt-0001eJ-5q
	for bug-libtool@HIDDEN; Mon, 11 Apr 2011 13:18:27 -0400
Received: by wyf19 with SMTP id 19so5923297wyf.0
	for <bug-libtool@HIDDEN>; Mon, 11 Apr 2011 10:18:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:sender:message-id:date:from:user-agent
	:mime-version:to:subject:x-enigmail-version:openpgp:content-type;
	bh=tutaHuGRMRpCriMQxU0jToP+gW+vwYk5WJdkv/DK5Xk=;
	b=j83cHkridMptrCjbqpqU0dvMjgOny/V8jWe3+rPLGEe/qlosEEze2eRZfDNzgz7sCD
	VUhxIQNIpS7fP1qmavrJkn3z6Z5UrrfU2cYzOOY1OQ1Q71miozQ+tnJpn9te7l0vE59L
	TonfnqpMhbNcGkmdoP1RdJ9Z/YNJXzOAu3mmw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:message-id:date:from:user-agent:mime-version:to:subject
	:x-enigmail-version:openpgp:content-type;
	b=SEHYgvYXTlrrDGN8M4tuwW4LDzZ7LYT0WjyopWJGafo/ECQyNNvswo4MuySweI2Uyz
	e6AHZFn3kvLUo+01r0oajeVidao+OWP4mek8KN1CrY/LXN3kjpkbZqcP3d1xcKo5sG3a
	HEBWJt8R5sovzPXZy+m5Ms87zhBv2W4SiMHcg=
Received: by 10.227.54.11 with SMTP id o11mr469348wbg.85.1302542306100;
	Mon, 11 Apr 2011 10:18:26 -0700 (PDT)
Received: from [10.100.2.14] (94-225-167-75.access.telenet.be [94.225.167.75])
	by mx.google.com with ESMTPS id x1sm54174wbh.53.2011.04.11.10.18.24
	(version=SSLv3 cipher=OTHER); Mon, 11 Apr 2011 10:18:25 -0700 (PDT)
Message-ID: <4DA337DF.9070508@HIDDEN>
Date: Mon, 11 Apr 2011 19:18:23 +0200
From: Nikos Mavrogiannopoulos <nmav@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
MIME-Version: 1.0
To: bug-libtool@HIDDEN
Subject: linking with externally generated objects
X-Enigmail-Version: 1.1.2
OpenPGP: id=96865171
Content-Type: multipart/mixed; boundary="------------090402070409060001050303"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 11 Apr 2011 23:47:05 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -5.9 (-----)

This is a multi-part message in MIME format.
--------------090402070409060001050303
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello,
 I use yasm to generate some objects and I want to include
them into a (static) library using libtool. I use automake
that in the end runs libtool as:
../../../libtool  --tag=CC   --mode=link gcc -std=gnu99
-fdiagnostics-show-option -g -O2 -maes -mpclmul   -o libintel.la
aes-x86.lo x64_do_rdtsc.o x64_iaesx64.o  -ldl -lpthread

The x64_do_rdtsc.o x64_iaesx64.o are the yasm generated files. libtool
then reports:
*** Warning: Linking the shared library libintel.la against the non-libtool
*** objects  x64_do_rdtsc.o x64_iaesx64.o is not portable!
libtool: link: rm -fr  .libs/libintel.a .libs/libintel.la
libtool: link: ar cru .libs/libintel.a .libs/aes-x86.o
libtool: link: ranlib .libs/libintel.a

and doesn't include the yasm generated files at all! This doesn't
seem correct. I attach a patch that fixes the issue for me
although I don't know whether I really fix the underlying issue.

regards,
Nikos

--------------090402070409060001050303
Content-Type: text/plain;
 name="patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch.txt"

--- libtool.orig	2011-04-11 19:12:54.000000000 +0200
+++ libtool	2011-04-11 19:13:11.000000000 +0200
@@ -7698,6 +7698,7 @@
 	  $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
 	  $ECHO "*** objects $objs is not portable!"
 	  libobjs+=" $objs"
+	  libobjs_save+=" $objs"
 	fi
       fi
 

--------------090402070409060001050303--




Acknowledgement sent to Nikos Mavrogiannopoulos <nmav@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:
bug#8481; 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.