[cfe-dev] Can't recompile clang using clang, fatal error: 'cmath' file not found

Marcin Mirosław marcin at mejor.pl
Thu Dec 16 04:24:34 PST 2010


Hello!
I hope i choosed proper mailing list.
I'm using gentoo, i've got installed llvm and clang. Now i'd like to
recompile clang with CC=clang. I get error:"
In file included from APFloat.cpp:15:
In file included from
/var/tmp/portage/sys-devel/clang-9999/work/llvm/include/llvm/ADT/APFloat.h:104:
In file included from
/var/tmp/portage/sys-devel/clang-9999/work/llvm/include/llvm/ADT/APInt.h:18:
In file included from
/var/tmp/portage/sys-devel/clang-9999/work/llvm/include/llvm/Support/MathExtras.h:17:
In file included from
/var/tmp/portage/sys-devel/clang-9999/work/llvm/include/llvm/Support/SwapByteOrder.h:18:
/var/tmp/portage/sys-devel/clang-9999/work/llvm/include/llvm/Support/DataTypes.h:35:10:
fatal error: 'cmath' file not found
#include <cmath>
         ^
1 error generated.
                     "

Honestly, i don't know how to solve this problem. I tried with clang
compiled with and without USE flag "system-cxx-headers" still the same
error. Clang is in "live" version, taken from repo.

Thanks,
regards.

-- 
www: http://blog.mejor.pl/



More information about the cfe-dev mailing list