爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3468|回复: 4

WPS4.0编译一直失败 请教一下各位大神

[复制链接]

新浪微博达人勋

发表于 2020-8-5 10:40:54 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
因为FNL资料更新原因,我想单独更新WPS-4.0,下载了libpng zlib jasper netcdf mpich 五件套,环境变量按照官方设定完成,我单独编译ungrib模块,编译Log如下所示。

( cd g2 ; make -i -r DEV_TOP="/md1200/zhli/Build_WRF/WPS-4.0" all ; ranlib  libg2_4.a )
make[2]: Entering directory `/md1200/zhli/Build_WRF/WPS-4.0/ungrib/src/ngl/g2'
Makefile:67: warning: overriding commands for target `.F.o'
/md1200/zhli/Build_WRF/WPS-4.0/configure.wps:112: warning: ignoring old commands for target `.F.o'
Makefile:72: warning: overriding commands for target `.f.o'
/md1200/zhli/Build_WRF/WPS-4.0/configure.wps:108: warning: ignoring old commands for target `.f.o'
Makefile:75: warning: overriding commands for target `.c.o'
/md1200/zhli/Build_WRF/WPS-4.0/configure.wps:104: warning: ignoring old commands for target `.c.o'
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gridtemplates.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 pdstemplates.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 drstemplates.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gribmod.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 realloc.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 intmath.f
In file intmath.f:26

      integer(kind=8), value :: ival                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:40

      integer(kind=4), value :: ival                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:54

      integer(kind=2), value :: ival                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:68

      integer(kind=1), value :: ival                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:82

      integer(kind=8), value :: i_in                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:127

      integer(kind=4), value :: i_in                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:167

      integer(kind=2), value :: i_in                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:202

      integer(kind=1), value :: i_in                                    
                    1
Error: Syntax error in data declaration at (1)
In file intmath.f:66

      function i1log2_1(ival)                                          
                           1
Error: Symbol 'ival' at (1) has no IMPLICIT type
In file intmath.f:24

      function i1log2_8(ival)                                          
                           1
Error: Symbol 'ival' at (1) has no IMPLICIT type
In file intmath.f:38

      function i1log2_4(ival)                                          
                           1
Error: Symbol 'ival' at (1) has no IMPLICIT type
In file intmath.f:52

      function i1log2_2(ival)                                          
                           1
Error: Symbol 'ival' at (1) has no IMPLICIT type
In file intmath.f:80

      function ilog2_8(i_in)                                            
                          1
Error: Symbol 'i_in' at (1) has no IMPLICIT type
In file intmath.f:165

      function ilog2_2(i_in)                                            
                          1
Error: Symbol 'i_in' at (1) has no IMPLICIT type
In file intmath.f:200

      function ilog2_1(i_in)                                            
                          1
Error: Symbol 'i_in' at (1) has no IMPLICIT type
In file intmath.f:125

      function ilog2_4(i_in)                                            
                          1
Error: Symbol 'i_in' at (1) has no IMPLICIT type
In file intmath.f:17

      module procedure i1log2_1                                         
                              1
Error: Ambiguous interfaces 'i1log2_1' and 'i1log2_2' in generic interface 'i1log2' at (1)
In file intmath.f:9

      module procedure ilog2_1                                          
                             1
Error: Ambiguous interfaces 'ilog2_1' and 'ilog2_2' in generic interface 'ilog2' at (1)
make[2]: [intmath.o] Error 1 (ignored)
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG addfield.F > addfield.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 addfield.f90
/bin/rm -f addfield.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 addgrid.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 addlocal.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getfield.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gb_info.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_getfld.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_free.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack1.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack2.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack3.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack4.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack5.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack6.f
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG gf_unpack7.F > gf_unpack7.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gf_unpack7.f90
/bin/rm -f gf_unpack7.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gettemplates.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getlocal.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getdim.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getpoly.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gribcreate.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gribend.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gribinfo.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 mkieee.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 rdieee.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 simpack.f
In file simpack.f:56

      use intmath                                                      
                                                                       1
Fatal Error: Can't open module file 'intmath.mod' for reading at (1): No such file or directory
make[2]: [simpack.o] Error 1 (ignored)
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 simunpack.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 cmplxpack.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 compack.f
In file compack.f:58

      use intmath                                                      
                                                                       1
Fatal Error: Can't open module file 'intmath.mod' for reading at (1): No such file or directory
make[2]: [compack.o] Error 1 (ignored)
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 misspack.f
In file misspack.f:61

      use intmath                                                      
                                                                       1
Fatal Error: Can't open module file 'intmath.mod' for reading at (1): No such file or directory
make[2]: [misspack.o] Error 1 (ignored)
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 pack_gp.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 reduce.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 comunpack.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 specpack.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 specunpack.f
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG jpcpack.F > jpcpack.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 jpcpack.f90
/bin/rm -f jpcpack.f90
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG jpcunpack.F > jpcunpack.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 jpcunpack.f90
/bin/rm -f jpcunpack.f90
gcc -c  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -I/md1200/zhli/Build_WRF/LIBRARIES/grib2/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_jpeg2000.c
gcc -c  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -I/md1200/zhli/Build_WRF/LIBRARIES/grib2/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngpack.F > pngpack.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 pngpack.f90
/bin/rm -f pngpack.f90
/usr/bin/cpp -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngunpack.F > pngunpack.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 pngunpack.f90
/bin/rm -f pngunpack.f90
gcc -c  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -I/md1200/zhli/Build_WRF/LIBRARIES/grib2/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_png.c
gcc -c  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -I/md1200/zhli/Build_WRF/LIBRARIES/grib2/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gbytesc.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 skgb.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 ixgb2.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getidx.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getg2i.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getg2ir.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2s.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2r.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2l.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2p.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 getgb2rp.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 putgb2.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 g2grids.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 gdt2gds.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 params.f
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 params_ecmwf.f
gcc -c  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -I/md1200/zhli/Build_WRF/LIBRARIES/grib2/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ mova2i.c
/bin/rm -f libg2_4.a
ar ru  libg2_4.a gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.o intmath.o addfield.o addgrid.o addlocal.o getfield.o gb_info.o gf_getfld.o gf_free.o gf_unpack1.o gf_unpack2.o gf_unpack3.o gf_unpack4.o gf_unpack5.o gf_unpack6.o gf_unpack7.o gettemplates.o getlocal.o getdim.o getpoly.o gribcreate.o gribend.o gribinfo.o mkieee.o rdieee.o simpack.o simunpack.o cmplxpack.o compack.o misspack.o pack_gp.o reduce.o comunpack.o specpack.o specunpack.o jpcpack.o jpcunpack.o enc_jpeg2000.o dec_jpeg2000.o pngpack.o pngunpack.o enc_png.o dec_png.o gbytesc.o skgb.o ixgb2.o getidx.o getg2i.o getg2ir.o getgb2s.o getgb2r.o getgb2l.o getgb2.o getgb2p.o getgb2rp.o putgb2.o g2grids.o gdt2gds.o params.o params_ecmwf.o mova2i.o
ar: creating libg2_4.a
ar: intmath.o: No such file or directory
make[2]: [libg2_4.a] Error 1 (ignored)
ranlib  libg2_4.a
ranlib: 'libg2_4.a': No such file
make[2]: [libg2_4.a] Error 1 (ignored)
make[2]: Leaving directory `/md1200/zhli/Build_WRF/WPS-4.0/ungrib/src/ngl/g2'
ranlib: 'libg2_4.a': No such file
make[1]: [g2/libg2_4.a] Error 1 (ignored)
ln -sf g2/libg2_4.a .
make[1]: Leaving directory `/md1200/zhli/Build_WRF/WPS-4.0/ungrib/src/ngl'
( cd src ; \
        if [ "" = yes ] ; then \
          WRF_DIR2=../WRFV3 ; \
        else \
          WRF_DIR2=/md1200/zhli/Build_WRF/WPS-4.0/../WRFV3 ; \
        fi ; \
        make -i -r ungrib.exe \
                WRF_DIR="$WRF_DIR2" \
                FC="gfortran" \
                CC="mpicc -cc=gcc " \
                CPP="/usr/bin/cpp -P -traditional" \
                FFLAGS="-ffree-form -O -fconvert=big-endian -frecord-marker=4" \
                CFLAGS="" \
                LDFLAGS="" \
                CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB" )
make[1]: Entering directory `/md1200/zhli/Build_WRF/WPS-4.0/ungrib/src'
Makefile:90: warning: overriding commands for target `.F.o'
../../configure.wps:112: warning: ignoring old commands for target `.F.o'
Makefile:95: warning: overriding commands for target `.c.o'
../../configure.wps:104: warning: ignoring old commands for target `.c.o'
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG misc_definitions_module.F > misc_definitions_module.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 misc_definitions_module.f90
/bin/rm -f debug_cio.o
mpicc -cc=gcc  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB  -c debug_cio.c
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG module_debug.F > module_debug.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 module_debug.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG module_stringutil.F > module_stringutil.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 module_stringutil.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG table.F > table.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 table.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG module_datarray.F > module_datarray.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 module_datarray.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG gridinfo.F > gridinfo.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 gridinfo.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG new_storage.F > new_storage.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 new_storage.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG filelist.F > filelist.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 filelist.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG ungrib.F > ungrib.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 ungrib.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG output.F > output.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 output.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG rrpr.F > rrpr.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 rrpr.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG rd_grib1.F > rd_grib1.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 rd_grib1.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG file_delete.F > file_delete.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 file_delete.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG datint.F > datint.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 datint.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB rd_grib2.F > rd_grib2.f90
gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4  rd_grib2.f90 -I. -I./ngl/g2
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG build_hdate.F > build_hdate.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 build_hdate.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG geth_newdate.F > geth_newdate.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 geth_newdate.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG geth_idts.F > geth_idts.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 geth_idts.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG swap.F > swap.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 swap.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG parse_table.F > parse_table.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 parse_table.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG gbytesys.F > gbytesys.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 gbytesys.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG gribcode.F > gribcode.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 gribcode.f90
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG read_namelist.F > read_namelist.f90
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 read_namelist.f90
/bin/rm -f cio.o
mpicc -cc=gcc  -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB  -c cio.c
/bin/rm -f libpgu.a
ar ru libpgu.a build_hdate.o geth_newdate.o geth_idts.o swap.o table.o parse_table.o gbytesys.o gribcode.o read_namelist.o cio.o
ar: creating libpgu.a
ranlib  libpgu.a
/bin/rm -f ungrib.exe
if [ -z  ] ; then \
                          gfortran -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
                                -L./ngl -lw3 -lg2_4 \
                                -L/md1200/zhli/Build_WRF/LIBRARIES/grib2/lib -ljasper -lpng -lz \
                                -L. -lpgu ; \
                        else \
                          gfortran -o ungrib.exe  misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o  \
                                ./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
                                -L/md1200/zhli/Build_WRF/LIBRARIES/grib2/lib -ljasper -lpng -lz \
                                libpgu.a ; \
                        fi
/usr/bin/ld: cannot find -lg2_4
collect2: ld returned 1 exit status
make[1]: [ungrib.exe] Error 1 (ignored)
make[1]: Leaving directory `/md1200/zhli/Build_WRF/WPS-4.0/ungrib/src'
if [ -h ungrib.exe ] ; then \
                /bin/rm -f ungrib.exe ; \
        fi ; \
        if [ -h ../ungrib.exe ] ; then \
                /bin/rm -f ../ungrib.exe ; \
        fi ; \
        if [ -e src/ungrib.exe ] ; then \
                ln -sf src/ungrib.exe . ; \
        fi

首先intmath部分一直有问题,在论坛也没有找到类似问题,而cannot find -lg2_4倒是找到了相关帖子,说是环境变量设置问题,我把我的环境变量全部用注释取消掉之后,发现编译的Log日志没有改变,所以问题可能是在环境变量的设置上,但是我是按着官方设定来的,看了论坛其他的贴子的环境变量设置方式也改过,依然没用。

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2020-8-5 11:44:51 | 显示全部楼层
在ungrib/src/ngl/g2路径下找到了intmath文件 本人不懂fortran 不知道哪里语法错误

24       function i1log2_8(ival)
25       implicit none
26       integer(kind=8), value :: ival
27       integer(kind=8)::i1log2_8
28       integer(kind=8), parameter :: one=1
29       if(ival+one<ival) then
30          i1log2_8=ilog2_8(ival)
31       else
32          i1log2_8=ilog2_8(ival+one)
33       endif
34       end function i1log2_8
35
36       ! ----------------------------------------------------------------
37
38       function i1log2_4(ival)
39       implicit none
40       integer(kind=4), value :: ival
41       integer(kind=4)::i1log2_4
42       integer(kind=4), parameter :: one=1
43       if(ival+one<ival) then
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 成长值: 0
发表于 2020-8-11 22:41:43 | 显示全部楼层
建议降级一下gfortran版本,或者用ifort试试
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-8-22 10:54:02 | 显示全部楼层
kermit 发表于 2020-8-11 22:41
建议降级一下gfortran版本,或者用ifort试试

我的gfortran已经是低版本了  Pgi我一直没找到
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-1-24 10:54:21 | 显示全部楼层
建议用ifort,论坛有2019年版本和许可
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表