- 积分
- 52
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-7-27
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2019-7-31 21:17:35
|
显示全部楼层
本帖最后由 benbenhepipi 于 2019-7-31 21:29 编辑
您好,我找到了log.compile,也找到了问题,是这样的情况:
make[1]: 进入目录“/home/hxm/WRFworking/Build_WRF/WPS/geogrid/src”
/bin/rm -f constants_module.o constants_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include constants_module.F > constants_module.f90
mpif90 -f90=gfortran -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c constants_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'constants_module.o' failed
您可以看到,由于gfortran: error: unrecognized command line option ‘-f90=gfortran’这个错误,导致 'constants_module.o' 没有生成,接下来是这样的:
make[1]: [constants_module.o] Error 1 (已忽略)
/bin/rm -f misc_definitions_module.o misc_definitions_module.mod
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_GEOGRID -DUSE_JPEG2000 -DUSE_PNG -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include misc_definitions_module.F > misc_definitions_module.f90
mpif90 -f90=gfortran -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c misc_definitions_module.f90 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_netcdf -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib_share -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_grib1 -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/external/io_int -I/home/hxm/WRFworking/Build_WRF/WPS/../WRF/inc -I/include
gfortran: error: unrecognized command line option ‘-f90=gfortran’
../../configure.wps:112: recipe for target 'misc_definitions_module.o' failed
一方面,上一步constants_module.o' 生成失败,导致make[1]: [constants_module.o] Error 1 (已忽略),同时,这个make过程中,再次出现了gfortran: error: unrecognized command line option ‘-f90=gfortran’,导致接下来十几个文件的生成都像这两个文件一样的失败了,到了最后exe生成时(我用geogrid.exe举例),就产生了这个结果:
gfortran: error: wrf_debug.o: 没有那个文件或目录
gfortran: error: bitarray_module.o: 没有那个文件或目录
gfortran: error: constants_module.o: 没有那个文件或目录
gfortran: error: module_stringutil.o: 没有那个文件或目录
gfortran: error: geogrid.o: 没有那个文件或目录
gfortran: error: gridinfo_module.o: 没有那个文件或目录
gfortran: error: hash_module.o: 没有那个文件或目录
gfortran: error: interp_module.o: 没有那个文件或目录
gfortran: error: list_module.o: 没有那个文件或目录
gfortran: error: llxy_module.o: 没有那个文件或目录
gfortran: error: misc_definitions_module.o: 没有那个文件或目录
gfortran: error: module_debug.o: 没有那个文件或目录
gfortran: error: module_map_utils.o: 没有那个文件或目录
gfortran: error: output_module.o: 没有那个文件或目录
gfortran: error: parallel_module.o: 没有那个文件或目录
gfortran: error: process_tile_module.o: 没有那个文件或目录
gfortran: error: proc_point_module.o: 没有那个文件或目录
gfortran: error: queue_module.o: 没有那个文件或目录
gfortran: error: smooth_module.o: 没有那个文件或目录
gfortran: error: source_data_module.o: 没有那个文件或目录
gfortran: error: unrecognized command line option ‘-f90=gfortran’
Makefile:13: recipe for target 'geogrid.exe' failed
我自己的分析是这样的,根本错误是gfortran: error: unrecognized command line option ‘-f90=gfortran’,这个error导致了每个文件都无法生成,同时也导致文件生成链断裂了,那些error1(已忽略)我认为就是文件生成链断裂产生的假错误,如果解决了根本错误,这些假错误自动就会消失,所以被忽略了。
所以麻烦您看下这到底是什么错误,网上搜不到解决方案。 |
|