The PGI C and C++ 17.10 community edition compiler does not work with Ubuntu 17.10 (at least not for code that uses OpenMP or OpenACC which is the whole point of PGI).
According to the PGI 17.10 release notes, under "Supported Platforms", note that Ubuntu 16.10 is the newest Ubuntu we support, and gcc 6.3 is the newest gcc.
We will probably get 7.2 working with 18.1, and so the Community Edition will support it in 18.4.
So wait for 2 to 6 months, or install a Linux version we support.
I don't want to wait if I don't have to. How can I get PGI 17.10 (community edition) working with Ubuntu 17.10?
My guess is I could use something like
chroot or Docker for this but I have never used either.
When I compile I get the error
/usr/include/x86_64-linux-gnu/bits/floatn.h", line 62: error: invalid argument to attribute "mode" typedef _Complex float cfloat128 __attribute ((mode (TC)));
So the problem I think is not just library files but also includes.