wrf-model / WRF

The official repository for the Weather Research and Forecasting (WRF) model
Other
1.18k stars 658 forks source link

Intel LLVM compilers need to build WRF twice to get to install #1992

Closed HathewayWill closed 1 month ago

HathewayWill commented 5 months ago

Describe the bug When using the new intel LLVM compilers there is a linker error in the module files that causes WRF to not be built.

If you compile a second time the linkers are found and wrf can be installed.

To Reproduce Steps to reproduce the behavior: see shell script in zip file

Expected behavior

./compile -j $CPU_HALF_EVEN em_real 2>&1 | tee compile.wrf1.log

should build all the .exe files however you have to run this command again ./compile -j $CPU_HALF_EVEN em_real 2>&1 | tee compile.wrf2.log to get all the exe files to build.

Attachments Intel LLVM.zip

MicroTed commented 5 months ago

Does it work correctly on the first build if it uses only one thread ( -j 1 )? If so, maybe there is a dependency that isn't correct. (Was there an error about which module it didn't find?)

HathewayWill commented 5 months ago

Does it work correctly on the first build if it uses only one thread ( -j 1 )? If so, maybe there is a dependency that isn't correct. (Was there an error about which module it didn't find?)

I'll have to rebuild it to double check that. Might be a few days

HathewayWill commented 4 months ago

Does it work correctly on the first build if it uses only one thread ( -j 1 )? If so, maybe there is a dependency that isn't correct. (Was there an error about which module it didn't find?)

it did not