[LLVMdev] Problem when build llvm-gcc using llvm-gcc4.2-2.5.source.tar.gz

Chris Lattner clattner at apple.com
Tue Oct 20 20:56:01 PDT 2009


On Oct 20, 2009, at 8:29 PM, Heyu Zhu wrote:

> Hi,
>
> The gcc version in my system is 3.4.6
> During make display error message and stop
>
> cc1plus:error: unrecognzied command line option -Wno-variadic-macros
>
> Must i update gcc to version 4.2.0 or above to resolve the problem?

That is a sign that your native GCC is not new enough, upgrading to  
4.2 or later should resolve the problem, but be aware of known-broken  
versions of GCC:
http://llvm.org/docs/GettingStarted.html#brokengcc

-Chris



More information about the llvm-dev mailing list