Description
I'm having an issue compiling WRF while following along with the docs. After successfully setting up the virtual cluster through the ParallelCluster UI, I am able to login build the compilers, successfully build NCL, but it dies when trying to compile WRF. I've done some troubleshooting and am stuck, so I've included my output from a simple recitation of the tutorial. I've attached the complete output of my attempt.
Interestingly, openssl-1.1.1n builds successfully for NCL but not for WRF (openssl-1.1.1o).
I apologize as I'm a novice user of Spack but find its capabilities exciting for future rollouts of virtual AWS clusters. In the past, I compiled all of the dependencies for WRF and other geophysical models (ROMS, SWAN, COAWST, etc) from scratch. Please let me know if there is any other information that would be helpful to troubleshoot, thanks!
module av
module load intelmpi
mpirun -V
export SPACK_ROOT=/shared/spack
git clone -b v0.18.1 -c feature.manyFiles=true https://github.com/spack/spack $SPACK_ROOT
echo "export SPACK_ROOT=/shared/spack" >> $HOME/.bashrc
echo "source \$SPACK_ROOT/share/spack/setup-env.sh" >> $HOME/.bashrc
source $HOME/.bashrc
pip3 install botocore boto3
spack mirror add aws-hpc-weather s3://aws-hpc-weather/spack/
spack buildcache keys --install --trust --force
spack install --no-cache [email protected]
spack load intel-oneapi-compilers
spack compiler find
spack unload
spack compilers
spack install --no-cache intel-oneapi-mpi+external-libfabric%intel
spack install ncl^[email protected]
spack install -j $(nproc) [email protected]%intel build_type=dm+sm ^intel-oneapi-mpi+external-libfabric
The main error output...
==> Installing parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4
==> No binary for parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4 found: installing from source
==> Warning: Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors
==> Fetching https://mirror.spack.io/_source-cache/archive/3e/3ef1411875b07955f519a5b03278c31e566976357ddfc74c2493a1076e7d7c74.tar.gz
==> No patches needed for parallel-netcdf
==> parallel-netcdf: Executing phase: 'autoreconf'
==> parallel-netcdf: Executing phase: 'configure'
==> parallel-netcdf: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
'make' '-j8' 'V=1'
5 errors found in build log:
730 /bin/sh ../../../libtool --tag=F77 --mode=compile /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-20
21.6.0-hnsm3uvui2iuwoyxu533fwtve4jywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c -o strerrorf.lo strerrorf.f
731 /bin/sh ../../../libtool --tag=F77 --mode=compile /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-20
21.6.0-hnsm3uvui2iuwoyxu533fwtve4jywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c -o strerrnof.lo strerrnof.f
732 /bin/sh ../../../libtool --tag=F77 --mode=compile /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-20
21.6.0-hnsm3uvui2iuwoyxu533fwtve4jywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c -o inq_libversf.lo inq_libversf.f
733 rm -f mpifnetcdf.h issyserrf.c xstrerrorf.c xstrerrnof.c xinq_libversf.c allf.c
734 ./buildiface -infile=../../../src/include/pnetcdf.h -deffile=./defs > allf.c
735 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c strerrnof.f -fPIC -o .libs/strerrnof.o
>> 736 perl: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
>> 737 make[3]: *** [mpifnetcdf.h] Error 127
738 make[3]: *** Waiting for unfinished jobs....
739 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c inq_libversf.f -fPIC -o .libs/inq_libversf.o
740 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c strerrorf.f -fPIC -o .libs/strerrorf.o
741 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c inq_libversf.f -o inq_libversf.o >/dev/null 2>&1
742 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c strerrnof.f -o strerrnof.o >/dev/null 2>&1
743 libtool: compile: /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/intel-oneapi-mpi-2021.6.0-hnsm3uvui2iuwoyxu533fwtve4j
ywnhj/mpi/2021.6.0/bin/mpif77 -fPIC -c strerrorf.f -o strerrorf.o >/dev/null 2>&1
744 make[3]: Leaving directory `/tmp/ec2-user/spack-stage/spack-stage-parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4/spack-
src/src/binding/f77'
>> 745 make[2]: *** [all-recursive] Error 1
746 make[2]: Leaving directory `/tmp/ec2-user/spack-stage/spack-stage-parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4/spack-
src/src/binding'
>> 747 make[1]: *** [all-recursive] Error 1
748 make[1]: Leaving directory `/tmp/ec2-user/spack-stage/spack-stage-parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4/spack-
src/src'
>> 749 make: *** [all-recursive] Error 1
See build log for details:
/tmp/ec2-user/spack-stage/spack-stage-parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4/spack-build-out.txt
==> Warning: Skipping build of wrf-4.3.3-q43kfj6xj25lbyd7tohsi7pfgg62l57f since parallel-netcdf-1.12.2-vbvawpeou2czrkpmfm24b3ra6yvnk7q4 failed
==> Installing openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws
==> Warning: download_tarball() was unable to download [email protected]%[email protected]~docs~shared certs=system arch=linux-amzn2-zen2 ^[email protected]%[email protected]+cxx~docs+stl patches=b231fcc arch=linux-amzn2-zen2 ^[email protected]%[email protected]~debug~pic+shared arch=linux-amzn2-zen2 ^[email protected]%[email protected] arch=linux-amzn2-zen2 ^[email protected]%[email protected] arch=linux-amzn2-zen2 ^[email protected]%[email protected] libs=shared,static arch=linux-amzn2-zen2 ^[email protected]%[email protected]~symlinks+termlib abi=none arch=linux-amzn2-zen2 ^[email protected]%[email protected]+cpanm+shared+threads arch=linux-amzn2-zen2 ^[email protected]%[email protected] arch=linux-amzn2-zen2 ^[email protected]%[email protected] arch=linux-amzn2-zen2 ^[email protected]%[email protected]+optimize+pic+shared patches=0d38234 arch=linux-amzn2-zen2 from any configured mirrors
==> openssl exists in binary cache but with different hash
==> No binary for openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws found: installing from source
==> Warning: Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors
==> Fetching https://mirror.spack.io/_source-cache/archive/93/9384a2b0570dd80358841464677115df785edb941c71211f75076d72fe6b438f.tar.gz
==> Ran patch() for openssl
==> openssl: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
'./config' '--prefix=/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws' '--openssldir=/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws/etc/openssl' '-I/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/zlib-1.2.12-bivduls2kbl5em3mewikzh3gcafam724/include' '-L/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/zlib-1.2.12-bivduls2kbl5em3mewikzh3gcafam724/lib' 'zlib' 'shared'
2 errors found in build log:
>> 4 /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/perl-5.34.1-mjhobm5lqoq7frdx4wz4fpu3ra3az3rs/bin/perl: error while loading
shared libraries: libimf.so: cannot open shared object file: No such file or directory
>> 5 /shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/perl-5.34.1-mjhobm5lqoq7frdx4wz4fpu3ra3az3rs/bin/perl: error while loading
shared libraries: libimf.so: cannot open shared object file: No such file or directory
6 This system (linux-x86_64) is not supported. See file INSTALL for details.
See build log for details:
/tmp/ec2-user/spack-stage/spack-stage-openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws/spack-build-out.txt
==> Warning: Skipping build of krb5-1.19.3-b4ksts5s3i5sdpcgakbh6pyqzoeytgdr since openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws failed
==> Warning: Skipping build of libtirpc-1.2.6-mq24tfptfpmruz4ike2jxkufu6zn7aak since krb5-1.19.3-b4ksts5s3i5sdpcgakbh6pyqzoeytgdr failed
==> Warning: Skipping build of cmake-3.23.1-gbsknahxsnoaxbqmsw5el6aphn2a2nz4 since openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws failed
==> Warning: Skipping build of jasper-3.0.3-xftwt2gr4bscvwlbnkv3ang3s6oyvm5h since cmake-3.23.1-gbsknahxsnoaxbqmsw5el6aphn2a2nz4 failed
==> Warning: Skipping build of hdf5-1.12.2-2ivulvnnsiymntes6bivudmqcalefers since cmake-3.23.1-gbsknahxsnoaxbqmsw5el6aphn2a2nz4 failed
==> Warning: Skipping build of netcdf-c-4.8.1-sd5rolyick3mou3nq3acahernwhl64xo since hdf5-1.12.2-2ivulvnnsiymntes6bivudmqcalefers failed
==> Warning: Skipping build of netcdf-fortran-4.5.4-z5oohwqemh2kt53ifzymzn2t5znfafj2 since netcdf-c-4.8.1-sd5rolyick3mou3nq3acahernwhl64xo failed
==> Warning: Skipping build of libjpeg-turbo-2.1.3-klvncicpz5ayt25dsjomdvh2q2y7qo7g since cmake-3.23.1-gbsknahxsnoaxbqmsw5el6aphn2a2nz4 failed
==> Error: wrf-4.3.3-q43kfj6xj25lbyd7tohsi7pfgg62l57f: Package was not installed
==> Error: Installation request failed. Refer to reported errors for failing package(s).
$ more /tmp/ec2-user/spack-stage/spack-stage-openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws/spack-build-out.txt
==> openssl: Executing phase: 'install'
==> [2022-12-01-16:14:23.069206] './config' '--prefix=/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/openssl-1.1.1o-7eigwum4w3arklmt
c3x63mi57secrbws' '--openssldir=/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/openssl-1.1.1o-7eigwum4w3arklmtc3x63mi57secrbws/etc/o
penssl' '-I/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/zlib-1.2.12-bivduls2kbl5em3mewikzh3gcafam724/include' '-L/shared/spack/opt
/spack/linux-amzn2-zen2/intel-2021.5.0/zlib-1.2.12-bivduls2kbl5em3mewikzh3gcafam724/lib' 'zlib' 'shared'
Operating system: x86_64-whatever-linux2
/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/perl-5.34.1-mjhobm5lqoq7frdx4wz4fpu3ra3az3rs/bin/perl: error while loading shared lib
raries: libimf.so: cannot open shared object file: No such file or directory
/shared/spack/opt/spack/linux-amzn2-zen2/intel-2021.5.0/perl-5.34.1-mjhobm5lqoq7frdx4wz4fpu3ra3az3rs/bin/perl: error while loading shared lib
raries: libimf.so: cannot open shared object file: No such file or directory
This system (linux-x86_64) is not supported. See file INSTALL for details.
[fullout.txt](https://github.com/aws-samples/aws-hpc-tutorials/files/10134090/fullout.txt)
[ui_template.txt](https://github.com/aws-samples/aws-hpc-tutorials/files/10134091/ui_template.txt)