GNU bug report logs - #16833
nagfor needs linker indirection for --whole-archive and -soname.

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: Mat Cross <mathew.ian.cross@HIDDEN>; dated Fri, 21 Feb 2014 16:40:05 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 21 Feb 2014 16:39:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 11:39:48 2014
Received: from localhost ([127.0.0.1]:34928 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WGt8d-0000MV-Vy
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 11:39:48 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58190)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGoe3-0008He-Lm
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 06:51:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGodp-0008Nj-Qz
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 06:51:50 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44445)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGodp-0008Nd-Nq
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 06:51:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59872)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGodh-0000Jb-A6
 for bug-libtool@HIDDEN; Fri, 21 Feb 2014 06:51:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGodY-0008L7-8O
 for bug-libtool@HIDDEN; Fri, 21 Feb 2014 06:51:33 -0500
Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:42363)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mathew.ian.cross@HIDDEN>) id 1WGodY-0008Kp-2H
 for bug-libtool@HIDDEN; Fri, 21 Feb 2014 06:51:24 -0500
Received: by mail-wi0-f170.google.com with SMTP id hi5so771193wib.1
 for <bug-libtool@HIDDEN>; Fri, 21 Feb 2014 03:51:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=message-id:date:from:user-agent:mime-version:to:subject
 :content-type:content-transfer-encoding;
 bh=t+d2bTTmuym/yD2HGR7Dtje7We7H/RN//TKcYwTLK08=;
 b=wDOqjvHt6gOv4te4FKIor8ZU/BeVqVuvn+UcSrF0vbChnuu8LWomCES71gnetMtZRK
 x8he5XgzqM5WZcazw0xCtpPU2kATuSVNtgohTti0kZnh3/PcqHOjr0cVrlevGlu+SmXq
 gnmSHSbizYBb8VckxaJLFq1NboZqTXmyqu/ykeXxKhLK9FT+Pc1yr8T1NRK5cAZleaFa
 u0Lzt+tMFGiL/juNpgamMCzcZK2snSYyuVj5t8ikTxrd8nMUCIGGKZQU/NKrAJ8lG7u0
 RVO36NScav5NomNNRCiSpzkpN+iuhG3xCM+2XAveGS3DGYuz5a8Wb8IVE4w7dPReaXlt
 EcOA==
X-Received: by 10.180.207.10 with SMTP id ls10mr2897182wic.4.1392983482928;
 Fri, 21 Feb 2014 03:51:22 -0800 (PST)
Received: from [192.168.0.6] (penguin.nag.co.uk. [86.188.197.179])
 by mx.google.com with ESMTPSA id q15sm16372124wjw.18.2014.02.21.03.51.21
 for <bug-libtool@HIDDEN>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Fri, 21 Feb 2014 03:51:22 -0800 (PST)
Message-ID: <53073DB8.7000806@HIDDEN>
Date: Fri, 21 Feb 2014 11:51:20 +0000
From: Mat Cross <mathew.ian.cross@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: bug-libtool@HIDDEN
Subject: nagfor needs linker indirection for --whole-archive and -soname.
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 21 Feb 2014 11:39:46 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hi. I was just getting NetCDF 4.2 (with NAG Fortran) working by adding some updates to libtool.m4. I see that there have already been some fixes since the (old, 2.2.10) libtool that NetCDF is using. There still seem to be a few problems though, mainly because of the double indirection required in getting to ld from nagfor via gcc. I had to add

_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"`,-Wl,,--no-whole-archive'

before the nagfor setting of tmp_sharedflag, in order to correctly delimit with commas the doubly-Wl-indirected whole-archive list.

I also had to later override archive_cmds in a similar manner to get -soname passed correctly

nagfor*) # NAG Fortran 5.3
  _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag"' $libobjs $deplibs $compiler_flags ${wl}-soname,,$soname -o $lib'
  ;;

later on.

This my first time hacking libtool, and I'm afraid I don't know how to get you a proper patch that I can test. So I hope that the above code fragments are OK? I could just update the libtool.m4 (untested) for you, if you wish.
Thanks,
Mat Cross
Senior Technical Consultant (Software Quality), NAG Ltd




Acknowledgement sent to Mat Cross <mathew.ian.cross@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#16833; 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.