[LLVMdev] Difficulty compiling LLVM-based tools with clang

Talin viridia at gmail.com
Fri May 13 13:34:49 PDT 2011


On Thu, May 12, 2011 at 6:15 PM, Charles Davis <cdavis at mymail.mines.edu>wrote:

> 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.
>

Well, I was hoping to have my build script automatically use clang if it was
available, but it sounds like that is going to break people who check out my
code unless they have the compiler-rt stuff - and I suspect that not very
many people will have that.


>
> Chip
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110513/2754341c/attachment.html>


More information about the llvm-dev mailing list