Menu

#17 Build error: SurrogateTestCase: "Deferred-length character component 'getname' at (1) is not yet supported"

v2.x
closed
5
2014-07-29
2014-01-17
No

Hi there,

I tried to build pFUnit according to the README file, which was not successfull.

I got the following error message:

SurrogateTestCase.F90:54.57:
         class (SurrogateTestCase), intent(inout) :: this
                                                         1
Error: Deferred-length character component 'getname' at (1) is not yet supported

I'm running Ubuntu 12.04.4 LTS with kernel 3.2.0-58-generic.
I have installed GNU Fortran 4.6.3-1ubuntu5 and MPICH 3.0.4.

I set the configuration variables as follows:

$ export F90_VENDOR=GNU
$ export F90=gfortran
$ export MPIF90=mpif90
$ export MPIRUN=[...]/mpirun
$ export DOXYGEN=/usr/bin/doxygen

Both "make tests" and "make test MPI=YES" end up with the error given above.

I would be happy to get some help.

Related

Bugs: #17

Discussion

  • Christian Zoller

    Okay, I think, I have to upgrade on gfortran 4.8 or higher.

     

    Last edit: Christian Zoller 2014-01-17
    • Tom Clune

      Tom Clune - 2014-01-17

      Hello Christian,

      Yes - unfortunately we have some fairly strong constraints on which compilers can be supported at this time. In fact, as of last week, the master branch actually requires gfortran 4.9.0 which is not even formally released yet. (Tripped across a very severe internal error that was preventing a very reasonable change to the implementation of the framework.)

      If you need to use released versions of the compilers, I recommend using the 2.1.0 branch for now. Coincidentally noticed that our installation of 4.8.1 shows the same issue you are reporting in one of our environments. A fresh build from SVN ran correctly, but the tar ball from the GCC site did not. We'll report this issue to them, but it is unlikely to help you. Probably the best thing is for you to just install 4.8.2 and avoid the issue.

      The downside of using the stable branch is that the syntax for the parser is undergoing significant changes on the master branch, which means that you may need to update your tests in the future. The changes are mostly simplifications and if you are not defining your own TestCase subclasses, I think things will remain backwardly compatible.

      Cheers,

      • Tom

      On Jan 17, 2014, at 6:26 AM, Christian Zoller chrzoller@users.sf.net wrote:

      Okay, I think, I have to update on gfortran 4.8 or higher.

      [bugs:#17] Build error: SurrogateTestCase: "Deferred-length character component 'getname' at (1) is not yet supported"

      Status: unread
      Labels: build make
      Created: Fri Jan 17, 2014 10:24 AM UTC by Christian Zoller
      Last Updated: Fri Jan 17, 2014 10:24 AM UTC
      Owner: nobody

      Hi there,

      I tried to build pFUnit according to the README file, which was not successfull.

      I got the following error message:

      SurrogateTestCase.F90:54.57:
      class (SurrogateTestCase), intent(inout) :: this
      1
      Error: Deferred-length character component 'getname' at (1) is not yet supported
      I'm running Ubuntu 12.04.4 LTS with kernel 3.2.0-58-generic.
      I have installed GNU Fortran 4.6.3-1ubuntu5 and MPICH 3.0.4.

      I set the configuration variables as follows:

      $ export F90_VENDOR=GNU
      $ export F90=gfortran
      $ export MPIF90=mpif90
      $ export MPIRUN=[...]/mpirun
      $ export DOXYGEN=/usr/bin/doxygen

      Both "make tests" and "make test MPI=YES" end up with the error given above.

      I would be happy to get some help.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pfunit/bugs/17/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

      Thomas Clune, Ph. D. Thomas.L.Clune@nasa.gov
      Chief, Software Systems Support Office Code 610.3
      NASA GSFC 301-286-4635
      MS 610.8 B33-C128 http://ssso.gsfc.nasa.gov
      Greenbelt, MD 20771

       

      Related

      Bugs: #17

  • Christian Zoller

    Thanks for your help. With gfortran 4.8.1 and the 2.1.0 branch it works.

     
    • Michael L. Rilee

      Shall we close this ticket? If there's nothing further to do, I'll close this on 3/7.

       
  • Michael L. Rilee

    PFUNIT aims to use modern standard Fortran features as permitted by current compiler implementations. This bug (#17 SurrogateTestCase) comes from a feature lacking in previous versions of GCC/gfortran. Sufficient user interest may lead us devote extra effort on behalf of those with slightly older versions of compilers, however our focus is on advancing PFUNIT and taking advantage of ongoing compiler improvements. If you need help with an older compiler version, please let us know.

     
  • Michael L. Rilee

    • labels: build, make --> build, make, 2.1.x, legacy, support, GCC 4.7, GCC 4.6, gfortran, SurrogateTestCase, character, getname, Fortran2003
    • status: unread --> closed
    • assigned_to: Michael L. Rilee
     

Log in to post a comment.