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

[netCDF #DMW-679093]: Unable to run make check



I wrote,

> I'll jump in here and guess that the configure script is using the wrong 
> libtool in creating your Makefiles,
> maybe using /usr/bin/libtool (a Mac OSX utility that has nothing to do with 
> the GNU ./libtool that should
> have been in your build directory).  You can check this by running, from your 
> build directory, the following
> two commands:
> 
> $ ./libtool --version
> $ libtool --version

Though I still think the problem is with libtool, I don't think it has anything 
to do with
/usr/bin/libtool on your system, since the configure script has the following 
lines

  # Always use our own libtool.
  LIBTOOL='$(SHELL) $(top_builddir)/libtool'

However, I still think remaking the configure script with autoreconf -if (not 
"autreconf -if" as in
my previous response) might fix the problem.

> If you have autoconf installed, you might be able to fix this by running the 
> following command
> in your netCDF-Fortran source directory, to remake the configure script:
> 
> $ autoreconf -if
> 
> Then rerun configure, make all, and make check to see if the problem is fixed.

If it doesn't, please send us the nf_test/Makefile, which might help to 
diagnose the
problem.

--Russ

> On 10/09/15 03:58, "Unidata netCDF Support"
> > <address@hidden> wrote:
> >
> > >Hello Gabriella,
> > >
> > >Can you please provide the 'config.log' file generated when you
> > >configured netcdf-fortran? That will provide some additional information
> > >we can use to try to figure this issue out.  Thanks!
> > >
> > >-Ward
> > >
> > > Full Name: Gabriella Turek
> > >> Email Address: address@hidden
> > >> Organization: NIWA
> > >> Package Version: netcdf-fortran-4.4.2
> > >> Operating System: Mac OS 10.10
> > >> Hardware:
> > >> Description of problem: Compile succeeds, but when I try to run the
> > >>tests I get a number of errors:
> > >>
> > >> Making check in fortran
> > >> make[1]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/fortran'
> > >> make  check-am
> > >> make[2]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/fortran'
> > >> make[2]: Nothing to be done for 'check-am'.
> > >> make[2]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/fortran'
> > >> make[1]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/fortran'
> > >> Making check in nf_test
> > >> make[1]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test'
> > >> make  nf_test tst_f77_v2 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 ftst_v2    ftest
> > >>tst_f90
> > >> make[2]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test'
> > >> /sw/bin/gfortran -I../fortran   -I../fortran -g -O2 -c -o
> > >>f03lib_f_interfaces.o  f03lib_f_interfaces.f90
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o test_get.o test_get.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'test_get.o' failed
> > >> make[2]: [test_get.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o test_put.o test_put.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'test_put.o' failed
> > >> make[2]: [test_put.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o nf_error.o nf_error.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'nf_error.o' failed
> > >> make[2]: [nf_error.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o nf_test.o nf_test.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'nf_test.o' failed
> > >> make[2]: [nf_test.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o test_read.o test_read.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'test_read.o' failed
> > >> make[2]: [test_read.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o test_write.o test_write.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'test_write.o' failed
> > >> make[2]: [test_write.o] Error 127 (ignored)
> > >> DHAVE_CONFIG_H -I. -I.. -I../libsrc   -I/usr/local/include -I../fortran
> > >>  -I../fortran  -c -o util.o util.F
> > >> make[2]: DHAVE_CONFIG_H: Command not found
> > >> Makefile:1292: recipe for target 'util.o' failed
> > >> make[2]: [util.o] Error 127 (ignored)
> > >> depbase=`echo f03lib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> > >> /sw/bin/gcc-4 -DHAVE_CONFIG_H -I. -I.. -I../libsrc
> > >>-I/usr/local/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/sh ../libtool  --tag=F77   --mode=link  -I../fortran
> > >>-I../fortran   -L/usr/local/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 -lnetcdf
> > >> Usage: /Users/turekg/netcdf-fortran-4.4.2/libtool [OPTION]...
> > >>[MODE-ARG]...
> > >> Try 'libtool --help' for more information.
> > >> libtool:   error: unrecognised option: '-I../fortran'
> > >> Makefile:1251: recipe for target 'nf_test' failed
> > >> make[2]: *** [nf_test] Error 1
> > >> make[2]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test'
> > >> Makefile:1825: recipe for target 'check-am' failed
> > >> make[1]: *** [check-am] Error 2
> > >> make[1]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test'
> > >> Makefile:544: recipe for target 'check-recursive' failed
> > >> make: *** [check-recursive] Error 1
> > >>
> > >>
> > >>
> > >
> > >
> > >Ticket Details
> > >===================
> > >Ticket ID: DMW-679093
> > >Department: Support netCDF
> > >Priority: Normal
> > >Status: Closed
> > >
> >
> >
> > Dr Gabriella Turek
> > Senior Software Engineer
> >
> > +64-4-386-0819 | 301 Evans Bay Parade, Greta Point, Wellington | 
> > www.niwa.co.nz<http://www.niwa.co.nz>
> > [NIWA]<http://www.niwa.co.nz>
> > To ensure compliance with legal requirements and to maintain cyber security 
> > standards, NIWA's IT systems are subject to ongoing monitoring, activity 
> > logging and auditing. This monitoring and auditing service may be provided 
> > by third parties. Such third parties can access information transmitted to, 
> > processed by and stored on NIWA's IT systems.
> >
> >
> >
> >
> >
> 
> Russ Rew                                         UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: DMW-679093
Department: Support netCDF
Priority: Normal
Status: Closed