Attempting to build llvm on Mageia2 from the 3.3 source I get: "#include "..." search starts here: #include <...> search starts here: /home/mgeldiener/dev/clang/build/include /home/mgeldiener/dev/clang/build/lib/Support /home/mgeldiener/vcs/llvm/include /home/mgeldiener/vcs/llvm/lib/Support /opt/intel/composerxe-2011.5.220/mkl/include /opt/intel/composerxe-2011.5.220/tbb/include /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3 /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-mageia-linux-gnu /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward /usr/local/include /usr/bin/../lib/clang/3.0/include /usr/include End of search list. In file included from /home/mgeldiener/vcs/llvm/lib/Support/Signals.cpp:30: /home/mgeldiener/vcs/llvm/lib/Support/Unix/Signals.inc:32:10: fatal error: 'cxxabi.h' file not found #include <cxxabi.h> ^ 1 error generated. gmake[1]: *** [/home/mgeldiener/dev/clang/build/lib/Support/Debug+Asserts/Signals.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory `/home/mgeldiener/dev/clang/build/lib/Support' gmake: *** [all] Error 1" The include path does not contain the path to the C standard library include files where cxxabi.h resides. On Mageia2 this is at /usr/lib/gcc/x86_64-mageia-linux-gnu/4.6.3/include/. Why ?
On 01/05/2013 09:01 AM, Edward Diener wrote:> Attempting to build llvm on Mageia2 from the 3.3 source I get: > > "#include "..." search starts here: > #include<...> search starts here: > /home/mgeldiener/dev/clang/build/include > /home/mgeldiener/dev/clang/build/lib/Support > /home/mgeldiener/vcs/llvm/include > /home/mgeldiener/vcs/llvm/lib/Support > /opt/intel/composerxe-2011.5.220/mkl/include > /opt/intel/composerxe-2011.5.220/tbb/include > /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3 > /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-mageia-linux-gnu > /usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward > /usr/local/include > /usr/bin/../lib/clang/3.0/include > /usr/include > End of search list. > In file included from /home/mgeldiener/vcs/llvm/lib/Support/Signals.cpp:30: > /home/mgeldiener/vcs/llvm/lib/Support/Unix/Signals.inc:32:10: fatal > error: 'cxxabi.h' file not found > #include<cxxabi.h> > ^ > 1 error generated. > gmake[1]: *** > [/home/mgeldiener/dev/clang/build/lib/Support/Debug+Asserts/Signals.o] > Error 1 > gmake[1]: *** Waiting for unfinished jobs.... > gmake[1]: Leaving directory `/home/mgeldiener/dev/clang/build/lib/Support' > gmake: *** [all] Error 1" > > The include path does not contain the path to the C standard library > include files where cxxabi.h resides. On Mageia2 this is at > /usr/lib/gcc/x86_64-mageia-linux-gnu/4.6.3/include/. Why ?This was solved by forcing the llvm/configure to use gcc rather than clang as its compiler.
Seemingly Similar Threads
- [LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2
- [LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2
- [LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2
- [LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2
- [LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2