GNU bug report logs - #8558
libtool must not depend on existence of system '/usr/lib*/*.la' files

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: jason.vas.dias@HIDDEN; dated Tue, 26 Apr 2011 12:39:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 16:56:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 26 12:56:54 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 1QElZF-0003Wd-I8
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:56:53 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZD-0003WP-Rt
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:56:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZ7-0006Ec-JS
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:56:46 -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, RFC_ABUSE_POST, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:41845)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZ7-0006EY-I4
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 12:56:45 -0400
Received: from eggs.gnu.org ([140.186.70.92]:48357)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZ6-0002iI-S1
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 12:56:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZ6-0006E9-07
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 12:56:44 -0400
Received: from mail-ew0-f41.google.com ([209.85.215.41]:54582)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapierfilter@HIDDEN>) id 1QElZ5-0006Dm-S5
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 12:56:43 -0400
Received: by ewy9 with SMTP id 9so295645ewy.0
	for <bug-libtool@HIDDEN>; Tue, 26 Apr 2011 09:56:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:in-reply-to:references:from
	:date:x-google-sender-auth:message-id:subject:to:cc:content-type
	:content-transfer-encoding;
	bh=uj4cf1IqQ0l6QGykxu4MrZRbvkhyT7wGAAPkxrTtYSY=;
	b=tovIr3s0265a/jevfjFpC86iMmd8i2lrmD0jX/V/jigAlDcVWa9IVi+GExR3QYegke
	/l4gdNS9EZGNw4AR3Izf8rGtETzruEwugdRaxyb8xEING33y5sqLKss9sbmws/fXhO3x
	7PRScPbB9rvtWYBwPUOQ3nUvH5h0RaGVcFUhI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type
	:content-transfer-encoding;
	b=WD4dOxXqcJbKFNL8hjP5jwn9Jfu2L0N0TxGvTDM0nVZnxxgu9nLBIOGLx/XoBj+EPi
	PDJUZ6x/zb6Xp8k6Gp0ubZOVS+gk7IN6A+6qT0f9oKpyRRWnWzKHAtapCP4YXbv1N5DX
	s3RE67Fj0wSvdIwh6d5jGaDdkvbM4nxYtL1TI=
Received: by 10.213.105.141 with SMTP id t13mr483548ebo.8.1303837002101; Tue,
	26 Apr 2011 09:56:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.213.17.193 with HTTP; Tue, 26 Apr 2011 09:56:22 -0700 (PDT)
In-Reply-To: <201104261338.19261.jason.vas.dias@HIDDEN>
References: <201104261338.19261.jason.vas.dias@HIDDEN>
From: Mike Frysinger <vapier@HIDDEN>
Date: Tue, 26 Apr 2011 12:56:22 -0400
X-Google-Sender-Auth: TX4I4uTs0IpUECGow6nIggs-Msk
Message-ID: <BANLkTindVgbzU3gR16w76OKAzhUOeD5G9g@HIDDEN>
Subject: Re: libtool must not depend on existence of system '/usr/lib*/*.la'
	files
To: jason.vas.dias@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: -4.8 (----)
X-Debbugs-Envelope-To: submit
Cc: bug-libtool@HIDDEN
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.0 (-----)

On Tue, Apr 26, 2011 at 08:38, Jason Vas Dias wrote:
> My 32-bit C++ libtool builds were failing because libtool incorrectly acc=
essed
> =A0 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++v3.la ,
> which gcc installs for its 64-bit environment, NOT
> =A0 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/32/libstdc++v3.la ,
> which gcc installs for its 64-bit environment.

you mean which gcc installs for its 32-bit env

> And I try to rebuild the 32-bit package from scratch, and it fails becaus=
e libtool can
> find no system 'libstdc++v3.la' file.

most likely not a bug in libtool.  something (probably a .la file) has
encoded a reference to the libstdc++ .la file.  find that something
and fix it.
-mike




Information forwarded to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:
bug#8558; Package libtool. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 12:38:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 26 08:38:46 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 1QEhXR-0005xw-QP
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 08:38:46 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXO-0005xa-RQ
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 08:38:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXI-0005Ns-R1
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 08:38:37 -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, RFC_ABUSE_POST, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40381)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXI-0005No-PS
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2011 08:38:36 -0400
Received: from eggs.gnu.org ([140.186.70.92]:53552)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXH-00031t-SU
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 08:38:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXD-0005MA-7L
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 08:38:35 -0400
Received: from mail-ww0-f49.google.com ([74.125.82.49]:57011)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jason.vas.dias@HIDDEN>) id 1QEhXD-0005M5-2u
	for bug-libtool@HIDDEN; Tue, 26 Apr 2011 08:38:31 -0400
Received: by wwb39 with SMTP id 39so483384wwb.30
	for <bug-libtool@HIDDEN>; Tue, 26 Apr 2011 05:38:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:from:reply-to:to:subject:date:user-agent:cc
	:mime-version:content-type:content-transfer-encoding:message-id;
	bh=a/Xgq6PnSByeXhkPz8x0bFgMTb5OvjwfeFCRH0ej4Yw=;
	b=gQk7C4gdk0bQF+PASIr827cg/o3ecPyPv6f/Nc5xu7ufJpHM6pcFzQbUOMp028UKeM
	IhV1FvZ1ruJNFgDLyNV6gIqE0wwCDlaqAGM0u1NbB29+RxxV4t0ZtQLhyx9AZCP5Mcyh
	5fG4sFPYGiscHqTQKK6zX5TvyZKASIhQNLfVE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:reply-to:to:subject:date:user-agent:cc:mime-version
	:content-type:content-transfer-encoding:message-id;
	b=a3hb4moHmv+6LiBYILl4bT2u0PVp7s5EQv59f5ha8vqkQAWLlSQWyqG8UTAPTBms97
	Ui5IadBcovnGCp/OBPIfaynuEY9BVOZi+rrayoprbyAcQnaKlnNOJy9+d7284EO4JII7
	o5zJAFunZpp848xhyV3qHDxtT6gQG+eBqphlM=
Received: by 10.216.232.13 with SMTP id m13mr4473781weq.110.1303821510311;
	Tue, 26 Apr 2011 05:38:30 -0700 (PDT)
Received: from jvdspc (86-45-160-146-dynamic.b-ras2.chf.cork.eircom.net
	[86.45.160.146])
	by mx.google.com with ESMTPS id g32sm2997124wej.3.2011.04.26.05.38.29
	(version=SSLv3 cipher=OTHER); Tue, 26 Apr 2011 05:38:29 -0700 (PDT)
From: Jason Vas Dias <jason.vas.dias@HIDDEN>
To: bug-libtool@HIDDEN
Subject: libtool must not depend on existence of system '/usr/lib*/*.la' files
Date: Tue, 26 Apr 2011 13:38:15 +0100
User-Agent: KMail/1.12.4 (Linux/2.6.38.2-jvd; KDE/4.3.4; x86_64; svn-1073138;
	2010-01-11)
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201104261338.19261.jason.vas.dias@HIDDEN>
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.6 (-----)
X-Debbugs-Envelope-To: submit
Cc: Mike Frysinger <vapier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: jason.vas.dias@HIDDEN
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.7 (-----)

This bug is related to,  but different from, bug #8537, and is fixed by the patch 
(to INSTALLED script) that I submitted for that bug .

My 32-bit C++ libtool builds were failing because libtool incorrectly accessed
   /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/libstdc++v3.la , 
which gcc installs for its 64-bit environment, NOT 
   /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0/32/libstdc++v3.la ,
which gcc installs for its 64-bit environment.

So I removed all gcc libtool files (I still have the build tree) :
  $ find /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.0  -name '*.la' -a -exec 'rm' '{}' ';'

And I try to rebuild the 32-bit package from scratch, and it fails because libtool can
find no system 'libstdc++v3.la' file. 

Then also the C++ 64-bit builds fail because of missing libstdc++v3.la files .

So :
  o I cannot build 32-bit C++ programs with libtool when the 64-bit libstdc++v3.la file is installed;
  o I cannot build 64-bit or 32-bit C++ programs with libtool without any libstdc++v3.la files installed.

In both cases all the 
   /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/{,32/}lib{stdc++v3,suppc++,suppc++convenience}.{a,so} files
existed correctly, so why didn't libtool pick them up and use them ?

Why is libtool demanding that I install system /usr/*/*.la files ? 
I thought installing these was optional ?

I think this is all to do with libtool using a hardcoded $sys_lib_search_path_spec :

/usr/bin/libtool@line 274:
# Compile-time system search path for libraries.
sys_lib_search_path_spec="/usr/lib64/gcc/x86_64-pc-linux-gnu/lib64 /usr/lib64 /lib64 /usr/x86_64-pc-linux-gnu/lib "

when I think it should be saying:
# Compile-time system search path for libraries.
sys_lib_search_path_spec="$(${CC:-gcc} $CFLAGS -print-search-dirs |sed -n '/^libraries:/{s/^libraries[:=\ \       ]*//;s/:/ /g;p}')"

Please, Mike, libtool developers, what is wrong with my reasoning here ?




Acknowledgement sent to jason.vas.dias@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#8558; 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.