[LLVMdev] Just got bitten by accidentally using the wrong gcc

Shantonu Sen ssen at apple.com
Thu Mar 20 15:27:50 PDT 2008


llvm's ./configure already does that for gcc < 3.

What are valid versions? Exactly 4.0 and 4.2? 4.0 and >=4.2?

dnl Verify that GCC is version 3.0 or higher
if test "$GCC" = "yes"
then
   AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
#error Unsupported GCC version
#endif
]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower  
version])])
fi


Shantonu Sen
ssen at apple.com

Sent from my Mac Pro

On Mar 20, 2008, at 3:14 PM, Eric Christopher wrote:

>
> On Mar 20, 2008, at 3:00 PM, Joachim Durchholz wrote:
>> Hi all,
>>
>> I just forgot to ./configure with CC=gcc-4.2 CXX=g++-4.2, getting the
>> (broken-for-LLVM) gcc-4.1 as a compiler.
>> The error message that I got was this:
>> make[1]: Entering directory `/home/jo/llvm-wrk/lib/VMCore'
>> make[1]: *** No rule to make target
>>   `/home/jo/llvm-wrk/Release/bin/tblgen', needed by
>>   `/home/jo/llvm-wrk/lib/VMCore/Release/Intrinsics.gen.tmp'.  Stop.
>> make[1]: Leaving directory `/home/jo/llvm-wrk/lib/VMCore'
>> make: *** [install] Error 1
>>
>> It took me a while to figure out what went wrong.
>>
>> I guess I'm not the only one to stumble upon this problem.
>>
>> Would it be a good idea to make ./configure check whether there's an
>> incompatible tool configured, and carp if it finds one?
>
> Probably be a good idea. It's reasonably easy to check major/minor
> versions.
>
> -eric
> _______________________________________________
> 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