Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121855 - Numerous applications fail to compile when using gfortran
Summary: Numerous applications fail to compile when using gfortran
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 125205 125682 126710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-06 11:25 UTC by Scott Robert Ladd
Modified: 2006-06-04 03:16 UTC (History)
4 users (show)

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


Attachments
patch taking care of bad configure and gfortran invocation (euler-1.61.0.ebuild.patch,1005 bytes, patch)
2006-02-08 17:33 UTC, Markus Dittrich (RETIRED)
Details | Diff
patch for autotool files (configure-gentoo.patch,677 bytes, patch)
2006-02-08 17:33 UTC, Markus Dittrich (RETIRED)
Details | Diff
patch to fix invalid declaration in C file (command-gcc4-gentoo.patch,341 bytes, patch)
2006-02-08 17:34 UTC, Markus Dittrich (RETIRED)
Details | Diff
updated patch for ebuild using autotools.eclass (euler-1.61.0.ebuild.patch,882 bytes, patch)
2006-02-09 10:12 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Robert Ladd 2006-02-06 11:25:54 UTC
This is not necessarily a "bug" in gentoo as it is an issue that needs to be addressed. When using GCC 4.0+ as the system compiler, many Fortran-dependent packages do not compile, since their configurations do not yet support the new gfortran compiler (which replaced GCC).

Among the packages affected:

sci-libs/blas-atlas
sci-libs/lapack-atlas
sci-chemistry/mpqc
sci-mathematics/euler
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-02-06 15:01:37 UTC
I've got patches for blas-atlas and lapack-atlas, but I haven't committed them yet.
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2006-02-06 15:52:12 UTC
I'll have a look at mpqc. 
I am pretty sure that sci-chemistry/gamess will also have problems, 
and I have some patches that might fix this, but simply haven't had 
the time to test them yet.

Thanks,
Markus
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2006-02-07 06:36:15 UTC
(In reply to comment #0)
> Among the packages affected:
> 
> sci-chemistry/mpqc

mpqc compiles and works fine for me using gcc-4.0.2-r3.
Could you please post your error message.

Thanks,
Markus
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-02-07 09:25:29 UTC
Wouldn't mind some testing on my blas-atlas and lapack-atlas changes ... http://dev.gentoo.org/~spyderous/overlay/sci-libs/
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2006-02-07 14:33:17 UTC
(In reply to comment #4)
> Wouldn't mind some testing on my blas-atlas and lapack-atlas changes ...
> http://dev.gentoo.org/~spyderous/overlay/sci-libs/
> 
Both compile fine for me!
The only thing I noticed was that instead of completely removing the 
compiler check in the allow-any-gcc-version.patch one could also just 
add gcc-4.x to the list of allowed ones. Then again, considering the gcc
versions available in portage the check doesn't do anything anyway.
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2006-02-08 17:29:54 UTC
(In reply to comment #0)
> sci-mathematics/euler

Ok, I had a go at euler-1.61.0 and the main problem isn't gfortran, but rather
an invalid declaration in one of the C files. Also, it seems that at least
on my setup the supplied configure completely ignores the supplied CFLAGS.
I think I've fixed it all and it compiles and runs fine for me. I'll attach the 
patches below; if somebody could give them a try that would be great.

Thanks,
Markus
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2006-02-08 17:33:10 UTC
Created attachment 79289 [details, diff]
patch taking care of bad configure and gfortran invocation
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2006-02-08 17:33:52 UTC
Created attachment 79290 [details, diff]
patch for autotool files
Comment 9 Markus Dittrich (RETIRED) gentoo-dev 2006-02-08 17:34:45 UTC
Created attachment 79291 [details, diff]
patch to fix invalid declaration in C file
Comment 10 Markus Dittrich (RETIRED) gentoo-dev 2006-02-09 10:12:22 UTC
Created attachment 79343 [details, diff]
updated patch for ebuild using autotools.eclass
Comment 11 John Sonnenschein 2006-02-12 02:58:35 UTC
sci-mathematics/octave also needs to be added to the list
Comment 12 Markus Dittrich (RETIRED) gentoo-dev 2006-02-12 07:48:25 UTC
The following two packages should now work properly with gfortran/gcc-4.x

sci-mathematics/euler
sci-chemistry/gamess
Comment 13 Markus Dittrich (RETIRED) gentoo-dev 2006-02-12 10:06:44 UTC
(In reply to comment #11)
> sci-mathematics/octave also needs to be added to the list
>

sci-mathematics/octave-2.1.72 compiles fine here with gcc-4.0.2-r3.
Could you please give some more details regarding your compile
failure?

Thanks,
Markus
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2006-02-12 10:13:58 UTC
One thing worth noting is that applications can compile with the gcc-4.1 gfortran and fail with the gcc-4.0 gfortran, so if you test with 4.1, make sure you also test with 4.0.
Comment 15 Markus Dittrich (RETIRED) gentoo-dev 2006-02-12 18:12:09 UTC
(In reply to comment #14)
> One thing worth noting is that applications can compile with the gcc-4.1
> gfortran and fail with the gcc-4.0 gfortran, so if you test with 4.1, make sure
> you also test with 4.0.
> 

Thanks for pointing that out - I am currently testing with gcc-4.0.2 only!
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-06 11:17:06 UTC
*** Bug 125205 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-03-10 02:21:51 UTC
*** Bug 125682 has been marked as a duplicate of this bug. ***
Comment 18 Patrizio Bassi 2006-03-10 02:41:57 UTC
scilab missing, i opened a specific bug for that some days ago
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-03-18 12:52:43 UTC
*** Bug 126710 has been marked as a duplicate of this bug. ***
Comment 20 Darren Dale 2006-03-18 14:55:43 UTC
(In reply to comment #4)
> Wouldn't mind some testing on my blas-atlas and lapack-atlas changes ...
> http://dev.gentoo.org/~spyderous/overlay/sci-libs/
> 

No problems to report with gcc-4.1 on a P4. Thanks!
Comment 21 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-21 11:34:52 UTC
Committed blas-atlas and lapack-atlas fixes.
Comment 22 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-21 11:49:20 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Wouldn't mind some testing on my blas-atlas and lapack-atlas changes ...
> > http://dev.gentoo.org/~spyderous/overlay/sci-libs/
> > 
> Both compile fine for me!
> The only thing I noticed was that instead of completely removing the 
> compiler check in the allow-any-gcc-version.patch one could also just 
> add gcc-4.x to the list of allowed ones. Then again, considering the gcc
> versions available in portage the check doesn't do anything anyway.

Yeah, the reason I didn't do that is so it's scalable to future gcc versions as well. I'd rather be able to completely forget about that patch instead of touching it even once a year or whatever.
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 01:57:37 UTC
*** Bug 134880 has been marked as a duplicate of this bug. ***
Comment 24 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-04 03:16:07 UTC
If there are any remaining applications in this bug, please open individual bugs for them.