Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 15:09:38 -0500
From:      Michael Johnson <ahze@ahze.net>
To:        "Jeremy Messenger" <mezz7@cox.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0
Message-ID:  <9EFFD136-2F66-11D9-8D06-000A958C81C6@ahze.net>
In-Reply-To: <opsg0b75e39aq2h7@mezz.mezzweb.com>
References:  <20041102222000.GA65845@xor.obsecurity.org> <639522fe041103144732ea6683@mail.gmail.com> <1099522198.59328.4.camel@blueheron.ahze.net> <200411050919.09547.freebsd.nospam@mekanix.dk> <79D46B84-2F34-11D9-8D06-000A958C81C6@ahze.net> <639522fe041105112218c5c9f8@mail.gmail.com> <opsg0bivob9aq2h7@mezz.mezzweb.com> <418BD75C.40507@marcuscom.com> <opsg0b75e39aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-6--1028389374
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Nov 5, 2004, at 2:53 PM, Jeremy Messenger wrote:

> On Fri, 05 Nov 2004 14:41:16 -0500, Joe Marcus Clarke 
> <marcus@marcuscom.com> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jeremy Messenger wrote:
>> | On Fri, 5 Nov 2004 12:22:00 -0700, Jie Gao 
>> <jeffgaofreebsd@gmail.com>
>> | wrote:
>> |
>> |> gstreamer-plugins really has problems with particular compiler 
>> flags.
>> |> On my system I cannot use -O -pipe -march=pentium4 otherwise
>> |> gst-register will fail.
>> |
>> |
>> | Try either remove CPUTYPE or switch to -O2 to fix this problem. The 
>> -O2
>> | w/  CPUTYPE and -O w/out CPUTYPE run better than -O w/ CPUTYPE in
>> | GNOME2  (include gstreamer-plugins). But, I don't know about p4, it
>> | might be  different case from athlon-xp.
>>
>> The Athlon case should be fixed in gstreamer-plugins.  Someone may 
>> need
>> to dig into the list of -O2 optimizations to see which one fixes
>> pentium4.  Of course, maybe it just makes since to compile
>> gstreamer[-plugins] with -O2 by default.
>
> I think, go with -O2 probably would be easier but what about different 
> arch beside i386? Maybe, need to test -O2 on different arch.
>
> Cheers,
> Mezz

I agree we should go to -O2 default
I was building cvs version of gstreamer-plugins earlier with -O 
-march=athlon-xp -pipe plus the fix we have in gstreamer-plugins in 
ports now
and gst-register core dumps, but it works with -O2. So I'd imagine 
we'll just run in to more problems in the
future.

in the long run I think -O2 is the best bet for at least OSVERSION > 
50000 (or all versions)
I don't think this is a problem with gcc2.95 because it doesn't have 
march=athlon-xp or p4.
But I have done very little testing other than march=pentiumpro on 
gcc2.95

Michael
>> Joe
>>
>> - --
>> PGP Key : http://www.marcuscom.com/pgp.asc
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.6 (Darwin)
>> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>>
>> iD8DBQFBi9dcb2iPiv4Uz4cRAle8AJ9GSvILY3MHdEs8W72yohDRBA/eZgCeP+Tk
>> /4A3iJyqWDTvUqPvp3tJIDs=
>> =EtYx
>> -----END PGP SIGNATURE-----
>
>
> -- 
> mezz7@cox.net  -  mezz@FreeBSD.org
> FreeBSD GNOME Team
> http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org

--Apple-Mail-6--1028389374
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBi94Cn4uqfTwEb9YRAvH6AJ99WggFHItrI2ono3zPLVRnDHGD1QCeIvT5
6z/wEDiOQMNmhRd24DI36es=
=7Sf2
-----END PGP SIGNATURE-----

--Apple-Mail-6--1028389374--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9EFFD136-2F66-11D9-8D06-000A958C81C6>