This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: which compiler will it use?
jerry zhai wrote:
> I was installing gcc on my linux, I found there is a
> "xgcc" and "cc1" in the source tree, and meanwhile I got a system gcc
> in directory /usr/bin. The make build stage completed successfully,
> but when I type "make install", it produced error like
> "cc1: unrecognized option `-Wold-style-definition'"
>
> I checked and found that it was because cc1 called by make
> program was my system gcc, version 3.2 , which didn't support those
> flags. I wonder which should called for installation process , the
> accompany xgcc or the system gcc? And how? Just modify the PATH
> variable ?
This usually happens because something has changed between the time
ypu ran configure and the time you ran install. Perhaps, for example,
the PATH has changed.
Andrew.