From unknown Sun Aug 17 01:41:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16833: nagfor needs linker indirection for --whole-archive and -soname. Resent-From: Mat Cross Original-Sender: "Debbugs-submit" Resent-CC: bug-libtool@gnu.org Resent-Date: Fri, 21 Feb 2014 16:40:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16833 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 16833@debbugs.gnu.org X-Debbugs-Original-To: bug-libtool@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13930007881399 (code B ref -1); Fri, 21 Feb 2014 16:40:05 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2014 16:39:48 +0000 Received: from localhost ([127.0.0.1]:34928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGt8d-0000MV-Vy for submit@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 ) id 1WGoe3-0008He-Lm for submit@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 ) id 1WGodp-0008Nj-Qz for submit@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 ) id 1WGodp-0008Nd-Nq for submit@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 ) id 1WGodh-0000Jb-A6 for bug-libtool@gnu.org; Fri, 21 Feb 2014 06:51:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGodY-0008L7-8O for bug-libtool@gnu.org; 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 ) id 1WGodY-0008Kp-2H for bug-libtool@gnu.org; Fri, 21 Feb 2014 06:51:24 -0500 Received: by mail-wi0-f170.google.com with SMTP id hi5so771193wib.1 for ; 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 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Feb 2014 03:51:22 -0800 (PST) Message-ID: <53073DB8.7000806@nag.co.uk> Date: Fri, 21 Feb 2014 11:51:20 +0000 From: Mat Cross User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 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-Mailman-Approved-At: Fri, 21 Feb 2014 11:39:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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