gfortran 4.8.2-19ubuntu: Erroneous "end of file" with internal read
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults |
Unknown
|
Unknown
|
|||
gcc-defaults (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
The current gfortran-4.8 package in Trusty (4.8.2-19ubuntu1 as of today) miscompiles CASTEP to a useless state, regardless of compile flags. Even -O0 will result in a useless binary. The main problem is the binary misreads values stored in between blocks, such as
%block lattice_cart
2.6954645 2.6954645 0.0
2.6954645 0.0 2.6954645
0.0 2.6954645 2.6954645
%endblock lattice_cart
This regression is apparently caused by a patch in GCC 4.9 backported into Debian/Ubuntu. It certainly does not affect Macports' gfortran 4.8.2, nor in the gfortran 4.8.x compilation at archer.ac.uk. I'll try to find out if a gcc regression has been filed about this, and post it later, so it is easier to revert the patch or otherwise fix the issue.
In any case, CASTEP is proprietary source code, and won't be able to share the source in order to further diagnose the issue.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gfortran 4:4.8.2-1ubuntu6
ProcVersionSign
Uname: Linux 3.13.0-29-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Jun 14 17:29:19 2014
InstallationDate: Installed on 2011-12-21 (906 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to trusty on 2014-04-17 (58 days ago)
summary: |
- gfortran 4.8.2-19ubuntu1 miscompiles CASTEP + gfortran 4.8.2-19ubuntu: Erroneous "end of file" with internal read |
The relevant GCC bugzilla report is pr61173: /gcc.gnu. org/bugzilla/ show_bug. cgi?id= 61173
https:/
Compiling the test case fails when using gfortran-4.8 in the two ubuntu 14.04 machines I have access to.