openacc-users-group icon indicating copy to clipboard operation
openacc-users-group copied to clipboard

Contributed_Sample_Codes/Tutorial1/pi: c++ compile error

Open tonycurtis opened this issue 5 years ago • 0 comments

With community PGI on Fedora 30 x86_64

$ make c++
pgc++ -o pic.exe pic.cpp -fast -Minfo=opt
"/usr/include/c++/9/bits/stl_function.h", line 437: error: identifier
          "__builtin_is_constant_evaluated" is undefined
  	if (__builtin_is_constant_evaluated())
  	    ^

1 error detected in the compilation of "pic.cpp".
make: *** [Makefile:14: pic.exe] Error 2

$ pgc++ -V

pgc++ 19.4-0 LLVM 64-bit target on x86-64 Linux -tp skylake
PGI Compilers and Tools
Copyright (c) 2019, NVIDIA CORPORATION.  All rights reserved.

tonycurtis avatar May 03 '19 23:05 tonycurtis