Re: Noob Guestion About Make.conf
- From: "Conrad J. Sabatier" <conrads@xxxxxxx>
- Date: Sat, 11 Aug 2007 01:09:01 GMT
On Wed, 08 Aug 2007 16:26:47 -0400, Timmy wrote:
On Tue, 07 Aug 2007 02:24:47 GMT
"Conrad J. Sabatier" <conrads@xxxxxxx> wrote:
On Mon, 06 Aug 2007 01:55:07 -0400, Timmy wrote:
Confused about something - If you add -O2 -pipe will that
automatically use -fomit-frame-pointer or do you need to add to
make.conf
On the amd64 platform (which I see you're using), my guess would be
that no, -O2 will *not* automatically also enable -fomit-frame-pointer,
as this *would* interfere with debugging on that platform ('info gcc'
for details).
That's what I was wondering.. Wasn't real sure if -O2 would enable
-fomit-frame-pointer by default.. So I turned in on in etc make.conf :-)
You may safely use the '-pipe' switch, though. Shouldn't cause any
problems at all, and does help to speed things up during the compile.
I've always used -O2 without any problems.
-O2 is, generally speaking, fine and dandy. Unfortunately, at the
present time, it does cause buildworld breakage under CURRENT with gcc
4.2. :-(
If debugging is not something that's important to you, go ahead and add
'-fomit-frame-pointer' as well. No harm done.
I rebuilt the world and a few programs from ports and haven't seen any
problems -fomit-frame-pointer.
As well you shouldn't. :-)
Something is also breaking my programs. Is the culprit -ffast-math or
funroll-loops?
More likely -ffast-math, I would think. Options such as these should
only be used in very special cases; they're most certainly not intended
for general-purpose use.
Since i've got some time on my hands I'm going to remove -ffast-math and
just leave funroll-loops and rebuild firefox since its already in
distfiles and see if it breaks something.
I assume that turned out OK for you?
I can build world with ffast-math & funroll-loops and it works
perfect, but something is screwing with my programs. (Not all
programs)
The programs will build & install but they don't work right. Firefox
for example, it build and install fine, it works but I can't change
the skins. What would you suggest I do about it?
What is causing this, -fast-math or the funroll-loops?
Again, the most likely culprit is -ffast-math.
For building world/kernel, it is *highly* recommended not to mess with
the default CFLAGS/COPTFLAGS (especially since the gcc 4.2 import,
which is much more fussy than earlier versions, and possibly still a
little buggy at higher optimization levels or with some of the more
exotic optimization options). It is also strongly discouraged to
report problems resulting from the use of non-standard compiler options
with buildworld/buildkernel.
Are you using gcc 4.2 on 6x? If so, I would also like to use gcc 4.2 on
6.2-Stable. If you install gcc 4x it still uses gcc 3x to compile the
world and programs.. I guess it would be a matter of pointing gcc 4x to
the right places.. Could you tell me how to do this?
Oh, I didn't realize that gcc 4.2 still hadn't been MFC'ed (merged from
current, as we say) back to 6.x.
I'm running 7.0-CURRENT, myself, where gcc 4.2 has been fully integrated
now into the system, both for buildworld/buildkernel and ports.
Not sure how good an idea it would be to try and forcibly merge 4.2 into
6.x or STABLE on your own just yet. You may just be opening yourself up
for a world of trouble. Best leave these things to the experts, and wait
for it to be officially merged. :-)
In the meantime, if you just can't resist the urge to play, you could
install gcc 4.2 from ports and set the appropriate environment variables
(CC, etc.) in /etc/make.conf to point to it instead of the standard gcc.
Just do be aware that you're liable to get bit at some point. :-)
--
Conrad J. Sabatier <conrads@xxxxxxx>
.
- References:
- Re: Noob Guestion About Make.conf
- From: Conrad J. Sabatier
- Re: Noob Guestion About Make.conf
- Prev by Date: Re: Xorg Upgrade is a Bitch
- Next by Date: Re: ZFS in FreeBSD-CURRENT
- Previous by thread: Re: Noob Guestion About Make.conf
- Next by thread: Any word on when 7.0 RELEASE will release?
- Index(es):
Relevant Pages
|