[Llvm-bgq-discuss] -std=c++11

Hal Finkel hfinkel at anl.gov
Fri Dec 21 15:27:33 CST 2012


I think that the gcc libstdc++ 4.4.6 headers are too old for C++11 support to really work well. I am planning to investigate providing an alternative, based either on libstdc++ 4.6.x or based on LLVM's libc++ project.

 -Hal

----- Original Message -----
> From: "Michael Blocksome" <blocksom at us.ibm.com>
> To: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Friday, December 21, 2012 2:12:12 PM
> Subject: [Llvm-bgq-discuss] -std=c++11
> 
> 
> Has anyone had any luck compiling with '-std=c++11' ?
> 
> I get the following error with a simple testcase. This particular
> error goes away if I remove the '-std=c++11' option.
> 
> .../test> cat vector_test.cc
> 
> #include <vector>
> 
> int main ()
> {
> std::vector<unsigned> foo;
> 
> return 0;
> };
> 
> .../test> /bghome/blocksom/development/llvm/bgclang -v -std=c++11
> vector_test.cc -o vector_test.cnk
> clang version 3.3 (trunk 170436)
> Target: powerpc64-bgq-linux
> Thread model: posix
> "/bghome/blocksom/development/llvm/install/bin/clang" -cc1 -triple
> powerpc64-bgq-linux -S -disable-free -main-file-name vector_test.cc
> -static-define -mrelocation-model static -mdisable-fp-elim
> -fmath-errno -ffp-contract=fast -mconstructor-aliases -target-cpu
> a2q -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -v
> -resource-dir
> /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3
> -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6
> -internal-isystem
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux
> -internal-isystem
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/backward
> -internal-isystem /usr/local/include -internal-isystem
> /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include
> -internal-externc-isystem /include -internal-externc-isystem
> /usr/include -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm
> -fdebug-compilation-dir
> /bghome/blocksom/development/boost-pami/next/test -ferror-limit 19
> -fmessage-length 231 -mstackrealign -fno-signed-char
> -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
> -fdiagnostics-show-option -fcolor-diagnostics -isystem
> /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/sys-include
> -mllvm -enable-misched -mllvm -enable-aa-sched-mi -o
> /tmp/vector_test-mdmziM.s -x c++ vector_test.cc
> clang -cc1 version 3.3 based upon LLVM 3.3svn default target
> powerpc64-unknown-linux-gnu
> ignoring nonexistent directory "/include"
> #include "..." search starts here:
> #include <...> search starts here:
> /bgsys/drivers/ppcfloor/gnu-linux/powerpc64-bgq-linux/sys-include
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/backward
> /usr/local/include
> /bghome/blocksom/development/llvm/install/bin/../lib/clang/3.3/include
> /usr/include
> End of search list.
> In file included from vector_test.cc:4:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/vector:61:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/bits/allocator.h:48:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux/bits/c++allocator.h:34:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/ext/new_allocator.h:33:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/new:40:
> In file included from
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/exception:148:
> /bgsys/drivers/ppcfloor/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/include/c++/4.4.6/exception_ptr.h:143:13:
> error: unknown type name 'type_info'
> const type_info*
> ^
> 1 error generated.
> 
> 
> ====
> 
> Thanks,
> 
> Michael Blocksome
> Blue Gene Messaging
> blocksom at us.ibm.com
> 
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> 

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list