[cfe-dev] Building Clang+LLVM using Clang
David Chisnall
csdavec at swan.ac.uk
Tue May 29 02:45:08 PDT 2012
Your problem is a missing definition from a system header. Without knowing what your target OS is, no one will be able to help you...
David
On 29 May 2012, at 09:55, Murat B wrote:
> 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
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list