#3 pFUnit f2kunit branch fails to compile with NAG

v1.0 (example)
closed
Tom Clune
None
5
2013-06-11
2012-05-31
Carlos
No

(f2kunit branch) Using F90_VENDOR=NAG and MPI=NO:
Failure of building pFUnit.

/usr/local/nag/5.3-854/bin/nagfor -c -g -O0 -f2003 -w=uda -gline -DSTRINGIFY_OPERATOR -I../include -I../source Test_Assert_cpp.F90 -o Test_Assert.o
NAG Fortran Compiler Release 5.3(854)
Panic: Test_Assert.F90, line 16: Cannot find scope id 0
detected at :@NEWSIMPLETESTMETHOD
Internal Error -- please report this bug
Abort
make[1]: *** [Test_Assert.o] Error 3
make[1]: Leaving directory `/gpfsm/dhome/pfunit/scratch/pFUnit/tests'
make: *** [all] Error 2

Discussion

  • I found this when searching for a similar bug I experienced in one of my own test programs. The problem seemed to be that NAG produces, but cannot use, .mod files where a procedure declaration precedes the interface that it refers to. (This has nothing to do with the order that the two appear in in the source code.) I contacted NAG support and it appears that they have a fix for this problem; it's just not in the version on their website yet (which I believe is still 5.3(854)).

     
  • Tom Clune
    Tom Clune
    2013-06-11

    Carlos,

    Did we create a workaround for this issue? I've lost track, and only just now discovered this trove of reported bugs. :-(

     
  • Tom Clune
    Tom Clune
    2013-06-11

    I am going to mark this ticket as closed because it is for pfunit 1.0. Version 2.0 is currently passing our tests using the NAG compiler.

     
  • Tom Clune
    Tom Clune
    2013-06-11

    • status: open --> closed
    • assigned_to: Tom Clune
    • Group: --> v1.0 (example)