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

Why f18 looks for pgf90? #290

Closed
hcltrajesh opened this issue Feb 18, 2019 · 4 comments
Closed

Why f18 looks for pgf90? #290

hcltrajesh opened this issue Feb 18, 2019 · 4 comments

Comments

@hcltrajesh
Copy link

hcltrajesh commented Feb 18, 2019

This is in continuation to issue #285 .
When f18 is used to compile a Fortran program to create "a.out", the below message is generated:
The below error is generated:

#f18 test.f90
execvp(pgf90) failed: No such file or directory

Please help me understand the issue and an appropriate solution to the issue.
I am a new newbie to f18, I don't know why pgf90 (PG Fortran) is invoked by f18.

Thanks in anticipation!

@tskeith
Copy link
Collaborator

tskeith commented Feb 18, 2019

The default behavior for f18 currently is to parse the program, convert the parse tree back to Fortran, and compile the result with pgf90. This is useful for testing the parser.

You can run f18 -help to see options that affect this behavior. In particular, -fparse-only disables the compilation with another compiler. -fdebug-semantics enables the currently implemented semantics checks. There are options for dumping some data structures.

@ramos
Copy link

ramos commented Jul 10, 2019

Hi,

The same problem with f18 installed from FreeBSD ports. Is there any way to actually compile and produce an executable with f18?

Thanks!

@sscalpone
Copy link
Member

No, f18 cannot produce an executable by itself yet. It is able to parse and analyze Fortran. It uses pgf90 (by default) to analyze its results. This behavior is temporary until f18 can generate llvm ir, etc.

@dmcdougall
Copy link

You can tell f18 to look for a different compiler by setting the F18_FC environment variable to, say, flang or gfortran. Be aware that not all compilers have exactly the same front-end interface; flags that do the same thing in different compilers may be spelt subtly differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants