HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0

Michael Johnson ahze at ahze.net
Fri Nov 5 12:09:46 PST 2004


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

> On Fri, 05 Nov 2004 14:41:16 -0500, Joe Marcus Clarke 
> <marcus at marcuscom.com> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jeremy Messenger wrote:
>> | On Fri, 5 Nov 2004 12:22:00 -0700, Jie Gao 
>> <jeffgaofreebsd at 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 at cox.net  -  mezz at FreeBSD.org
> FreeBSD GNOME Team
> http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20041105/7bc41a09/PGP.bin


More information about the freebsd-ports mailing list