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

Enable compiling LISF on Cray/SLES 15.4/PrgEnv 8.3.3 using Intel 2022.2.1 compilers #1442

Merged

Conversation

jvgeiger
Copy link
Contributor

@jvgeiger jvgeiger commented Nov 1, 2023

Description

These changes address issues encountered when compiling LISF on narwhal after its upgrade to Cray/SLES 15.4/PrgEnv 8.3.3.

I replaced '-nomixed_str_len_arg' with '-nomixed-str-len-arg'.
The OS upgrade on narwhal changed the available low level RPC library.
The system no longer has a static version to compile into the HDF4
library.  You must now specify the RPC library in the LDFLAGS variable
(both when building the HDF4 library itself and when compiling LISF).

This OS upgrade is also missing a symbolic link to libtirpc.so.
This commit tweaks the use of the LDT_RPC, LIS_RPC, and LVT_RPC
environment variables.

If these environment variables are defined, then they must be set to the
full file name of the tirpc library (e.g., /lib64/libtirpc.so.3). Then
the build scripts will add this library to the LDFLAGS variable for
HDF4.  If these environment variables are not defined, then the build
scripts function as before (nothing new is added to the LDFLAGS variable
for HDF4).

Also see commit f50ddd2.
@dmocko
Copy link
Contributor

dmocko commented Nov 1, 2023

This also addresses Issue #911

@emkemp
Copy link
Contributor

emkemp commented Nov 2, 2023

Code compiles when using user_557ww.cfg. However, the new Intel C compiler objects to code in RDHM and one of the VIC LSMs (missing function prototypes). Since these are not used by USAF and will not be used on Narwhal, I will go ahead and approve the pull request.

@emkemp emkemp merged commit 4aad1bf into NASA-LIS:support/lisf-557ww-7.5 Nov 2, 2023
@jvgeiger jvgeiger deleted the fix/compiling_intel_sles15.4 branch November 8, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants