[LLVMdev] clang++ include problems
vania.joloboff at inria.fr
Tue May 28 00:08:08 PDT 2013
It looks like Ubuntu 13.04 has changed the include files directories
Now we get the following error in many of our programs
that compile fine on Ubuntu 12.04
> clang++ -c -x c++ -emit-llvm
> ../../libsimsoc/processors/ppc/ppc_llvm_lib.cpp -DNDEBUG
> -I/home/vania/systemc-2.3.0/include -I/home/vania/tlm2.0/include/tlm
> -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/llvm/3.2/include -DNDEBUG
> -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS -I../.. -I..
> -DBINDIR="\"/usr/local/bin\"" -I ../libsimsoc -DNDEBUG -O3 -o
> In file included from ../../libsimsoc/processors/ppc/ppc_llvm_lib.cpp:7:
> In file included from ../../libsimsoc/bitwise_operator.hpp:11:
> In file included from
> fatal error:
> 'bits/c++config.h' file not found
> #include <bits/c++config.h>
> 1 error generated.
It happens systematically when including a header file from STL (in this
that includes <bits/c++config.h>
It may be a problem more related to Ubuntu 13, but it seems a general
change in Linux architecture dependent includes.
They have migrated architecture dependent files from
In my case ARCHITECTURE=x86_64-linux-gnu
Is this something we have to definitely deal with in our configure script
or we can expect a clang++ change ?
More information about the llvm-dev