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

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?

Thanks

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

Thanks.

After update gcc to 4.2.4. It’s OK

2009/10/21, Chris Lattner <clattner@apple.com>: