Skip to content

Compilation fails on Windows with flang-new #1223

@davidpfister

Description

@davidpfister

Description

The compilation fails on Windows with flang-new because the option -fPIC is not supported.

Expected Behaviour

Compilation is expected to work fine.

Version of fpm

0.12.0

Platform and Architecture

Windows

Additional Information

The compiler flags are defined in fpm_compiler.F90.

From what I can tell, it seems that the -fPIC flag is added twice. Once in get_default_flags(self, release) and once in get_release_compile_flags(self%id, flags)/get_debug_compile_flags(self%id, flags). I think that option can be safely removed from the later two functions. The same applies to gnu based compilers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions