JCSDA / spack-stack

Creative Commons Zero v1.0 Universal
27 stars 45 forks source link

ifort builds fail on gaea c5 #1362

Open AlexanderRichert-NOAA opened 4 hours ago

AlexanderRichert-NOAA commented 4 hours ago

Describe the bug On the head of develop, the error loading plugin: libimf.so: cannot open shared object file: No such file or directory ifort error is occurring.

To Reproduce Clone head of develop, create an empty environment, and install, e.g., bufr or openblas.

Expected behavior

System: gaea c5 (gaea58)

climbfuji commented 4 hours ago

isn't that a case for the usual compiler - env - prepend-path workaround we've been using for years on several machines?

AlexanderRichert-NOAA commented 4 hours ago

Yep

RatkoVasic-NOAA commented 4 hours ago

@AlexanderRichert-NOAA, what change is needed, how it was done before?

AlexanderRichert-NOAA commented 3 hours ago

See for example discover and derecho's compilers.yaml, where for Intel, there's an LD_LIBRARY_PATH prepend_path setting, which uses a path ending with 'intel64_lin' (which contains libimf.so). @climbfuji do you remember if there's a reason we didn't also add it to extra_rpaths?

climbfuji commented 3 hours ago

I don't remember. Presumably because it works ;-)

AlexanderRichert-NOAA commented 3 hours ago

I also ran into an issue on gaea just now where it wants libfabric, even though it's a serial code. Seemingly relatedly, I can see -lmpifort_intel in the icc arguments, I'm not sure where it's coming from.

climbfuji commented 3 hours ago

cray compiler wrappers maybe?