FS#7300 - Makepkg should use -mtune=generic for gcc 4.2.0

Attached to Project: Arch Linux
Opened by Jan de Groot (JGC) - Monday, 28 May 2007, 21:58 GMT
Last edited by Jan de Groot (JGC) - Monday, 04 June 2007, 20:18 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Aaron Griffin (phrakture)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.05 Duke
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

gcc 4.2.0 needs -mtune=generic to make sure optimizations in produced binaries are for generic i686 architecture. Without it, gcc makes assumptions based on the build machine, which could be very bad for i686 generic package building.

An other option would be to force this flag by default in gcc 4.2.0
This task depends upon

This task blocks these from closing
 FS#7295 - gcc 4.2/glibc 2.6 migration bugs 
Closed by  Jan de Groot (JGC)
Monday, 04 June 2007, 20:18 GMT
Reason for closing:  Fixed
Comment by Andrew Fyfe (space-m0nkey) - Monday, 28 May 2007, 22:53 GMT
Patch for makepkg.conf
Comment by Aaron Griffin (phrakture) - Wednesday, 30 May 2007, 18:33 GMT
Jan, is this critical for the migration? Should it be released before 3.1? How long can it wait?
It's easy either way, I'm just curious.
Comment by Dan McGee (toofishes) - Wednesday, 30 May 2007, 19:27 GMT
It is patched in GIT, this is an easy fix to make with a patch in the pacman PKGBUILD as well if we need to. The biggest concern is getting this word out to any developers.
Comment by Jan de Groot (JGC) - Wednesday, 30 May 2007, 22:07 GMT
I guess this one improves the quality of binaries we produce using gcc 4.2.0. I'm building packages with this flag with gcc 4.1.2 at this moment also, 4.1.2 just ignores the flag or does as it is told to do so.
I guess we should put out a new release of pacman, either a new one or a patched PKGBUILD would be recommended.

Loading...