[LLVMdev] 2.1 Pre-Release Available (testers needed)

Tanya Lattner tonic at nondot.org
Tue Sep 18 22:14:29 PDT 2007


On Sep 18, 2007, at 9:28 PM, Erick Tryzelaar wrote:

> Tanya Lattner wrote:
>> LLVMers,
>>
>> The 2.1 pre-release (version 1) is available for testing:
>> http://llvm.org/prereleases/2.1/version1/
>
> A couple months ago, I had a problem packaging llvm-gcc for macports
> because one of the binaries from llvm-gcc was somehow getting used by
> Apple's gcc driver instead of the native one. This was causing some
> subtle bugs for people. Anyway, someone, I don't remember who,  
> helped me
> out with this patch:
>
> --- ../llvm-gcc4-2.0.source/gcc/Makefile.in.old 2007-08-08
> 21:09:17.000000000 -0700
> +++ ../llvm-gcc4-2.0.source/gcc/Makefile.in     2007-08-08
> 21:09:39.000000000 -0700
> @@ -3658,7 +3658,7 @@
>         -$(INSTALL_PROGRAM) xgcc$(exeext)
> $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
>         -rm -f $(DESTDIR)$(bindir)/$(GCC_TARGET_INSTALL_NAME)-$ 
> (version)
>         -( cd $(DESTDIR)$(bindir) && \
> -          $(LN) $(GCC_INSTALL_NAME)$(exeext)
> $(target_noncanonical)-gcc-$(version) )
> +          $(LN) $(GCC_INSTALL_NAME)$(exeext)
> $(GCC_TARGET_INSTALL_NAME)-$(version) )
>         -if [ -f gcc-cross$(exeext) ] ; then \
>           if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
>             rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
>
> This just lets you put the configure-specified prefix llvm- in  
> front of
> the binary, and subquently doesn't cause problem's with apple's gcc. I
> just checked out the latest llvm-gcc binaries, but it doesn't yet have
> this patch in place. Is it too late to get this into the release? If
> not, it won't take too much effort to just migrate the 2.0 patch to  
> 2.1.
>

You can set the program-prefix to be "llvm-". We actually recommend  
this and its in the README.llvm. We do not require it though.

-Tanya

> If it helps, it looks like Reid added this code in revision 40137.
>
> Thanks,
>
> -e
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list