Closed
Description
I tried compiling natively (as in not mingw or msys2) and hit a few issues.
First one was a missing module file (maybe the build graph was wrong?) but running ninja with -k0 it didn't seem to show up again(though with the amount of output I might have missed it. specialfunctions_legendre was trying to be built before specialfunctions.mod existed. As after a clean I didn't hit it again, it seems non deterministic probably due to the parallel build.
Second one is:
D:\\lib\\stdlib\\build\\src\\stdlib_math.f90:25:45: warning: acos(real(kind=10)) cannot be folded on host
real(kind=xdp), parameter :: PI_xdp = acos(-1.0_xdp)
^^^^^^^^^^^^^^
D:\\lib\\stdlib\\build\\src\\stdlib_math.f90:25:45: error: Value of named constant 'pi_xdp' (acos(-1._10)) cannot be computed as a constant value
real(kind=xdp), parameter :: PI_xdp = acos(-1.0_xdp)
It appears as though a lot (or all?) math functions are non-constant. atan2 log and probably others also say cannot be folded on host.
third one:
error: Semantic errors in src\CMakeFiles\fortran_stdlib.dir\stdlib_error.f90-pp.f90
D:\\lib\\stdlib\\build\\src\\stdlib_error.f90:245:14: error: Left-hand side of assignment is not definable
ierr_out = ierr
^^^^^^^^
D:\\lib\\stdlib\\build\\src\\stdlib_error.f90:245:14: because: 'ierr_out' is polymorphic in a pure subprogram
ierr_out = ierr
^^^^^^^^
D:\\lib\\stdlib\\build\\src\\stdlib_error.f90:239:56: Declaration of 'ierr_out'
class(state_type), optional, intent(inout) :: ierr_out
^^^^^^^^