Menu

#9 Fails to build with GCC/ gfortran 8: "Error: Actual argument contains too few elements for dummy argument ‘angle’ (3/4) at (1)".

v1.0 (example)
closed
build (1)
5
2019-05-23
2018-10-16
Drei Eck
No

Recently, building the latest auto-07p (Version 0.9.1 from https://sourceforge.net/projects/auto-07p/files/auto07p/0.9/auto07p-0.9.1.tar.gz/download) fails with up to date gcc compiler.

The error message is:

gfortran -O3 -c  plautlib.f -o plautlib.o
plautlib.f:6777:48:

           CALL ARROWL(I,XC(I,2),YC(I,2),ALFA,DA,ANGLE,XC,YC,ICODE)
                                                1
Error: Actual argument contains too few elements for dummy argument ‘angle’ (3/4) at (1)
make[1]: *** [Makefile:14: plautlib.o] Error 1

gfortran version is: GNU Fortran (GCC) 8.2.1 20180831

With gcc 7 it still worked.

This bug has also been reported to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897711.

Whereas I do not build on debian but use your sources directly and build on Arch/ Artix Linux using the recipe at https://aur.archlinux.org/packages/auto-07p/ (I maintain this AUR package, btw.).

Discussion

  • Carsten Bruns

    Carsten Bruns - 2019-01-15

    As a temporary workaround, -std=legacy can be added to the compiler flags, e.g. in the FFLAGS variable in the Makefile of plaut (07p/plaut/Makefile.in). This changes the error message into a warning, the same way as older version of gfortran behaved.

     
  • Jose Manuel Montilla García

    I'm having the very same problem. I'm trying to install in Manjaro 18.0.2 and can't have a succesfull instalation. I have tried the solution of Carsten Bruns but the result is a corrupted instalation that does't work. Any news?

     
  • Drei Eck

    Drei Eck - 2019-01-17

    Using the old g95-compiler seems to be a workaround, but not a proper solution, though.

     
  • Bart Oldeman

    Bart Oldeman - 2019-05-23
    • status: open --> closed
    • assigned_to: Bart Oldeman
     

Log in to post a comment.