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

Gempak won't make binaries on Ubuntu 22.04 LTS #132

Closed
mzuranski opened this issue Mar 8, 2023 · 4 comments
Closed

Gempak won't make binaries on Ubuntu 22.04 LTS #132

mzuranski opened this issue Mar 8, 2023 · 4 comments

Comments

@mzuranski
Copy link
Contributor

mzuranski commented Mar 8, 2023

In trying to install Gempak 7.15.2 on Ubuntu 22.04 LTS, by the time the make install step finishes most of the binaries were not made. This happened during an OS upgrade (18.04 > 20.04 > 22.04), as well as on a fresh OS install.

Here is the output from make all: make.out.txt See below.

I've got a hunch this is due to a newer version of gcc. I'm still investigating, but this appears to be repeatable so I'm thinking an adjustment somewhere here may be needed.

@mzuranski
Copy link
Contributor Author

Output from make install: install.log.txt

Lots of /usr/bin/ld: ... undefined reference to ... errors. 🤔

@mzuranski
Copy link
Contributor Author

I am a dumb dumb and forgot to capture both STDOUT and STDERR. Here's the new make all output, now 4x the size:
make.out.txt

Ah, now I see actual errors:
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)

Now this is starting to make more sense. Looks like it's the same things as #118

@mzuranski
Copy link
Contributor Author

Initial indications are the fix in 118 works here too. Adding -fallow-invalid-boz -fallow-argument-mismatch to the FOPT line in Makeinc.linux64_gfortran_ubuntu appears to have done the trick...

Full line:
FOPT = -fallow-invalid-boz -fallow-argument-mismatch -fno-stack-protector -fno-second-underscore -fno-range-check -fd-lines-as-comments $(GEMINC) $(PYINC) -g -O

Unfortunately I ran out of disk space on my dinky little test environment, but before I did many programs were filling up the bin directory during make install. I'm going to try to confirm this works on another environment and will close this out if it works there too.

@mzuranski
Copy link
Contributor Author

Can confirm this worked on the other environment too.

@akrherz I'm not sure where your head is at with #118 these days, but adding those flags seem to clear the issue up here.

Speaking of issues, closing this one out as it's quasi-resolved and basically a duplicate of 118.

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

1 participant