Skip to content

Wrong Compiler Selected When Building With Make #648

Closed
@Carltoffel

Description

@Carltoffel

This line

FC ?= gfortran

should set FC to gfortran, if no other compiler is defined. But on some (don't know on how many) systems FC is preset to f77. Since I don't have f77 (and I doubt it would be able to compile stdlib) the build process fails.
Is there anything we can do about this issue? Maybe check the value of FC if it is set to such a default value and print a error/warning message?
The current warning is a little bit misleading:
f77: No such file or directory

Testet on:
Arch Linux, GNU Make 4.3 built for x86_64-pc-linux-gnu
Fedora 35, GNU Make 4.3 built for x86_64-redhat-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    build: makeIssue with stdlib's manual makefile build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions