WRF compile errors
2016-02-07 09:14
836 查看
The errors met in WRF/Chem compile process and solution.
Error 1:
Situation: ./compile em_real
Error: wrf_io.f:(.text 0x16a2): undefined reference to `nf_inq_varid_’
…
Solution: vim configure.wrf
change the line
to
Another solution:
Check if the NETCDFPATH in configure.wrf is right or not:
Error 2
ifort catastrophic error **internal compiler error segmentation violation signal raised**
Solution
Change to the directory where the compile error file locates, and run the compile command in the compile.log file with replacement of -O3 by -O2.
Ref: https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/559320
“It fails on the -O3 optimization, run the compile using -O3 and then change to -O2 in configure.wrf and compile the rest with that. Or update your compiler.”
Error 1:
Situation: ./compile em_real
Error: wrf_io.f:(.text 0x16a2): undefined reference to `nf_inq_varid_’
…
Solution: vim configure.wrf
change the line
LIB_EXTERNAL = \ $(WRF_SRC_ROOT_DIR)/external/io_netcdf/libwrfio_nf.a -L/home/kfu/netcdf/lib -lnetcdff -lnetcdf
to
LIB_EXTERNAL = \ $(WRF_SRC_ROOT_DIR)/external/io_netcdf/libwrfio_nf.a -L/home/kfu/netcdf/lib -lnetcdf
Another solution:
Check if the NETCDFPATH in configure.wrf is right or not:
NETCDFPATH = /usr/intel/netcdf/
Error 2
ifort catastrophic error **internal compiler error segmentation violation signal raised**
Solution
Change to the directory where the compile error file locates, and run the compile command in the compile.log file with replacement of -O3 by -O2.
Ref: https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/559320
“It fails on the -O3 optimization, run the compile using -O3 and then change to -O2 in configure.wrf and compile the rest with that. Or update your compiler.”
相关文章推荐
- phpmyadmin出现Cannot start session without errors问题解决方法
- angularjs指令中的compile与link函数详解
- 使用coffeescript-maven-plugin,实时监控coffee文件的编译,只需一步配置
- 从源码编译DiyDrones MissionPlanner 1.2.95.0
- Compile gdbserver for Android(gdb-7.1)
- ExtMail Solution HOWTO for Linux
- 3. 异常块结构
- Exchange 2010 - BareLinefeedsAreIllegal error when journaling to external box
- max_connect_errors-MYSQL错误解决
- 后缀的意思
- ip 命令 和ifconfig 命令 删除IP
- Let's Try and Break the Vicious Circle with Sport
- On Window 7 to install DB2 error summarize
- Hadoop MapReduce Job的两种编译方式
- 蛋疼的cross compile
- Installing WRF/Chem on CentOS 7(转载修正)
- How to compile GTK+-3.14
- 手动编译Clojure
- Divein_day04 vi 下了解代码解析过程
- Solution to CLRS Chapter 2