GNU bug report logs -
#27509
PGI compiler detection in libtool.m4
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi,
PGI compiler since 2017 has changed their default version output.
Before 2017:
$ pgcc -V
pgcc 16.9-0 64-bit target on x86-64 Linux -tp sandybridge
The Portland Group - PGI Compilers and Tools
Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
After 2017:
$ pgcc -V
pgcc 17.5-0 64-bit target on x86-64 Linux -tp sandybridge
PGI Compilers and Tools
Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
This caused configure script unable to detect compiler correctly, when it is in a wrapper such as mpicc.
Patch:
--- m4/libtool.m4.orig 2017-06-27 13:40:45.538501739 -0400
+++ m4/libtool.m4 2017-06-27 13:41:03.109205222 -0400
@@ -4759,7 +4759,7 @@
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;;
- *Portland\ Group*)
+ *Portland\ Group* | *PGI\ Compilers*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Best,
Min Dong
[Message part 2 (text/html, inline)]
This bug report was last modified 8 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.