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

[netCDF #MPQ-382475]: netcdf-fortran can't find 'nc_*'



Hi Matt,

Sorry for the delayed response over the weekend, it appears that you've been 
busy trying to sort this out!  I think I have an idea about what's going on.

From the output you provided, I see the following:

/bin/bash ../libtool --tag=F77 --mode=link -I../fortran -I../fortran 
-L/tmp/netcdf/netcdf-c/lib -L/tmp/netcdf/hdf5/lib -L/tmp/netcdf/zlib/lib -o 
nf_test f03lib_f_interfaces.o test_get.o test_put.o nf_error.o nf_test.o 
test_read.o test_write.o util.o f03lib.o ../fortran/libnetcdff.la 
-L/tmp/netcdf/netcdf-c/lib -lnetcdf -L/tmp/netcdf/hdf5/lib -lhdf5_hl -lhdf5 
-L/tmp/netcdf/zlib/lib -lz -lm
libtool: link: unrecognized option `-I../fortran'
libtool: link: Try `libtool --help' for more information.

The first part of the first line *should* read as follows:

/bin/bash ../libtool --tag=F77 --mode=link ifort -I../fortran -I../fortran 

where ifort is taken from the `F77` environmental variable.

Try setting F77 to the same value as FC, e.g. 
"/usr/local/intel/composer_xe_2013_sp1.2.144/bin/intel64/ifort", and let me 
know what happens.

Sorry again for the delayed response, have a great day!

-Ward


> OK, it's embarrassingly obvious why it's using those relative paths (within 
> netcdf-fortran-4.4.4), but it looks like make used -DHAVE_CONFIG_H fine with 
> a leading "-", but make check is missing the "-" in its use of same and thus 
> thinks it is trying to run it as a command and not as a parameter?  Seems I 
> may have been focused too hard on what I or my environment had wrong with 
> configure or the results of make, if make check just has a typo in its 
> parameters.
> 
> Thanks,
> -Matt
> 
> 
> > On May 16, 2016, at 7:51 AM, Matthew Kozak <address@hidden> wrote:
> >
> > The failure is not with configure itself, or with make, but make check (and 
> > why is it using relative paths and not full ones for "../fortran" and 
> > "../libsrc"?):
> > -----
> > /tmp/netcdf/netcdf-fortran-4.4.4> make check
> > Making check in fortran
> > make[1]: Entering directory `/tmp/netcdf/netcdf-fortran-4.4.4/fortran'
> > make  check-am
> > make[2]: Entering directory `/tmp/netcdf/netcdf-fortran-4.4.4/fortran'
> > make[2]: Nothing to be done for `check-am'.
> > make[2]: Leaving directory `/tmp/netcdf/netcdf-fortran-4.4.4/fortran'
> > make[1]: Leaving directory `/tmp/netcdf/netcdf-fortran-4.4.4/fortran'
> > Making check in nf_test
> > make[1]: Entering directory `/tmp/netcdf/netcdf-fortran-4.4.4/nf_test'
> > make  nf_test  ftst_vars ftst_vars2 ftst_vars3 ftst_vars4 ftst_vars5 
> > ftst_vars6 ftst_types ftst_types2 ftst_types3 ftst_groups ftst_path 
> > ftst_rengrps f90tst_vars tst_types tst_types2 f90tst_vars_vlen tst_f90_nc4 
> > f90tst_grps f90tst_fill f90tst_fill2 f90tst_vars3 f90tst_vars4 f90tst_vars2 
> > f90tst_path f90tst_rengrps      tst_f90
> > make[2]: Entering directory `/tmp/netcdf/netcdf-fortran-4.4.4/nf_test'
> > /usr/local/intel/composer_xe_2013_sp1.2.144/bin/intel64/ifort -I../fortran  
> >  -I../fortran -g -c -o f03lib_f_interfaces.o  f03lib_f_interfaces.f90
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o test_get.o test_get.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [test_get.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o test_put.o test_put.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [test_put.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o nf_error.o nf_error.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [nf_error.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o nf_test.o nf_test.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [nf_test.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o test_read.o test_read.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [test_read.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o test_write.o test_write.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [test_write.o] Error 127 (ignored)
> > DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/tmp/netcdf/netcdf-c/include 
> > -I/tmp/netcdf/hdf5/include -I/tmp/netcdf/zlib/include -I../fortran   
> > -I../fortran  -c -o util.o util.F
> > /bin/bash: DHAVE_CONFIG_H: command not found
> > make[2]: [util.o] Error 127 (ignored)
> > depbase=`echo f03lib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> >     gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc   
> > -I/tmp/netcdf/netcdf-c/include -I/tmp/netcdf/hdf5/include 
> > -I/tmp/netcdf/zlib/include  -g -O2 -DLONGLONG_IS_LONG -MT f03lib.o -MD -MP 
> > -MF $depbase.Tpo -c -o f03lib.o f03lib.c &&\
> >     mv -f $depbase.Tpo $depbase.Po
> > /bin/bash ../libtool  --tag=F77   --mode=link  -I../fortran   -I../fortran  
> >  -L/tmp/netcdf/netcdf-c/lib -L/tmp/netcdf/hdf5/lib -L/tmp/netcdf/zlib/lib 
> > -o nf_test f03lib_f_interfaces.o test_get.o test_put.o nf_error.o nf_test.o 
> > test_read.o test_write.o util.o f03lib.o ../fortran/libnetcdff.la 
> > -L/tmp/netcdf/netcdf-c/lib -lnetcdf -L/tmp/netcdf/hdf5/lib -lhdf5_hl -lhdf5 
> > -L/tmp/netcdf/zlib/lib -lz -lm
> > libtool: link: unrecognized option `-I../fortran'
> > libtool: link: Try `libtool --help' for more information.
> > make[2]: *** [nf_test] Error 1
> > make[2]: Leaving directory `/tmp/netcdf/netcdf-fortran-4.4.4/nf_test'
> > make[1]: *** [check-am] Error 2
> > make[1]: Leaving directory `/tmp/netcdf/netcdf-fortran-4.4.4/nf_test'
> > make: *** [check-recursive] Error 1
> >
> > FYI,
> > -Matt
> 
> 

Ticket Details
===================
Ticket ID: MPQ-382475
Department: Support netCDF
Priority: Normal
Status: Closed