- 积分
- 45
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 sama 于 2015-4-23 10:36 编辑
各位大大,我用的PGI编译器,NETCDF4.1.3,在编译WRF3.4.1时,WPS这一步一直不出现ungrib,我把log文件他贴出来,麻烦大家帮我分析分析
PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [enc_jpeg2000.o] Error 2 (ignored)
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
PGC-S-0040-Illegal use of symbol, __INT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-S-0040-Illegal use of symbol, __INT_LEAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-S-0040-Illegal use of symbol, __INT_LEAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)
PGC-S-0040-Illegal use of symbol, __UINT_FAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 76)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 76)
PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [dec_jpeg2000.o] Error 2 (ignored)
/lib/cpp -C -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngpack.F > pngpack.f90
pgf90 -c -Mfixed -byteswapio -O pngpack.f90
/bin/rm -f pngpack.f90
/lib/cpp -C -P -traditional -DUSE_JPEG2000 -DUSE_PNG pngunpack.F > pngunpack.f90
pgf90 -c -Mfixed -byteswapio -O pngunpack.f90
/bin/rm -f pngunpack.f90
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ enc_png.c
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
pgf90 -c -Mfixed -byteswapio -O gbytesc.f
pgf90 -c -Mfixed -byteswapio -O skgb.f
pgf90 -c -Mfixed -byteswapio -O g2grids.f
pgf90 -c -Mfixed -byteswapio -O gdt2gds.f
pgf90 -c -Mfixed -byteswapio -O params.f
pgf90 -c -Mfixed -byteswapio -O params_ecmwf.f
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/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 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: enc_jpeg2000.o: No such file or directory
make[2]: [libg2_4.a] Error 1 (ignored)
echo libg2_4.a
libg2_4.a
make[2]: Leaving directory `/home/program/WPS/ungrib/src/ngl/g2'
libg2_4.a
ln -sf g2/libg2_4.a .
make[1]: Leaving directory `/home/program/WPS/ungrib/src/ngl'
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/program/WPS/../WRFV3 ; \
fi ; \
make -i -r ungrib.exe \
WRF_DIR="$WRF_DIR2" \
FC="pgf90" \
CC="mpicc -cc=pgcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-Mfree -byteswapio -O" \
CFLAGS="-O" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -D_UNGRIB" )
if [ -z ] ; then \
pgf90 -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/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
-L. -lpgu ; \
else \
pgf90 -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/usr/local/JASPER/lib -ljasper -lpng -lpng16 -lz \
libpgu.a ; \
fi
/usr/bin/ld: cannot find -lg2_4
make[1]: [ungrib.exe] Error 2 (ignored)
make[1]: Leaving directory `/home/program/WPS/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
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [enc_jpeg2000.o] Error 2 (ignored)
pgcc -c -O -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -I/usr/local/JASPER/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_jpeg2000.c
PGC-S-0040-Illegal use of symbol, __INT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 60)
PGC-S-0040-Illegal use of symbol, __INT_LEAST16_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 61)
PGC-S-0040-Illegal use of symbol, __INT_LEAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 62)
PGC-S-0040-Illegal use of symbol, __INT_LEAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 63)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 63)
PGC-S-0040-Illegal use of symbol, __UINT_LEAST8_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 64)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 64)
PGC-S-0040-Illegal use of symbol, __UINT_FAST32_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 77)
PGC-S-0040-Illegal use of symbol, __UINT_FAST64_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 78)
PGC-S-0040-Illegal use of symbol, __INTMAX_TYPE__ (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-W-0156-Type not specified, 'int' assumed (/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint-gcc.h: 91)
PGC-S-0040-Illegal use of symbol, __UINTMAX_TYPE__ (/usr/include/bits/fcntl.h: 92)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/bits/fcntl.h: 92)
PGC/x86-64 Linux 9.0-1: compilation completed with severe errors
make[2]: [dec_jpeg2000.o] Error 2 (ignored)
/bin/rm -f libg2_4.a
ar ru libg2_4.a gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.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: enc_jpeg2000.o: No such file or directory
make[2]: [libg2_4.a] Error 1 (ignored)
echo libg2_4.a
libg2_4.a
make[2]: Leaving directory `/home/program/WPS/ungrib/src/ngl/g2'
libg2_4.a
ln -sf g2/libg2_4.a .
相应的configure.wps文件如下:
# configure.wps
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults, the preamble, and the postamble -
# then rerun configure.
#
.SUFFIXES: .F .f .c .o
SHELL = /bin/sh
NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
-L/usr/lib -lX11
NCARG_LIBS2 = # May be overridden by architecture specific value below
FDEFS = -DUSE_JPEG2000 -DUSE_PNG
# Listing of options that are usually independent of machine type.
# When necessary, these are over-ridden by each architecture.
ARFLAGS =
PERL = perl
RANLIB = echo
WRF_DIR = ../WRFV3
WRF_INCLUDE = -I$(WRF_DIR)/external/io_netcdf \
-I$(WRF_DIR)/external/io_grib_share \
-I$(WRF_DIR)/external/io_grib1 \
-I$(WRF_DIR)/external/io_int \
-I$(WRF_DIR)/inc
WRF_LIB = -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
-L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
-L$(WRF_DIR)/external/io_int -lwrfio_int \
-L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
-L$(NETCDF)/lib -lnetcdff -lnetcdf
#### Architecture specific settings ####
COMPRESSION_LIBS = # intentionally left blank, fill in COMPRESSION_LIBS below
COMPRESSION_INC = # intentionally left blank, fill in COMPRESSION_INC below
#
# Settings for Linux x86_64, PGI compiler (dmpar_NO_GRIB2)
#
#
COMPRESSION_LIBS = -L/usr/local/grib2/lib -ljasper -lpng -lpng16 -lz
COMPRESSION_INC = -I/usr/local/grib2/include
FDEFS =
NCARG_LIBS2 = -L${PGI}/linux86-64/9.0-1/lib -lpgftnrtl -lpgc \
-L/usr/lib/gcc/x86_64-redhat-linux/4.5.1 -lg2c
SFC = pgf90
SCC = pgcc
DM_FC = mpif90 -f90=pgf90
DM_CC = mpicc -cc=pgcc
FC = $(DM_FC)
CC = $(DM_CC)
LD = $(FC)
FFLAGS = -Mfree -byteswapio -O
F77FLAGS = -Mfixed -byteswapio -O
FCSUFFIX =
FNGFLAGS = $(FFLAGS)
LDFLAGS =
CFLAGS = -O
CPP = /lib/cpp -C -P -traditional
CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI
ARFLAGS =
CC_TOOLS =
########################################################################################################################
#
# Macros, these should be generic for all machines
LN = ln -sf
MAKE = make -i -r
RM = /bin/rm -f
CP = /bin/cp
AR = ar ru
.IGNORE:
.SUFFIXES: .c .f .F .o
# There is probably no reason to modify these rules
.c.o:
$(RM) $@
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
.f.o:
$(RM) $@ $*.mod
$(FC) $(F77FLAGS) -c $< $(WRF_INCLUDE)
.F.o:
$(RM) $@ $*.mod
$(CPP) $(CPPFLAGS) $(FDEFS) $(WRF_INCLUDE) $< > $*.f90
$(FC) $(FFLAGS) -c $*.f90 $(WRF_INCLUDE)
# $(RM) $*.f90
我的/root/.bashrc文件配置如下
17 export PGI=/usr/local/pgi/linux86-64/9.0-1/
18 export LM_LICENSE_FILE=/usr/local/pgi/license.dat
19 export PGI_LIB=$PGI/lib
20 export PGI_INC=$PGI/include
21 export PATH=$PATH:$PGI/bin
23 export MPI=/usr/local/mpi
24 export MPICH_INC=/usr/local/mpi/include
25 export MPICH_LIB=/usr/local/mpi/lib
26 export PATH=$PATH:$MPI/bin
27
28
29 export NETCDF=/usr/local/netcdf
30 export NETCDF_LIB=/usr/local/netcdf/lib
31 export NETCDF_INC=/usr/local/netcdf/include
32 export PATH=$PATH:$NETCDF/bin
33
34 export NCARG_ROOT=/usr/local/ncl
35 export NCARG_LIB=/usr/local/ncl/lib
36 export NCARG_INC=/usr/local/ncl/include
37 export PATH=$PATH:$NCARG_ROOT/bin
54 #zlib
55 export ZLIB_HOME=/usr/local/zlib
56 export LD_LIBRARY_PATH=$ZLIB_HOME/lib:$LD_LIBRARY_PATH
57
58 #libpng
59 export LIBPNG_HOME=/usr/local/libpng
60 export LIBPNGLIB=/usr/local/libpng/lib
61 export LIBPNGINC=/usr/local/libpng/include
62
63
64 #JASPER
65 export JASPER=/usr/local/JASPER
66 export JASPERLIB=/usr/local/JASPER/lib
67 export JASPERINC=/usr/local/JASPER/include
还望大家不吝赐教啊,纠结好久了,谢谢
|
|