[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #RJB-698501]: Problems compiling netcdf-4 with pathscale



>
> I am having problems with make check on netcdf-4 compiled with
> pathscale (on Red Hat Linux).  The compile works fine.  I compiled
> hdf5-beta2 with
>
> ./configure --enable-hl --enable-shared --enable-fortran --prefix=/
> usr/local/hdf5
>
> and configured netcdf-4-beta1
>
> ./configure --enable-shared --enable-netcdf-4 --with-hdf5=/usr/local/
> hdf5 --prefix=/usr/local/netcdf4
>
> environmental variables for both:
>
> FC=pathf90
> F77=pathf90
>
>
> The error in make check is attached below.  I have tried obvious
> things, like trying beta1 of hdf5, and switching the FFLAGS (like to -
> DpgiFortran, as below) but nothing works.  I discovered by accident
> that it does work when not enabling netcdf-4.
>
> Any clues?
>
> -Rob
>
>
>
> $make check
> [...]
> make[2]: Leaving directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> ncdump'
> make[1]: Leaving directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> ncdump'
> Making check in nf_test
> make[1]: Entering directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> nf_test'
> make  nf_test tst_f77_v2 ftst_vars f90tst_vars ftest tst_f90
> make[2]: Entering directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> nf_test'
> /bin/sh ../libtool --tag=F77 --mode=link pathf90 -I../fortran -I/usr/
> local/hdf5/include -I../libsrc4    -I../f90 -DpgiFortran -L/usr/local/
> hdf5/lib    -o nf_test  test_get.o test_put.o nf_error.o nf_test.o
> test_read.o test_write.o util.o fortlib.o ../fortran/libnetcdff.la -
> lm ../libsrc4/libnetcdf.la   -lhdf5_hl -lhdf5
> libtool: link: pathf90 -I../fortran -I/usr/local/hdf5/include -I../
> libsrc4 -I../f90 -DpgiFortran -o .libs/nf_test test_get.o test_put.o
> nf_error.o nf_test.o test_read.o test_write.o util.o fortlib.o  -L/
> usr/local/hdf5/lib ../fortran/.libs/libnetcdff.so ../libsrc4/.libs/
> libnetcdf.so -L/home/rob/src/netcdf/netcdf-4.0-beta1/libsrc4 /usr/
> local/hdf5/lib/libhdf5_hl.so /usr/local/hdf5/lib/libhdf5.so -lz -lm -
> Wl,-rpath -Wl,/usr/local/netcdf4/lib -Wl,-rpath -Wl,/usr/local/hdf5/lib
> ../fortran/.libs/libnetcdff.so: undefined reference to
> `nf_inq_var_endian__'
> ../fortran/.libs/libnetcdff.so: undefined reference to
> `nf_def_var_endian__'
> ../fortran/.libs/libnetcdff.so: undefined reference to
> `nf_inq_var_fill__'
> ../fortran/.libs/libnetcdff.so: undefined reference to
> `nf_inq_compound_field__'
> ../fortran/.libs/libnetcdff.so: undefined reference to
> `nf_def_var_fill__'
> collect2: ld returned 1 exit status
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/home/rob/src/netcdf/netcdf-4.0-beta1/
> nf_test'
> make: *** [check-recursive] Error 1
>
>
>
>
> ----
> Rob Hetland, Associate Professor
> Dept. of Oceanography, Texas A&M University
> http://pong.tamu.edu/~rob
> phone: 979-458-0096, fax: 979-845-6331
>
>
>

Howdy!

Please send me the complete output of configure and make check, and also the
config.log file.

If you are re-doing the build to get this, please make sure your run "make
distclean" first.

Thanks,

Ed

Ticket Details
===================
Ticket ID: RJB-698501
Department: Support netCDF
Priority: Normal
Status: Open