Re: GCC3.4

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 04/30/04


Date: Fri, 30 Apr 2004 14:49:11 -0700
To: Jason Lixfeld <jason+lists.freebsd@lixfeld.ca>


On Fri, Apr 30, 2004 at 09:50:54AM -0400, Jason Lixfeld wrote:
> On Apr 30, 2004, at 3:09 AM, Kris Kennaway wrote:
>
> >On Fri, Apr 30, 2004 at 02:15:22AM -0400, Jason Lixfeld wrote:
> >>I've just installed gcc3.4 to, among other things take advantange of
> >>the -march=opteron options. I'm in quite a bit of a conundrum here
> >>because I've installed, changed the order in $PATH to look in
> >>/usr/local/bin before /usr/bin for gcc, cc etc but when I run a make
> >>buildworld it fails saying it doen't recognize the -march=opterion
> >>option. This means that the old system version of gcc is still being
> >>referenced somehow, even though I've set the paths:
> >
> >This is intentional (the system compiler is rebuilt as part of the
> >buildworld process, and thereafter used explicitly).
> >
> >You can't compile world with a compiler that is not the system
> >compiler, because it would fail with errors. If you must have a world
> >compiled with gcc 3.x, you'll have to use the FreeBSD 5.x branch,
> >which uses gcc 3.x as the system compiler.
>
> This is a 5.2.1 system but it uses 3.3.3, not 3.4. so I guess I'll
> have to wait then until 3.4 is the system compiler.

Or just use 3.3 to optimize for your CPU in the analogous way (see
make.conf and CPUTYPE).

Kris






Relevant Pages

  • Re: queries about sprintf
    ... in which case your program might fail immediately. ... Where is this documented in the C standard? ... the details of how any one compiler implements argument passing. ... compiler will use different argument passing mechanisms, ...
    (comp.std.c)
  • Re: a few doubts!
    ... as opposed to simply letting some sloppy code through. ... > The fact that the strcpy works is especially troubling. ... The reason that it does not fail here is not the age of the compiler, ...
    (comp.lang.c)
  • Re: Initialising Variables
    ... If your compiler doesn't warn you, ... or programme defensively by all means. ... think we have a dichotomy of understanding of the word "fail". ... ...or a sufficiently trivial program, ...
    (comp.lang.c)
  • Re: Benefits of Dynamic Typing
    ... The latter problem is detected in parts not specific to the compiler, ... and the only information about the reason is carried by the exception ... the entire Map call fails with the same exception. ... but it did expect that some application might fail. ...
    (comp.lang.functional)
  • Re: Problem with storing properties
    ... That's a safeguard that the Java compiler gives you, ... dangerousOperation(), and it points to an object so you can call the ... The solutions are to avoid the initialization to null (in which case the ... code above would fail with a compile-time error, ...
    (comp.lang.java.help)