Bug 132363 - sci-libs/blas-atlas needs fix for config.c to compile with gcc-4.* on PPC
Bug#: 132363 Product:  Gentoo Linux Version: 2006.0 Platform: PPC
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: mabi@gentoo.org
Component: Applications
URL: 
Summary: sci-libs/blas-atlas needs fix for config.c to compile with gcc-4.* on PPC
Keywords:  
Status Whiteboard: 
Opened: 2006-05-05 10:21 0000
Description:   Opened: 2006-05-05 10:21 0000
Ok, blas-atlas checks for Altivec and requires >= gcc-3.3 to compile altivec
code.
Sadly it checks it like that:
if (major >= 3 && minor >= 3)

Which is good, but not until Gnu decides to ship >=gcc-4.3.*
Therefore i've changed it to read:
if ((major >= 3 && minor >= 3)||(major >= 4))

Maybe that should be added to 3.7.11-allow-any-gcc-version.patch (as it already
deals with gcc-issues)?

------- Comment #1 From David Gurvich 2006-05-07 09:05:06 0000 -------
Compiles with no problem using gcc-4.1.0 on ppc
'interactive=1 emerge blas-atlas'
Allows you to ignore the version check during configuration with a series of
y/n questions.  

------- Comment #2 From Markus Dittrich 2006-05-07 14:57:44 0000 -------
Hi Matti,

Thanks for pointing this out. I've updated the
3.7.11-allow-any-gcc-version.patch
to remove the compiler check for altivec completely since it is not really
needed
considering the gcc versions available in portage.

Thanks,
Markus