Problems building executables

  1. Error: Dummy argument ‘datasetname’ with INTENT(IN) in variable definition context (actual argument to INTENT = OUT/INOUT) at (1)

  2. Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-3)

  3. Error: Rank mismatch in argument ‘fileindex’ at (1) (scalar and rank-1)

  4. Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).

  5. Error: Type mismatch in argument ‘field’ at (1); passed REAL(4) to INTEGER(4)

==================================================

執行 configure 時都正常
在compile的時候卻出現
Problems building executables, look for errors in the build log
build log 裡出現這幾種錯誤訊息
想問一下有甚麼解決的辦法

同問+1
這邊也遇上同樣的問題。
目前爬文找到的資訊是說好像是gfortran的舊版code問題?

有試過的解法是把netcdf-c跟netcdf-fortran裡面的bin、include、lib、share都移動到一個共同目錄netcdf,新建一個netcdf的module,並把$NETCDF設到那邊,然後裝35,這樣的話可以正常configure,但一樣會跑出同上的問題。

另外有個問題就是如果選用67,那連configure都不會過,會跳出以下錯誤
Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
arch/configure.defaults
NetCDF users note:
This installation of NetCDF supports large file support. To DISABLE large file
support in NetCDF, set the environment variable WRFIO_NCD_NO_LARGE_FILE_SUPPORT
to 1 and run configure again. Set to any other value to avoid this message.

Testing for NetCDF, C and Fortran compiler

One of compilers testing failed!
Please check your compiler

做到有點卡關,還請幫忙解惑,謝謝。

同學好,

mismatch 的問題來自新版的 gfortran 有更嚴格的語法要求,可以在編譯時加上以下參數避免問題

-fallow-argument-mismatch

我們已經將這個問題更新到文件上面了。