Hi Mat,
I’m back trying to use --c++11, and I found problems with makelocalrc and your instructions
I’m trying w/ gcc 4.9.2 and pgi 15.1 and a trivial test-array.cpp
1- in makelocalrc the line
if test ! -d "$outputdir "; then
echo “ERROR: output directory $outputdir not found”
there is an extra space in the ‘if test …’ before the closing ", so the test will always fails
2- the line
echo $GLIBC_VERSION > $base/glibc_version
require root privileges, but I’d like to do mods on a per user basis only
3- I had to comment out
rm -rf $base/lib/libnuma.*
ln -s $usrlib/libnuma.so.1 $base/lib/libnuma.so
to run as non-root
4- Now I can run it and
set GPPDIR32= and set GCCINC32= in the output file has err messages:
set GPPDIR32= … /usr/include In file included from /usr/include/features.h:385:0, from /usr/include/stdio.h:28, /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory # include <gnu/stubs-32.h>;
set GCCINC32= … /usr/include In file included from /usr/include/features.h:385:0, from /usr/include/stdio.h:28, /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory # include <gnu/stubs-32.h>;
So I was able to run a hacked makelocalrc
set gcc = gcc/4.9.2
set GCC = /share/apps/tools/$gcc/bin
set PGI = /share/apps/pgi
set pgi = 15.1
module load $gcc
./makelocalrc $PGI/linux86-64/$pgi
-x -o -d $cwd
-gpp $GCC/g++
-gcc $GCC/gcc > ~/.mypgcpprc
module unload gcc
unset gcc pgi
and now trying to compile a trivial test-array.cpp, I get:
module load pgi
make
/share/apps/pgi/linux86-64/15.1/bin/pgcpp --c++11 --gnu --gnu_extensions test-array.cpp -o test-array
"/share/apps/tools/gcc/4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/alloc_traits.h", line 248: error:
expected a ">"
= typename __construct_helper<_Tp, _Args...>::type;
^
detected during instantiation of type
"std::allocator_traits<_Alloc>::__has_construct<_Tp,
_Args...>" at line 251
....
I can send you the ~/.mypgcpprc I got, the hacked makelocalrc, test-array.cpp
and the full output of make. I can build and run test-array.cpp w/ gcc 4.9.2
Sylvain.