[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)



> Unidata netCDF Support wrote:
> >> Hi,
> >>
> >> Furthermore more if I create the directory /tmp/netcdf/install/usr/lib
> >> before hand (rather than the prefix directory in the tests below) it
> >> still fails but this time the error is:
> >>
> >> snip--
> >> /tmp/netcdf/install/usr//lib: file not recognized: Is a directory
> >> collect2: ld returned 1 exit status
> >> snip--
> >>
> >> Yours
> >> Faye
> >>
> >

Hmmmm...

Could you do a "make distclean", and then run "configure 
--prefix=/tmp/netcdf/install/usr" and "make check install" and send me all the 
output of both?

Also send me the resulting config.log file.

Please leave the directory in existance when doing this (i.e. don't rm the 
/tmp/netcdf directory, just leave it there). It needs to exist before "make 
install" will work.

Thanks,

Ed
> > Howdy Faye!
> >
> > Please send me the output from the following:
> >
> > ls -l /tmp/netcdf/install
> >
> > Thanks,
> >
> > Ed
> >
> > Ticket Details
> > ===================
> > Ticket ID: FDG-185394
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> Hi,
> 
> Sorry for the delay getting back to you.
> 
> Here is the output when I create the directory before the
> "./configure....":
> 
> snip---
> rm -rf /tmp/netcdf
> ..
> ..
> mkdir -p /tmp/netcdf/install/usr/lib
> ./configure --disable-cxx  --prefix=/tmp/netcdf/install/usr
> --enable-shared --enable-separate-fortran --enable-docs-install
> make
> make check
> make install
> ...
> ...
> 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: unrecognized option `-rpath'
> /tmp/netcdf/install/usr/lib: file not recognized: Is a directory
> collect2: ld returned 1 exit status
> 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@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install
> total 8
> drwx------  3 fgibbins glg 4096 Apr 19 08:31 usr
> fgibbins@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install/usr
> total 8
> drwx------  2 fgibbins glg 4096 Apr 19 08:31 lib
> fgibbins@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install/usr/lib
> total 0
> fgibbins@geosd507 netcdf-3.6.0 $
> snip---
> 
> And here is the output when don't create the /tmp/netcdf/install/usr/lib
> directory before the "./configure ...."
> 
> snip---
> rm -rf /tmp/netcdf
> ..
> ..
> #mkdir -p /tmp/netcdf/install/usr/lib
> ./configure --disable-cxx  --prefix=/tmp/netcdf/install/usr
> --enable-shared --enable-separate-fortran --enable-docs-install
> make
> make check
> make install
> .....
> .....
> 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@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install
> ls: /tmp/netcdf/install: No such file or directory
> fgibbins@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install/usr/
> ls: /tmp/netcdf/install/usr/: No such file or directory
> fgibbins@geosd507 netcdf-3.6.0 $ ls -l /tmp/netcdf/install/usr/lib
> ls: /tmp/netcdf/install/usr/lib: No such file or directory
> fgibbins@geosd507 netcdf-3.6.0 $
> snip---
> 
> 
> Having look at this more closely I can't help thinking that the options
> being passed to f95 are wrong. Here's what the "make check" produces
> when it dies:
> 
> 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
> 
> The "-rpath" and the "/tmp/netcdf/install/usr/lib" are options for the
> linker not gcc.
> 
> I suspect that the "/tmp/netcdf/install/usr/lib" is the argument for the
> "-rpath" and that the line should in fact be something like:
> 
> 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=/tmp/netcdf/install/usr/lib
> 
> which only exists with "gcc: unrecognized option
> `-rpath=/tmp/netcdf/install/usr/lib'" but is an improvement as it's exit
> value is "0" and won't trip make and it produces ".libs/nf_test"
> 
> Faye
> 
> --
> ---------------------------------------------------------
> Faye Gibbins, Computing Officer (Infrastructure Services)
> GeoS KB; Linux, Unix, Security and Networks; 0131 6506426
> ---------------------------------------------------------
> 
> 


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