Hello,
I am using PGI 9.0-4 for Fortran and I am trying to complile the GPU samples in /etc/samples. However, I get the following list of errors.
My configuration is:
Fedora 10 X86_64
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
PGI 9.0-4
NVIDIA CUDA 2.2
ENVIRONMENT VARIABLES:
PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/apophys/bin:/usr/local/cuda/bin:/opt/pgi/linux86-64/9.0-4/bin
PGI=/opt/pgi
ERRORS:
NOTE: your trial license will expire in 14 days, 9.95 hours.
NOTE: your trial license will expire in 14 days, 9.95 hours.
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/x86_64-redhat-linux/bits/c++config.h(1642): error: expected a “{”/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(74): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(81): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: too many arguments for class template “::__is_normal_iterator”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: too many arguments for class template “::__is_normal_iterator”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cpp_type_traits.h(299): error: too many arguments for class template “::__is_normal_iterator”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(43): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: namespace “std” has no member “__is_integer”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: type name is not allowed
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: too few arguments for class template “::__enable_if”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: explicit type is missing (“int” assumed)
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: explicit type is missing (“int” assumed)
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: template parameter “_Tp” may not be redeclared in this scope
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(70): error: expected a “;”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(73): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: namespace “std” has no member “__is_integer”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: type name is not allowed
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: too few arguments for class template “::__enable_if”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: explicit type is missing (“int” assumed)
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: explicit type is missing (“int” assumed)
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: template parameter “_Tp” may not be redeclared in this scope
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(113): error: expected a “;”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(116): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(164): error: namespace “std” has no member “__is_integer”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(164): error: type name is not allowed
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(164): error: the global scope has no “__value”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(169): error: a template argument list is not allowed in a declaration of a primary template
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(176): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(177): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(187): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(188): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(189): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(199): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(200): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(201): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/ext/type_traits.h(202): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(82): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(121): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(121): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(137): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(137): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(153): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(153): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(170): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(171): error: expected an identifier
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(171): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(170): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(171): error: expected an identifier
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(171): error: “typename” may not be specified here
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(171): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(191): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(191): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(207): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(207): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(223): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(223): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(239): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(239): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(255): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(255): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(271): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(271): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(297): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(297): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(313): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(313): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(329): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(329): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(345): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(345): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(385): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(386): error: expected an identifier
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(386): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(385): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(386): error: expected an identifier
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(386): error: “typename” may not be specified here
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(386): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(406): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(406): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(422): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(422): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(438): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(438): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(454): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(454): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(470): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(470): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(475): error: expected a “;”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(483): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(505): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(508): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(508): error: name followed by “::” must be a class or namespace name
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cmath(615): error: expected a “;”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/bits/cmath.tcc(40): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cstddef(53): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cstdlib(105): error: expected a “{”
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/…/…/…/…/include/c++/4.3.2/cstdlib(162): error: expected a “{”
Error limit reached.
100 errors detected in the compilation of “/tmp/pgnvdqQ4hWzw7PRrm.nv0”.
Compilation terminated.
PGF90-F-0000-Internal compiler error. pgnvd job exited with nonzero status code 0 (f1.f90: 53)
make: *** [f1.exe] Error 2
Seems like a configuration problem. Does anybody know a solution?
Thank you