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

Erick Tryzelaar erickt at dslextreme.com
Tue Sep 18 21:28:20 PDT 2007


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.

If it helps, it looks like Reid added this code in revision 40137.

Thanks,

-e



More information about the llvm-dev mailing list