Skip to content

Failed to run fpm build under ifort on Windows 10 #14

Closed
@zoziha

Description

@zoziha

This may be a bug in ifort, but currently affects fpm build for test-drive and I don't know why cmake can build.
The following is when I actually use test-drive to test ifort:

Even if ifort does not have openmp enabled, the compiler seems to parse the !$OMP command, resulting in an error, which may be a bug in Windows-ifort.

  1. fpm build --compiler ifort --flag "-fpp": failed ❌ See testdrive.F90(337-338)
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.5.0 Build 20211109_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

.\src\testdrive.F90(345): error #6099: An ENDDO statement occurred without a corresponding DO or DO WHILE statement. 
    end do
----^
compilation aborted for .\src\testdrive.F90 (code 1)
<ERROR> Compilation failed for object " src_testdrive.F90.o "
<ERROR>stopping due to failed compilation
STOP 1
  1. fpm build --compiler ifort --flag "-fpp -Qopenmp": success ✅

System environment:
window10, ifort 2021.5.0, fpm version 0.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions