助教們好,不好意思打擾了,我已經安裝了Dependencies,目前在編譯的WRF程式的時候會遇到一些DSO missing 的錯誤,以下是編譯時出現的錯誤訊息:
(上略)
echo removing external declaration of iargc for gfortran ; \
/usr/bin/cpp -P -nostdinc -P -traditional-cpp -I/home/u7807382/wrf-hw/opt/netcdf-c-4.7.3//include -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ;\
else \
/usr/bin/cpp -P -nostdinc -P -traditional-cpp -I/home/u7807382/wrf-hw/opt/netcdf-c-4.7.3//include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \
fi
time mpif90 -f90=ifort -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -xHost -fp-model fast=2 -no-heap-arrays -no-prec-div -no-prec-sqrt -fno-common -xCORE-AVX2 -real-size 32 -i4 -qopenmp -fpp -auto -c -I/home/u7807382/wrf-hw/opt/netcdf-c-4.7.3//include -I../ioapi_share diffwrf.f
0.56user 0.10system 0:00.72elapsed 92%CPU (0avgtext+0avgdata 101016maxresident)k
0inputs+648outputs (0major+30602minor)pagefaults 0swaps
diffwrf io_netcdf is being built now.
ld: /home/u7807382/wrf-hw/opt/netcdf-c-4.7.3//lib/libnetcdf.a(libnchdf5_la-nc4hdf.o): undefined reference to symbol 'H5DSattach_scale'
/home/u7807382/wrf-hw/opt/hdf5-1.8.21/lib/libhdf5_hl.so.10: error adding symbols: DSO missing from command line
real 0m0.911s
user 0m0.433s
sys 0m0.222s
make[2]: [diffwrf] Error 1 (ignored)
make[2]: Leaving directory `/home/u7807382/wrf-hw/build/WRF_ISC21/external/io_netcdf'
make[2]: Entering directory `/home/u7807382/wrf-hw/build/WRF_ISC21/external/io_netcdf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/u7807382/wrf-hw/build/WRF_ISC21/external/io_netcdf'
SKIPPING PIO BUILD make -i -r NETCDFPATH= FC=ifort -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -xHost -fp-model fast=2 -no-heap-arrays -no-prec-div -no-prec-sqrt -fno-common -xCORE-AVX2 -real-size 32 -i4 -qopenmp -fpp -auto RANLIB=ranlib CPP=/usr/bin/cpp -P -nostdinc LDFLAGS=-qopenmp -fpp -auto -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -xHost -fp-model fast=2 -no-heap-arrays -no-prec-div -no-prec-sqrt -fno-common -xCORE-AVX2 -ip -xHost -fp-model fast=2 -no-prec-div -no-prec-sqrt -ftz -align all -fno-alias -fno-common -xCORE-AVX2 TRADFLAG=-traditional-cpp ESMF_IO_LIB_EXT=-L/home/u7807382/wrf-hw/build/WRF_ISC21/external/esmf_time_f90 -lesmf_time LIB_LOCAL= ESMF_MOD_DEPENDENCE=/home/u7807382/wrf-hw/build/WRF_ISC21/external/esmf_time_f90/module_utility.o AR=INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR
(下略)
我在opt中檢查hdf5是否有正確安裝,但是我在hdf5的lib中有找到libhdf5_hl.so.10(錯誤訊息中missing的檔案) 。以下是搜尋的結果
[u7807382@lgn303 lib]$ ls -al | grep libhdf5_hl.so.10
lrwxrwxrwx 1 u7807382 TRI113244 20 Jan 31 19:48 libhdf5_hl.so -> libhdf5_hl.so.10.2.2
lrwxrwxrwx 1 u7807382 TRI113244 20 Feb 4 15:17 libhdf5_hl.so.10 -> libhdf5_hl.so.10.2.2
-rwxr-xr-x 1 u7807382 TRI113244 148136 Jan 31 19:48 libhdf5_hl.so.10.2.2
想要請問助教這個錯誤是因為安裝Dependency 時的錯誤導致的嗎,想請問可能的解決方法?
謝謝助教,感激不盡!