I went ahead and filed ticket 599 to address the issue of making the build more 
reliable in these situations (llvm-gcc and llvm-g++ being found by the LLVM 
build).

On Feb 02, 2010, at 21:55, Jordan Breeding wrote:

> Alright, so since llvm-gcc is now in /bin (in some new tools that might have 
> been released in late Jan), MacRuby advice is "try not to build with 
> llvm-gcc", and the default llvm build searches all of PATH for llvm-gcc, etc. 
> I fixed it using a lot of extra configuration upfront.
> 
> Instead of:
> 
> ./configure --enable-bindings=none
> UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make
> sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make 
> install
> 
> I did:
> 
> env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ 
> ./configure --enable-bindings=none --enable-optimzed --with-llvmgccdir=/tmp
> env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ 
> make -j2
> sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc 
> CXX=/usr/bin/g++ make install
> 
> It ended up working, maybe for now if the build depends on not building LLVM 
> with llvm-gcc something like the above might a good idea to change too.
> 
> On Feb 02, 2010, at 19:25, Laurent Sansonetti wrote:
> 
>> You're building LLVM with llvm-gcc. I don't know if this will work.
>> 
>> Laurent
>> 
>> On Feb 2, 2010, at 4:46 PM, Jordan Breeding wrote:
>> 
>>> LLVM version:
>>> 
>>> Path: .
>>> URL: https://llvm.org/svn/llvm-project/llvm/trunk
>>> Repository Root: https://llvm.org/svn/llvm-project
>>> Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
>>> Revision: 89156
>>> Node Kind: directory
>>> Schedule: normal
>>> Last Changed Author: dpatel
>>> Last Changed Rev: 89156
>>> Last Changed Date: 2009-11-17 16:39:08 -0600 (Tue, 17 Nov 2009)
>>> 
>>> I have tried building with a regular svn checkout, an archive created from 
>>> git (through git-svn and `git svn find-rev`), and an archive created from 
>>> the git repo on repo.or.cz (with the hash that matches the svn revision). 
>>> Each time I get this error:
>>> 
>>> llvm[2]: Compiling BlockProfiling.c for Release build (bytecode)
>>> /usr/bin/llvm-gcc -I/private/tmp/llvm-trunk/include 
>>> -I/private/tmp/llvm-trunk/runtime/libprofile -I/tmp/llvm-trunk/include 
>>> -I/tmp/llvm-trunk/runtime/libprofile  -D_DEBUG -D_GNU_SOURCE 
>>> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2  -fno-common   
>>> -mmacosx-version-min=10.6 -pedantic -Wno-long-long -Wall -W 
>>> -Wno-unused-parameter -Wwrite-strings  -arch i386 -arch x86_64 
>>> BlockProfiling.c -o 
>>> /private/tmp/llvm-trunk/runtime/libprofile/Release/BlockProfiling.ll -S 
>>> -emit-llvm
>>> llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with 
>>> multiple -arch flags
>>> make[2]: *** 
>>> [/private/tmp/llvm-trunk/runtime/libprofile/Release/BasicBlockTracing.ll] 
>>> Error 1
>>> make[2]: *** Waiting for unfinished jobs....
>>> llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with 
>>> multiple -arch flags
>>> make[2]: *** 
>>> [/private/tmp/llvm-trunk/runtime/libprofile/Release/BlockProfiling.ll] 
>>> Error 1
>>> make[1]: *** [libprofile/.makeall] Error 2
>>> make: *** [all] Error 1
>>> 
>>> I know what the error is in general, but short of just building for x86_64, 
>>> has anyone figured out a way to get the new LLVM revision building? Are the 
>>> instructions in the README for MacRuby working for other people still?
>>> 
>>> Thanks,
>>> Jordan
>>> 
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel@lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to