- 积分
- 271
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-13
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 奇迹一哥 于 2021-3-14 09:50 编辑
以下是我的报错;请问是我的路径设置问题呢 还是编译器版本问题呢
- (cd MPP; make -f Makefile.NoahMP)
- make[1]: Entering directory '/home/wxy/Build_WRF/HRLDAS/hrldas/MPP'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/wxy/Build_WRF/HRLDAS/hrldas/MPP'
- (cd Utility_routines; make)
- make[1]: Entering directory '/home/wxy/Build_WRF/HRLDAS/hrldas/Utility_routines'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/wxy/Build_WRF/HRLDAS/hrldas/Utility_routines'
- (cd ../wrf/phys; make)
- make[1]: Entering directory '/home/wxy/Build_WRF/HRLDAS/wrf/phys'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/wxy/Build_WRF/HRLDAS/wrf/phys'
- (cd IO_code; make)
- make[1]: Entering directory '/home/wxy/Build_WRF/HRLDAS/hrldas/IO_code'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/wxy/Build_WRF/HRLDAS/hrldas/IO_code'
- (cd run; make)
- make[1]: Entering directory '/home/wxy/Build_WRF/HRLDAS/hrldas/run'
- echo " -Wl,-rpath, -L -lhdf5 -lz"
- -Wl,-rpath, -L -lhdf5 -lz
- /opt/intel/oneapi/compiler/2021.1.2/linux/bin/intel64/ifort -o hrldas.exe -I../IO_code -I../../wrf/phys ../IO_code/main_hrldas_driver.o ../IO_code/module_hrldas_netcdf_io.o ../../wrf/phys/module_sf_noahmpdrv.o ../../wrf/phys/module_sf_noahmplsm.o ../../wrf/phys/module_sf_noahmp_glacier.o ../../wrf/phys/module_sf_noahmp_groundwater.o ../../wrf/phys/module_sf_gecros.o ../../wrf/phys/module_sf_urban.o ../../wrf/phys/module_sf_bep.o ../../wrf/phys/module_sf_bem.o ../../wrf/phys/module_sf_bep_bem.o ../Utility_routines/module_wrf_utilities.o ../Utility_routines/module_model_constants.o ../Utility_routines/module_date_utilities.o ../Utility_routines/kwm_string_utilities.o ../Utility_routines/module_ra_gfdleta.o ../IO_code/module_NoahMP_hrldas_driver.o ../MPP/mpp_land.o ../MPP/CPL_WRF.o -L/home/wxy/Build_WRF/LIBRARIES/netcdf/lib -lnetcdf -lnetcdff
- ld: /opt/intel/oneapi/compiler/2021.1.2/linux/bin/intel64/../../compiler/lib/intel64_lin/for_main.o: in function `main':
- for_main.c:(.text+0x2e): undefined reference to `MAIN__'
- make[1]: *** [Makefile:47: hrldas.exe] Error 1
- make[1]: Leaving directory '/home/wxy/Build_WRF/HRLDAS/hrldas/run'
- make: *** [Makefile:10: all] Error 2
复制代码
已解决,稀里糊涂就编译出来了···以下是我的 user_build_option配置(之前 f90、CC和CPP都用的Intel编译器报错,现在只有f90用intel ,其他的都用gcc套件,好像就编译过了)
netcdf使用的官网文档并行编译
- NETCDF-C
- https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html
- NETCDF-FORTRAN
- https://www.unidata.ucar.edu/software/netcdf/docs/building_netcdf_fortran.html
复制代码- #=============================================================================================
- # Options for Linux with Intel Fortran MPI
- #=============================================================================================
- COMPILERF90 = mpiifort
- MPPFLAG = YES
- FREESOURCE = -free
- F90FLAGS = -convert big_endian -g -O0 -fpe0
- MODFLAG = -I ../MPP
- HYDRO_LIB = ../MPP/mpp_land.o ../MPP/CPL_WRF.o
- LDFLAGS =
- CPP = cpp
- CPPFLAGS = -P -traditional -DMPP_LAND # -DSPATIAL_SOIL
- LIBS =
- LIBJASPER = -ljpeg -L/home/wxy/Build_WRF/LIBRARIES/grib2/lib -ljasper
- INCJASPER = -I/home/wxy/Build_WRF/LIBRARIES/grib2/include
- NETCDFMOD = -I/home/wxy/Build_WRF/LIBRARIES/netcdf/include
- NETCDFLIB = -L/home/wxy/Build_WRF/LIBRARIES/netcdf/lib -lnetcdf -lnetcdff
- BZIP2 = NO
- BZIP2_INCLUDE = -I/usr/include
- BZIP2_LIB = -L/usr/lib64 #-lbz2
- RM = rm -f
- CC = cc
复制代码
|
|