GNU bug report logs - #25368
Libtool patch concerning using the NAG fortran compiler as linker

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: Juergen Reuter <juergen.reuter@HIDDEN>; dated Thu, 5 Jan 2017 18:43:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 5 Jan 2017 18:42:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 05 13:42:11 2017
Received: from localhost ([127.0.0.1]:44036 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cPCzK-0005Ar-RM
	for submit <at> debbugs.gnu.org; Thu, 05 Jan 2017 13:42:11 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59306)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juergen.reuter@HIDDEN>) id 1cPCzI-0005Ae-Mm
 for submit <at> debbugs.gnu.org; Thu, 05 Jan 2017 13:42:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juergen.reuter@HIDDEN>) id 1cPCzC-0000ep-DB
 for submit <at> debbugs.gnu.org; Thu, 05 Jan 2017 13:42:03 -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,UNPARSEABLE_RELAY
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54226)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juergen.reuter@HIDDEN>)
 id 1cPCzC-0000ek-Av
 for submit <at> debbugs.gnu.org; Thu, 05 Jan 2017 13:42:02 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:50272)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <juergen.reuter@HIDDEN>) id 1cPCzA-0005LY-Sw
 for bug-libtool@HIDDEN; Thu, 05 Jan 2017 13:42:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juergen.reuter@HIDDEN>) id 1cPCz5-0000aM-WC
 for bug-libtool@HIDDEN; Thu, 05 Jan 2017 13:42:00 -0500
Received: from smtp-o-3.desy.de ([131.169.56.156]:55090)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juergen.reuter@HIDDEN>)
 id 1cPCz5-0000Yr-J3
 for bug-libtool@HIDDEN; Thu, 05 Jan 2017 13:41:55 -0500
X-Clacks-Overhead: GNU Terry Pratchett
Received: from smtp-map-3.desy.de (smtp-map-3.desy.de [131.169.56.68])
 by smtp-o-3.desy.de (DESY-O-3) with ESMTP id ACA29280AB7
 for <bug-libtool@HIDDEN>; Thu,  5 Jan 2017 19:41:51 +0100 (CET)
Received: from ZITSWEEP1.win.desy.de (zitsweep1.win.desy.de [131.169.97.95])
 by smtp-map-3.desy.de (DESY_MAP_3) with ESMTP id A121715C7
 for <bug-libtool@HIDDEN>; Thu,  5 Jan 2017 19:41:50 +0100 (MET)
Received: from smtp-intra-1.desy.de (lb-40-26.desy.de) by ZITSWEEP1.win.desy.de
 (Clearswift SMTPRS 5.5.0) with ESMTP id
 <Tc67c8f9be283a9615f1f4@HIDDEN>; 
 Thu, 5 Jan 2017 19:41:50 +0100
Received: from t00pcx19888.desy.de (t00pcx19888.desy.de [131.169.210.218])
 by smtp-intra-1.desy.de (DESY-INTRA-1) with ESMTP id ABA743E901;
 Thu,  5 Jan 2017 19:41:50 +0100 (MET)
To: bug-libtool@HIDDEN, peter@HIDDEN
From: Juergen Reuter <juergen.reuter@HIDDEN>
Subject: Libtool patch concerning using the NAG fortran compiler as linker
Message-ID: <3be89235-f2fe-8ada-89c7-3823a5bd9078@HIDDEN>
Date: Thu, 5 Jan 2017 19:41:50 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------80BCA9BADA59EB7D23E469CA"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: "whizard@HIDDEN" <whizard@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -5.0 (-----)

This is a multi-part message in MIME format.
--------------80BCA9BADA59EB7D23E469CA
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Dear libtool developers,
here is a patch for the current libtool git repo when using the NAG 
Fortran compiler
(nagfor) to link exectuables or libraries. nagfor doesn't accept 
arguments passed twice,
but a setup in the ltmain.in does exactly this when using -openmp as a 
flag. To avoid
hiccups, I added the following patch  (below).
I would be grateful if you could push this to the libtool git repo!
Thanks a lot in advance!
Cheers,
     JRR

Patch:
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 4cd3818..d65ea72 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5176,12 +5176,24 @@ func_mode_link ()

-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
-       func_append compiler_flags " $arg"
+        case $CC in
+           nagfor*) ;;
+           *)
+               func_append compiler_flags " $arg"
+               ;;
+       esac
         func_append compile_command " $arg"
         func_append finalize_command " $arg"
         case "$new_inherited_linker_flags " in
             *" $arg "*) ;;
-           * ) func_append new_inherited_linker_flags " $arg" ;;
+           *)
+               case $CC in
+                   nagfor*) ;;
+                   *)
+                       func_append new_inherited_linker_flags " $arg"
+                   ;;
+               esac
+               ;;
         esac
         continue
         ;;


-- 
-------------------------------------
Juergen Reuter
*****
DESY Theory Group
Notkestrasse 85
D-22603 Hamburg
Phone: +49 (0)40 8998-3895
Fax  : +49 (0)40 8998-2777

*****
Skype: jr_reuter
-------------------------------------


--------------80BCA9BADA59EB7D23E469CA
Content-Type: text/plain; charset=UTF-8;
 name="patch_nagfor"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="patch_nagfor"

ZGlmZiAtLWdpdCBhL2J1aWxkLWF1eC9sdG1haW4uaW4gYi9idWlsZC1hdXgvbHRtYWluLmlu
CmluZGV4IDRjZDM4MTguLmQ2NWVhNzIgMTAwNjQ0Ci0tLSBhL2J1aWxkLWF1eC9sdG1haW4u
aW4KKysrIGIvYnVpbGQtYXV4L2x0bWFpbi5pbgpAQCAtNTE3NiwxMiArNTE3NiwyNCBAQCBm
dW5jX21vZGVfbGluayAoKQogCiAgICAgICAtbXR8LW10aHJlYWRzfC1rdGhyZWFkfC1LdGhy
ZWFkfC1wdGhyZWFkfC1wdGhyZWFkc3wtLXRocmVhZC1zYWZlIFwKICAgICAgIHwtdGhyZWFk
c3wtZm9wZW5tcHwtb3Blbm1wfC1tcHwteG9wZW5tcHwtb21wfC1xc21wPSopCi0JZnVuY19h
cHBlbmQgY29tcGlsZXJfZmxhZ3MgIiAkYXJnIgorICAgICAgICBjYXNlICRDQyBpbgorCSAg
ICBuYWdmb3IqKSA7OworCSAgICAqKQorCQlmdW5jX2FwcGVuZCBjb21waWxlcl9mbGFncyAi
ICRhcmciCisJCTs7CisJZXNhYwogCWZ1bmNfYXBwZW5kIGNvbXBpbGVfY29tbWFuZCAiICRh
cmciCiAJZnVuY19hcHBlbmQgZmluYWxpemVfY29tbWFuZCAiICRhcmciCiAJY2FzZSAiJG5l
d19pbmhlcml0ZWRfbGlua2VyX2ZsYWdzICIgaW4KIAkgICAgKiIgJGFyZyAiKikgOzsKLQkg
ICAgKiApIGZ1bmNfYXBwZW5kIG5ld19pbmhlcml0ZWRfbGlua2VyX2ZsYWdzICIgJGFyZyIg
OzsKKwkgICAgKikgCisJCWNhc2UgJENDIGluIAorCQkgICAgbmFnZm9yKikgOzsKKwkJICAg
ICopCisJCQlmdW5jX2FwcGVuZCBuZXdfaW5oZXJpdGVkX2xpbmtlcl9mbGFncyAiICRhcmci
CisJCSAgICA7OworCQllc2FjCisJCTs7CiAJZXNhYwogCWNvbnRpbnVlCiAJOzsK
--------------80BCA9BADA59EB7D23E469CA--




Acknowledgement sent to Juergen Reuter <juergen.reuter@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#25368; 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: Mon, 25 Nov 2019 12:00:02 UTC

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