Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348922 - ~sci-libs/netcdf-4.1.1 fails to detect F77
Summary: ~sci-libs/netcdf-4.1.1 fails to detect F77
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
Depends on:
Reported: 2010-12-17 06:00 UTC by Honza Macháček
Modified: 2015-02-28 14:43 UTC (History)
1 user (show)

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

netcdf-4.1.1-cfortran.patch (netcdf-4.1.1-cfortran.patch,507 bytes, patch)
2010-12-17 06:02 UTC, Honza Macháček
Details | Diff
netcdf-4.1.1-r3.ebuild.patch (netcdf-4.1.1-r3.ebuild.patch,389 bytes, patch)
2010-12-17 06:03 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Honza Macháček 2010-12-17 06:00:56 UTC
~sci-libs/netcdf-4.1.1 builds an unusable fortran library, all the functions declared there appear to be defined with one underscore too many. A part of netcdf-4.0.1-cfortran.patch is still needed to solve this.
Comment 1 Honza Macháček 2010-12-17 06:02:20 UTC
Created attachment 257388 [details, diff]

The part of the old netcdf-4.0.1-cfortran.patch still required by netcdf-4.1.1.
Comment 2 Honza Macháček 2010-12-17 06:03:41 UTC
Created attachment 257389 [details, diff]

A patch to the sci-libs/netcdf-4.1.1-r3.ebuild to include the netcdf-4.1.1-cfortran.patch.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-12-17 20:18:30 UTC
+*netcdf-4.1.1-r4 (17 Dec 2010)
+  17 Dec 2010; Kacper Kowalik <> +netcdf-4.1.1-r4.ebuild,
+  +files/netcdf-4.1.1-fortran.patch:
+  Default to gfortran if cannot figure out compiler wrt #348922 by Honza
+  Macháček <> Drop old.

Unfortunately, that's only workaround. We are defaulting to what we think is sane value. Though now netcdf will fail with mpi wrapped around intel compiler. Leaving bug open until fixed properly.
Comment 4 François Bissey 2012-10-04 10:41:14 UTC
What compiler do we want to support? The current netcdf detection is limited to a very small set of compilers. The user is expected to set a CPPFLAGS appropriate to their fortran compiler in most case. I learned that the hard way on a BlueGene/P using the IBM compiler.
We could extend the detection in Gentoo but we need to be clear about which compilers we will support.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-02-28 14:43:38 UTC
+  28 Feb 2015; Justin Lecher <> -netcdf-4.1.1-r4.ebuild,
+  -netcdf-4.1.3.ebuild, -netcdf-, -netcdf-4.3.0.ebuild,
+  -netcdf-, -netcdf-4.3.2.ebuild, metadata.xml:
+  Drop old; obsoletes #348922, #363131, #435844, #454950 & #478618