Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151819 - numpy 1.0_rc1 incompatible with gentoo gcc (gfortran)
Summary: numpy 1.0_rc1 incompatible with gentoo gcc (gfortran)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-18 04:24 UTC by James
Modified: 2007-02-19 12:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Sample output showing problem. (z,4.23 KB, text/plain)
2006-10-18 04:25 UTC, James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James 2006-10-18 04:24:55 UTC
gfortran --version
GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r1)
Copyright (C) 2006 Free Software Foundation, Inc.

Notice the Gentoo bit on the end.

f2py contained in the numpy package results in the following:
Could not locate executable f95
Couldn't match compiler version for 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo
4.1.1-r1)\nCopyright (C) 2006 Free Software Foundation, Inc.\n\nGNU
Fortran comes with NO WARRANTY, to the extent permitted by law.\nYou may
redistribute copies of GNU Fortran\nunder the terms of the GNU General
Public License.\nFor more information about these matters, see the file
named COPYING\n'

Can someone please either fix gfortran to not have the Gentoo bit, or alternatively, fix numpy to correctly detect it.
Comment 1 James 2006-10-18 04:25:40 UTC
Created attachment 99933 [details]
Sample output showing problem.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-18 06:45:00 UTC
You need to attach a complete output log or tell me what package you're having the problem with, so I can attempt to reproduce it.

What it looks like to me is that numpy isn't detecting gfortran as a Fortran 77 compiler but as a Fortran 90 compiler instead, which is expected behavior. Here's output from my numpy build:

Could not locate executable g77
Could not locate executable f77
Could not locate executable f95
customize GnuFCompiler
Couldn't match compiler version for 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r1)\nCopyright (C) 2006 Free Software Foundation, Inc.\n\nGNU Fortran comes with NO WARRANTY, to the extent permitted by law.\nYou may redistribute copies of GNU Fortran\nunder the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING\n'
Could not locate executable efort
Could not locate executable efc
Could not locate executable efort
Could not locate executable efc
customize IntelFCompiler
customize LaheyFCompiler
Couldn't match compiler version for 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r1)\nCopyright (C) 2006 Free Software Foundation, Inc.\n\nGNU Fortran comes with NO WARRANTY, to the extent permitted by law.\nYou may redistribute copies of GNU Fortran\nunder the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING\n'
customize PGroupFCompiler
customize AbsoftFCompiler
customize NAGFCompiler
customize VastFCompiler
customize GnuFCompiler
Couldn't match compiler version for 'GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1-r1)\nCopyright (C) 2006 Free Software Foundation, Inc.\n\nGNU Fortran comes with NO WARRANTY, to the extent permitted by law.\nYou may redistribute copies of GNU Fortran\nunder the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING\n'
customize CompaqFCompiler
customize IntelItaniumFCompiler
customize IntelEM64TFCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using config

Gnu95FCompiler is what it should be showing up as. GnuFCompiler is for g77.
Comment 3 James 2006-10-18 07:03:45 UTC
To reproduce the problem:
The program I am trying to compile is called wsjt.
http://developer.berlios.de/svn/?group_id=5666
To get it do:
svn checkout http://svn.berlios.de/svnroot/repos/wsjt/trunk wsjt

Then
./configure
make

Comment 4 Stefan Nickl 2007-01-13 16:20:21 UTC
Pls check if this problem is fixed with my numpy-1.0.1.ebuild from bug 154275.

Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2007-02-19 12:06:12 UTC
> To reproduce the problem:
> svn checkout http://svn.berlios.de/svnroot/repos/wsjt/trunk wsjt
> Then
> ./configure
> make

I tried this with numpy-1.0.1-r1 and your latest svn. It detects gfortran fine despite the warnings. Closing for now, reopen if it persists.