[cfe-dev] Building Clang+LLVM using Clang

Murat B murat8307 at yahoo.com
Tue May 29 01:55:10 PDT 2012


Hello,

I built the Clang using gcc and want to build Clang+LLVM using the already built Clang.

My compilation terminates by outputting following error messages:

/home/murat/llvm/lib/Support/IsInf.cpp:41:3: error: "Don't know how to get isinf()"
# error "Don't know how to get isinf()"
  ^
/home/murat/llvm/lib/Support/IsInf.cpp:46:30: error: use of undeclared identifier 'isinf'
int IsInf(float f)  { return isinf(f); }
                             ^
/home/murat/llvm/lib/Support/IsInf.cpp:47:30: error: use of undeclared identifier 'isinf'
int IsInf(double d) { return isinf(d); }
                             ^
3 errors generated.
make[1]: *** [/home/murat/llvm/build/lib/Support/Release/IsInf.o] Error 1
make[1]: Leaving directory `/home/murat/llvm/build/lib/Support'
make: *** [all] Error 1

It seems the compilation cannot find the standard header files.

I compile using following flags:
-I/home/murat/llvm/build/include
-I/home/murat/llvm/build/lib/Support
-I/home/murat/llvm/include
-I/home/murat/llvm/lib/Support
-DNDEBUG
-D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-O0
-fomit-frame-pointer
-fno-exceptions
-fPIC
-Woverloaded-virtual
-Wcast-qual
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default 

Can anybody let me know which flags I need to compile Clang+LLVM using Clang and what I do wrong?

Thanks a lot for your help!
Murat





More information about the cfe-dev mailing list