[LLVMdev] Failure building llvm/clang from source using binary clang package on Mageia 2

Edward Diener eldlistmailingz at tropicsoft.com
Sun Jan 6 19:27:45 PST 2013


On 01/06/2013 07:20 PM, Dmitri Gribenko wrote:
> On Mon, Jan 7, 2013 at 12:23 AM, Edward Diener
> <eldlistmailingz at tropicsoft.com> wrote:
>> On Mageia 2 I have installed the binary clang package clang3.0-7. When I
>> tried to build the latest llvm/clang from source using this binary clang
>> I get this error:
>>
>> 1) 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>
>>          ^
>> llvm[1]: Compiling Statistic.cpp for Debug+Asserts build
>> 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
>>
>> If I build with gcc, there are no problems.
> 
> I think that we have a new entry for our 'unsupported compilers' list.
>  Please show the output of 'clang -v -fsyntax-only -x c++ /dev/null'.

clang version 3.0 (tags/RELEASE_30/final)
Target: x86_64-mageia-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-mageia-linux-gnu -fsyntax-only
-disable-free -disable-llvm-verifier -main-file-name null
-mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -v -resource-dir
/usr/bin/../lib/clang/3.0 -fmodule-cache-path /tmp/clang-module-cache -I
/opt/intel/composerxe-2011.5.220/mkl/include -I
/opt/intel/composerxe-2011.5.220/tbb/include -I
/opt/intel/composerxe-2011.5.220/mkl/include -I
/opt/intel/composerxe-2011.5.220/tbb/include -internal-isystem
/usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3
-internal-isystem
/usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-mageia-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-mageia-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include
-fdeprecated-macro -ferror-limit 19 -fmessage-length 139 -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -x c++ /dev/null
clang -cc1 version 3.0 based upon llvm 3.0 hosted on x86_64-mageia-linux-gnu
ignoring duplicate directory "/opt/intel/composerxe-2011.5.220/mkl/include"
ignoring duplicate directory "/opt/intel/composerxe-2011.5.220/tbb/include"
#include "..." search starts here:
#include <...> search starts here:
 /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.

> 
> It looks like Mageia 2 has C++ headers in a directory unknown to
> clang.  (So basically, clang from the repository is broken...)

The Gnu C library headers are at
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.6.3/include. This seems to say
that the include search path is wrong and that is why it does not find
cxxabi.h, which is in the Gnu C library header directory.




More information about the llvm-dev mailing list