gcc is a front end for cc1 (cc1 is the actual C compiler). During compilation, gcc will call cc1 as needed. On my Linux box (SUSE 10), cc1 wasn't in the path. I had to go dig it up. On my box I found it under /usr/lib/gcc/some distro-specific stuff/cc1. You can probably use /usr/lib as a starting point and then do a recursive find for the file name.

I suggest you track down the cc1 that is being called, and when you are in that directory, type './cc1 --version'. My guess is that you may have upgraded gcc and somehow missed upgrading cc1, though how that might happen isn't clear to me. It may be that for some reason, gcc is looking in the old directory instead of the one with the new cc1.

I strongly recommend that you *not* edit out those lines in your Makefile, because they refer to security features that will help you avoid buffer overflow exploits. Without them, C programs will compile without these safeguards. This is a Bad Thing (tm).


In reply to Re: Should I get another gcc? by spiritway
in thread Should I get another gcc? by betacentauri

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.