Hello,
I have installed NCEPLIBS in a CentOS8 (AArch64) system and was trying to compile UPP when the linker produced the following error:
[ 86%] Linking Fortran executable ncep_post
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o): In function `__gfsio_module_MOD_gfsio_setrqst':
/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1896: undefined reference to `_gfortran_os_error_at'
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o): In function `__gfsio_module_MOD_gfsio_readrecv8':
/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1369: undefined reference to `_gfortran_os_error_at'
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o): In function `__gfsio_module_MOD_gfsio_readrecv4':
/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1316: undefined reference to `_gfortran_os_error_at'
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o): In function `__gfsio_module_MOD_gfsio_readrecvw34':
/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1262: undefined reference to `_gfortran_os_error_at'
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o): In function `__gfsio_module_MOD_gfsio_readrec8':
/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1209: undefined reference to `_gfortran_os_error_at'
/opt/praetorium/NCEP/gfsio-1.4.1/lib/libgfsio.a(gfsio_module.f.o):/opt/praetorium/NCEPLIBS/download/nceplibs-gfsio/src/gfsio_module.f:1158: more undefined references to `_gfortran_os_error_at' follow
/opt/praetorium/netcdf/lib/libnetcdff.so: undefined reference to `_gfortran_os_error_at@GFORTRAN_10'
collect2: error: ld returned 1 exit status
make[2]: *** [sorc/ncep_post.fd/CMakeFiles/ncep_post.dir/build.make:466: sorc/ncep_post.fd/ncep_post] Error 1
make[1]: *** [CMakeFiles/Makefile2:133: sorc/ncep_post.fd/CMakeFiles/ncep_post.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It's unclear (to me) whether the origin of the error is because the system is AArch64 architecture or the installation of UPP or NCEPLIBS. I guess that netcdf-fortran could also be but it's installed from source and hasn't caused any issue with other apps that are running fine. Thanks.
- 105 views