Problem compiling geogrid with pgi

Setting up the SI part of the WRF.

Problem compiling geogrid with pgi

Postby dierkp » Thu Apr 17, 2008 5:36 pm

I am having problems compiling geogrid with pgi

PGC-W-0221-Redefinition of symbol BIG_ENDIAN (read_geogrid.c: 23)
PGC-W-0221-Redefinition of symbol LITTLE_ENDIAN (read_geogrid.c: 24)

Here is the compile.log and where I start to see errors:

Code: Select all
pgf90  -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o int
erp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process
_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
        /rime/home/dtpolzin/WRF3/WPS/../WRFV3/frame/pack_utils.o /rime/home/dtpolzin/WRF3/WPS/../WRFV3/frame/module_machine.o \
        /rime/home/dtpolzin/WRF3/WPS/../WRFV3/frame/module_internal_header_util.o \
        -I/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_grib1 \
        -I/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_grib_share \
        -I/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_int \
        -I/usr/local/netcdf-pg/include \
        -I/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_netcdf \
        -L/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_grib1 -lio_grib1 \
        -L/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_grib_share -lio_grib_share \
        -L/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_int -lwrfio_int \
        -L/rime/home/dtpolzin/WRF3/WPS/../WRFV3/external/io_netcdf -lwrfio_nf \
        -L/usr/local/netcdf-pg/lib -lnetcdf /usr/pgi/linux86-64/7.1/mpi/mpich/lib
File with unknown suffix passed to linker: /usr/pgi/linux86-64/7.1/mpi/mpich/lib
/usr/pgi/linux86-64/7.1/mpi/mpich/lib: file not recognized: Is a directory
make[1]: [geogrid.exe] Error 2 (ignored)
make[1]: Leaving directory `/rime/home/dtpolzin/WRF3/WPS/geogrid/src'
( cd src/ngl ; make -i -r DEV_TOP="/rime/home/dtpolzin/WRF3/WPS" CC="pgcc" FC="pgf90" RANLIB="echo" all )
make[1]: Entering directory `/rime/home/dtpolzin/WRF3/WPS/ungrib/src/ngl'
( cd w3 ; make -i -r DEV_TOP="/rime/home/dtpolzin/WRF3/WPS" all ; echo w3/libw3.a )
make[2]: Entering directory `/rime/home/dtpolzin/WRF3/WPS/ungrib/src/ngl/w3'


Here are my configure.wps settings
Code: Select all
# Settings for PC Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher, serial, NO GRIB2
#
COMPRESSION_LIBS        =
COMPRESSION_INC         =
FDEFS                   =
FC              =       pgf90
SFC             =       pgf90
FFLAGS          =       -Mfree -byteswapio -O
F77FLAGS        =       -Mfixed -byteswapio -O
FNGFLAGS        =       $(FFLAGS)
LDFLAGS         =
CC              =       pgcc
SCC             =       pgcc
CFLAGS          =       -O
CPP             =       /lib/cpp -C -P -traditional
CPPFLAGS        =       -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32
NCARG_LIBS2     =       -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
                        -L/usr/lib64 -lg2c
dierkp
 
Posts: 14
Joined: Thu Apr 17, 2008 3:23 pm

Re: Problem compiling geogrid with pgi

Postby graziano » Fri Apr 18, 2008 4:30 pm

For me is a problem with portland installation, but reason for failure is just what the compiler says:

File with unknown suffix passed to linker: /usr/pgi/linux86-64/7.1/mpi/mpich/lib
/usr/pgi/linux86-64/7.1/mpi/mpich/lib: file not recognized: Is a directory

Either check the CONFIGURE.WPS file for the variable MPI_LIB or unset the environment variable MPI_LIB.

Graziano.
graziano
 
Posts: 10
Joined: Thu Apr 17, 2008 11:24 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron