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

[netCDF #FDG-185394]: install problems with netcdf 3.6.2 on RHEL4 with f95 (nag)



> 
> Hi,
> 
> I've encountered this bug then running the checks during the install.
> 
> Here's a script that reproduces the bug:
> 
> snip---
> #!/bin/bash
> set -ex
> unset LDFLAGS LD_LIBRARY_PATH
> V=3.6.2
> TB=netcdf-${V}.tar.gz
> URL=ftp://ftp.unidata.ucar.edu/pub/netcdf/${TB}
> if ! gzip -t /tmp/${TB}; then
> rm -f /tmp/${TB};
> sleep 2
> wget -O /tmp/${TB} ${URL}
> fi
> rm -rf /tmp/netcdf
> mkdir -p /tmp/netcdf
> tar -C /tmp/netcdf -xzf /tmp/${TB}
> cd /tmp/netcdf/netcdf-${V}
> export
> LD_LIBRARY_PATH=/usr/local/oracle_10/lib:/usr/lib/X11:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64:/usr/lib:/usr/lib64
> export
> PATH=/usr/local/oracle_10/bin:/usr/local/bin:/usr/bin/X11:/bin:/sbin:/usr/sbin:/usr/geos/bin:/usr/bin:/usr/ucb:/usr/share/gmt-4.1.1/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/kerberos/bin
> export FC=f95
> export FFLAGS="-O -dusty -w -DNAGf90Fortran "
> export F90=f95
> export F90FLAGS="-O -w=unused -mismatch_all -DNAGf90Fortran -D__GNUC__"
> export CPPFLAGS="-DNAGf90Fortran "
> ./configure --disable-cxx  --prefix=/tmp/netcdf/install/usr/
> --enable-shared --enable-separate-fortran --enable-docs-install
> make
> make check
> make install
> snip---
> 
> What happens is that during the "make check" this error appears:
> 
> snip---
> /bin/sh ../libtool --tag=F77 --mode=link f95   -I../libsrc -I../f90 -O
> -dusty -w -DNAGf90Fortran    -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  ../libsrc/libnetcdf.la
> libtool: link: f95 -I../libsrc -I../f90 -O -dusty -w -DNAGf90Fortran -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  ../fortran/.libs/libnetcdff.so -lm
> ../libsrc/.libs/libnetcdf.so -Wl,-rpath -Wl,/tmp/netcdf/install/usr//lib
> gcc: /tmp/netcdf/install/usr//lib: No such file or directory
> gcc: unrecognized option `-rpath'
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/tmp/netcdf/netcdf-3.6.2/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/tmp/netcdf/netcdf-3.6.2/nf_test'
> make: *** [check-recursive] Error 1
> fgibbins@geosl548 netcdf-3.6.0 $
> snip---
> 
> It looks like the --prefix option's value is incorrectly being passed to
> f95 as a linker option.
> 
> Yours
> Faye
> 
> --
> ---------------------------------------------------------
> Faye Gibbins, Computing Officer (Infrastructure Services)
> GeoS KB; Linux, Unix, Security and Networks; 0131 6506426
> ---------------------------------------------------------
> 
> 

Howdy Faye!

I see in your output:
> gcc: /tmp/netcdf/install/usr//lib: No such file or directory
> gcc: unrecognized option `-rpath'

Does the directory /tmp/netcdf/install/usr exist?

(Also, can you try specifying it without the trailing backslash? That is, like 
this:
--prefix=/tmp/netcdf/install/usr)

Please let me know if this fixes your problem.

Thanks!

Ed

Ticket Details
===================
Ticket ID: FDG-185394
Department: Support netCDF
Priority: Normal
Status: Closed