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

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



Hi Gaby,

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

On an up-to-date OSX platform, I get

  $ ./libtool --version
  libtool (GNU libtool) 2.4.6
  Written by Gordon Matzigkeit, 1996
  
  Copyright (C) 2014 Free Software Foundation, Inc.
    ...

  $ libtool --version
  error: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
 unknown option character `-' in: --version
  Usage: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
 -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] 
[-sacLT] [-no_warning_for_no_symbols]
    ...

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:

  $ autreconf -if

Then rerun configure, make all, and make check to see if the problem is fixed.

Another possible fix, if you don't have the autoconf installed is to change 
your PATH environment
variable so it doesn't find the Mac OSX /usr/bin/libtool before the ./libtool 
created in the build
directory as a result of running the configure script.

Please let us know if either of those fixes worked ...

--Russ

> Attached.
> Thanx!
> Gaby
> 
> 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



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