jacobwilliams / Fortran-Astrodynamics-Toolkit

A Modern Fortran Library for Astrodynamics šŸš€
Other
176 stars 50 forks source link

error building under FPM #26

Closed n7275 closed 2 years ago

n7275 commented 2 years ago

Hopefully this is the best place to post this. I'm trying to build using FPM on a Raspbery pi 3.

  • gfortran -c ./src/eispack_module.f90 -Wall -Wextra -Wimplicit-interface -fPIC -fmax-errors=1 -g -fcheck=bounds -fcheck=array->temps -fbacktrace -fcoarray=single -J build/gfortran_2A42023B310FA28D -Ibuild/gfortran_2A42023B310FA28D -o >build/gfortran_2A42023B310FA28D/fortran-astrodynamics-toolkit/src_eispack_module.f90.o ./src/eispack_module.f90:1549:42:

        write(*,'(F16.6,F16.6)') v(j)%re, v(j)%im
                                     1

    Error: Unexpected ā€˜%ā€™ for nonderived-type variable ā€˜vā€™ at (1) compilation terminated due to -fmax-errors=1.

    Compilation failed for object " src_eispack_module.f90.o " stopping due to failed compilation STOP 1
jacobwilliams commented 2 years ago

This %re and %im are newer Fortran features (maybe Fortran 2008?) So you must be using an older compiler.

n7275 commented 2 years ago

This %re and %im are newer Fortran features (maybe Fortran 2008?) So you must be using an older compiler.

I have 8.3.0-6+rpi1.

That would explain it. Thank you!