[LLVMdev] Difficulty compiling LLVM-based tools with clang

Charles Davis cdavis at mymail.mines.edu
Thu May 12 18:15:15 PDT 2011


On 5/12/11 7:08 PM, Rafael Ávila de Espíndola wrote:
> The problem comes from  SearchForAddressOfSpecialSymbol.cpp:
> 
>      // FIXME: Currently disabled when using Clang, as we don't always 
> have our
>      // runtime support libraries available.
> #ifndef __clang__
> #ifdef __i386__
>      EXPLICIT_SYMBOL(__eprintf);
> #endif
> #endif
> 
> Now, exactly what runtime library is not available is something that 
> someone more familiar with OS X will have to answer :-)
The runtime support library the comment talks about is none other than
compiler-rt. (Specifically, libclang_rt.eprintf.a.) If you check out
compiler-rt into <llvm-src>/projects/compiler-rt, clang will pick it up
and build it automatically.

Chip





More information about the llvm-dev mailing list