I have PGI 19.1 Community Edition compilers installed on a Linux/ppc64le system.
It was working great with Ubuntu 18.04, but after upgrading to Ubuntu 20.04, every compilation fails as shown below. Reinstalling the compilers using a freshly downloaded tarball did not resolve the problem.
I suspect the answer will come down to “Ubuntu 20.04 is not supported”, possibly with “on Linux/ppc64le”. If that is the case, then I’d very much like to know when one can expect such support in a free edition. For the time being, I probably need to tell users of our software to build using GNU or LLVM compilers, instead of PGI, if using the latest Ubuntu LTS release.
The example below is a classic hello-world which should not need libpgmath.
So, I am also curious: is there is a work-around to omit link of libpgmath?
phargrov@openpower-6:~$ pgcc -V
pgcc 19.10-0 linuxpower target on Linuxpower
PGI Compilers and Tools
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
phargrov@openpower-6:~$ cat hello.c
#include "stdio.h"
int main(void) {
puts("Hello, World!");
return 0;
}
phargrov@openpower-6:~$ pgcc hello.c
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__asinf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__sinh_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__atanhf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__exp_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__pow_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__cosh_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__acosh_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__sinhf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__log10f_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__asin_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__atanh_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__acosf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__log10_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__remainder_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__coshf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__expf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__atan2f_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__remainderf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__logf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__acos_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__log_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__acoshf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__powf_finite'
/usr/bin/ld: /opt/pgi/linuxpower/19.10/lib/libpgmath.so: undefined reference to `__atan2_finite'