Skip to content

Build error with gfortran (MSYS2) on windows #989

Closed
@khaors

Description

@khaors

Description

Hi everyone, I just updated MSYS2 in my windows machine with gfortran 15.1 and I'm getting the following error:

..\src\temp\stdlib_linalg_pinv.f90:74:38:

74 | do concurrent (i=1:m,j=1:k); u(i,j) = s(j)*u(i,j); end do
| 1
Error: Syntax error in DO statement at (1)
compilation terminated due to -fmax-errors=1.
Compilation failed for object " src_temp_stdlib_linalg_pinv.f90.o "
stopping due to failed compilation

Expected Behaviour

No compilation error

Version of stdlib

c14d599

Platform and Architecture

Windows

Additional Information

No response

Activity

wassup05

wassup05 commented on May 23, 2025

@wassup05
Contributor

I can reproduce this issue on linux as well with gfortran.

changing the do concurrent statement in the following way however resolves it.

do concurrent (i=1:m,j=1:k)
    u(i,j) = s(j)*u(i,j)
end do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompiler: gfortranSpecific to GCC Fortran compilerplatform: WindowsBuild issues specific to the Windows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Build error with gfortran (MSYS2) on windows · Issue #989 · fortran-lang/stdlib