Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 439908

Summary: sci-chemistry/gamess-20130501.1 version bump
Product: Gentoo Linux Reporter: Reinis Danne <rei4dan>
Component: New packagesAssignee: Alexey Shvetsov <alexxy>
Status: RESOLVED FIXED    
Severity: normal CC: sci-chemistry
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Reinis Danne 2012-10-27 17:25:20 UTC
Ebuild in science overlay.

Organization of tests is changed so chcktest patch is dropped.
To run tests:
$ cp -r /usr/share/gamess/tests gmstests
$ cd gmstests/standard
$ ../runall 00
$ chmod +x checktst scripts/*
$ ./checktst

Some of the tests where failing with some optimization flags, for those CFLAGS are ignored and a proper -O value used (in gamess-20120501.1.gentoo.patch), tested with gcc4.7:
exam37 fails with -O < 2  -- fails at reading inp file and $fmoxyz in particular, module fmoio
exam41 fails with -O > 0? -- module tddgrd
exam44 fails with -O > 0  -- SCF doesn't converge, module dcscf

Reproducible: Always
Comment 1 Reinis Danne 2012-10-28 11:49:32 UTC
The issue with exam37 seems to be fixed in the latest gcc (4.7.2), but I'm not sure if the workaround should be taken out. One reason to do so would be to encourage the usage of newer gcc since there are many other bugs fixed also.
Comment 2 Florian D. 2013-12-22 17:44:52 UTC
(In reply to Reinis Danne from comment #0)
> Ebuild in science overlay.
> 
> Organization of tests is changed so chcktest patch is dropped.
> To run tests:
> $ cp -r /usr/share/gamess/tests gmstests
> $ cd gmstests/standard
> $ ../runall 00
> $ chmod +x checktst scripts/*
> $ ./checktst
> 
> Some of the tests where failing with some optimization flags, for those
> CFLAGS are ignored and a proper -O value used (in
> gamess-20120501.1.gentoo.patch), tested with gcc4.7:
> exam37 fails with -O < 2  -- fails at reading inp file and $fmoxyz in
> particular, module fmoio
> exam41 fails with -O > 0? -- module tddgrd
> exam44 fails with -O > 0  -- SCF doesn't converge, module dcscf
> 
> Reproducible: Always

thanks, this is very helpful... with gcc-4.7.3-r1 and no further modifications, all tests passed.
could you please update the ebuild to reflect the test-procedure, now there is a misleading description:
" To do so copy the content of /usr/share/gamess/tests to some temporary location and execute './runall'."
Comment 3 milan hodoscek 2014-05-20 11:18:31 UTC
If compiled with gcc-4.8.2 or gcc-4.9.0 gamess fails all the tests. It is possible to tweak the optimization levels so all the tests still pass but it gets very slow, since the files that perform intensive computations have to be compiled using -O0

It is better to use dragonegg/llvm - it passes all the tests. I use it by creating /etc/portage/env/sci-chemistry/gamess file with the follwing content:
FFLAGS="-O2 -pipe -march=corei7 -fplugin=dragonegg.so"

Just my 2c :-)
Comment 4 Aleksandr Yakimov 2014-08-13 20:15:10 UTC
(In reply to milan hodoscek from comment #3)
> If compiled with gcc-4.8.2 or gcc-4.9.0 gamess fails all the tests.

This is known issue - look at http://blog.regehr.org/archives/918

I will be better to add "-fno-aggressive-loop-optimizations" into ebuild.
Comment 5 milan hodoscek 2015-02-06 14:09:55 UTC
There is a new version of gamess: 20141205.1
This one already includes -fno-aggressive-loop-optimizations in the comp script

Anybody working on a new ebuild ?

I made a very restrictive ebuild (gcc-4.9 or gcc-4.8 only, no tinker, etc)