Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Compiler Selected When Building With Make #648

Closed
Carltoffel opened this issue Apr 7, 2022 · 3 comments
Closed

Wrong Compiler Selected When Building With Make #648

Carltoffel opened this issue Apr 7, 2022 · 3 comments
Labels
build: make Issue with stdlib's manual makefile build

Comments

@Carltoffel
Copy link
Member

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

@awvwgk awvwgk added the build: make Issue with stdlib's manual makefile build label Apr 7, 2022
@awvwgk
Copy link
Member

awvwgk commented Apr 18, 2022

On Arch Linux FC is not set for me. Even when running inside makepkg there is no value in the FC environment variable predefined. Usually CMake is picking up f95 from /usr/bin which is equivalent to gfortran on most platforms.

@Carltoffel
Copy link
Member Author

In my shell FC is not set, too. Where else could f77 come from? If it would select f95 it would work, but this doesn't happen.

@ivan-pi
Copy link
Member

ivan-pi commented May 19, 2022

Closing due to #657 (Remove support for manual make builds).

@ivan-pi ivan-pi closed this as completed May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build: make Issue with stdlib's manual makefile build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants