[cfe-dev] Fw: Building Clang+LLVM using Clang
Murat B
murat8307 at yahoo.com
Tue May 29 05:27:51 PDT 2012
Thanks David and Nikola for your replies.
I configure using following commands.
export CC=clang
export CXX=clang++
../configure --disable-assertions --enable-optimized --disable-shared --enable-targets=x86_64
I am trying to build it on a x86-64 architecture.
Do I need to provide more information to the Clang compiler?
Thanks a lot!
Murat
----- Forwarded Message -----
From: David Chisnall <csdavec at swan.ac.uk>
To: Murat B <murat8307 at yahoo.com>
Cc: "cfe-dev at cs.uiuc.edu" <cfe-dev at cs.uiuc.edu>
Sent: Tuesday, May 29, 2012 10:45 AM
Subject: Re: [cfe-dev] Building Clang+LLVM using Clang
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