Unidata / gempak

Analysis and product generation for meteorological data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gempak won't make binaries on Ubuntu 22.04 LTS

mzuranski opened this issue · comments

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.

Output from make install: install.log.txt

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

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

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.

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.