Public bug reported: 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 ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2 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) ** Affects: gcc-defaults (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug trusty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1330099 Title: gfortran 4.8.2-19ubuntu1 miscompiles CASTEP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1330099/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs