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

[netCDF #EDR-974201]: Need libnetcdff.so



I think this means that there is an error in the top-level Makefile.am file
for netcdf-fortran. As a rule, doing "make check" implies "make all".
Looks like there is a dependency error in the Makefile that causes "make check" 
to fail.

> This case can be closed. I found the problem to be that part of the "make 
> check" process was looking for something that was supposed to be created 
> during "make", which I had not run because the general instructions on the 
> NetCDF site do not say to run "make" on its own first. Once I ran "make", 
> then "make check", then "make install", everything worked as it should.
> 
> Thanks,
> Brian
> 
> -----Original Message-----
> From: Unidata netCDF Support <address@hidden>
> Sent: Sunday, March 3, 2019 1:38 PM
> To: Brian Evans <address@hidden>
> Cc: address@hidden
> Subject: [netCDF #EDR-974201]: Need libnetcdff.so
> 
> Sorry for the delay.
> The first thing to do is to see what was installed.
> So, after you do the build, send us the output from the 'make install' 
> command for netcdf-fortran.
> While you are at it, look at that output yourself and see if you can see 
> where it installs anything with the name 'libnetcdff.*' (e.g. libnetcdff.a, 
> libnetcdff.so, etc).
> This might give you a clue as to what is happening.
> 
> > Package Version:
> > Operating System: MacOS 10.13.6
> > Hardware:
> > Description of problem: Hello,
> >
> > I'm trying to build some software (Mars Climate Database, 
> > http://www-mars.lmd.jussieu.fr/mars/access.html) on a Mac running macOS 
> > 10.13.6. It relies on libnetcdff.so, but no matter what I do during 
> > compilation of netcdf, or netcdf-c and netcdf-fortran, it never gets 
> > created.
> >
> > I've followed the directions here 
> > https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html&#8203;
> >  for the netcdf-c install, and the directions here 
> > https://www.unidata.ucar.edu/software/netcdf/docs/building_netcdf_fortran.html&#8203;
> >  for the netcdf-fortran install (with shared libraries). I've also tried 
> > adapting all of those instructions to different versions of netcdf (4.0.1 
> > is what the developer uses), most recently trying netcdf-c-4.4.1.1 and 
> > netcdf-fortran-4.4.1. I've tried compiling with "--enable-shared" in the 
> > configure step, and without (as it's not included in instructions for 
> > shared libraries???), all with the same result. I've also tried with the 
> > "--disable-fortran-type-check", just in case, (i'm still kind of a novice 
> > at compiling software from source, so I don't really know what 
> > "cross-compiling" means, but thought I'd give it a shot), but still no joy.
> >
> > Here is the output from my most recent attempt to configure. Notice it DOES 
> > show that shared libraries are requested, but they still are not being 
> > created:
> >
> > sh-3.2# CPPFLAGS=-I/opt/local/netcdf/include
> > LDFLAGS=-L/opt/local/netcdf/lib ./configure --enable-shared
> > --prefix=/opt/local/netcdf&#8203;
> > configure: netCDF-Fortran 4.4.1
> > checking build system type... x86_64-apple-darwin17.7.0 checking host
> > system type... x86_64-apple-darwin17.7.0 checking target system
> > type... x86_64-apple-darwin17.7.0 checking for a BSD-compatible
> > install... /usr/bin/install -c checking whether build environment is
> > sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d
> > checking for gawk... no checking for mawk... no checking for nawk...
> > no checking for awk... awk checking whether make sets $(MAKE)... yes
> > checking whether make supports nested variables... yes checking
> > whether to enable maintainer-specific portions of Makefiles... no
> > configure: checking user options
> > checking whether extra valgrind tests should be run... no checking
> > whether parallel IO tests should be run... no checking whether netCDF
> > extra tests should be run (developers only)... no checking for
> > doxygen... no
> > configure: WARNING: Doxygen not found - documentation will not be
> > built checking for dot... no
> > configure: WARNING: dot not found - will use simple charts in
> > documentation
> > configure: finding C compiler
> > checking for gcc... gcc
> > checking whether the C compiler works... yes checking for C compiler
> > default output file name... a.out checking for suffix of
> > executables...
> > checking whether we are cross compiling... no checking for suffix of
> > object files... o checking whether we are using the GNU C compiler...
> > yes checking whether gcc accepts -g... yes checking for gcc option to
> > accept ISO C89... none needed checking whether gcc understands -c and
> > -o together... yes checking for style of include used by make... GNU
> > checking dependency style of gcc... gcc3 checking for an ANSI
> > C-conforming const... yes
> > configure: finding Fortran compiler
> > checking whether we are using the GNU Fortran compiler... yes checking
> > whether gfortran accepts -g... yes checking for gfortran... gfortran
> > checking whether we are using the GNU Fortran 77 compiler... yes
> > checking whether gfortran accepts -g... yes checking whether Fortran
> > compiler is checked for ISO_C_BINDING support... yes checking for
> > Fortran flag to compile .f90 files... none checking fortran 90 modules
> > inclusion flag... -I checking if Fortran compiler supports Fortran
> > 2003 ISO_C_BINDING... yes checking if Fortran compiler supports
> > Fortran 2008 ISO_FORTRAN_ENV additions... yes checking if Fortran
> > compiler supports TS29113 standard extension... yes checking whether
> > F03 native code is desired... yes checking whether fortran type sizes
> > should be checked... yes checking whether large file (> 2GB) tests
> > should be run... no checking whether benchmaks should be run
> > (experimental)... no checking where to put large temp files if large
> > file tests are run... .
> > configure: setting up libtool
> > checking how to print strings... printf checking for a sed that does
> > not truncate output... /usr/bin/sed checking for grep that handles
> > long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep
> > -E checking for fgrep... /usr/bin/grep -F checking for ld used by
> > gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld...
> > no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
> > -B checking the name lister (/usr/bin/nm -B) interface... BSD nm
> > checking whether ln -s works... yes checking the maximum length of
> > command line arguments... 196608 checking whether the shell
> > understands some XSI constructs... yes checking whether the shell
> > understands "+="... yes checking how to convert
> > x86_64-apple-darwin17.7.0 file names to x86_64-apple-darwin17.7.0
> > format... func_convert_file_noop checking how to convert
> > x86_64-apple-darwin17.7.0 file names to toolchain format...
> > func_convert_file_noop checking for /usr/bin/ld option to reload
> > object files... -r checking for objdump... objdump checking how to
> > recognize dependent libraries... pass_all checking for dlltool... no
> > checking how to associate runtime and link libraries... printf %s\n
> > checking for ar... ar checking for archiver @FILE support... no
> > checking for strip... strip checking for ranlib... ranlib checking
> > command to parse /usr/bin/nm -B output from gcc object... ok checking
> > for sysroot... no checking for mt... no checking if : is a manifest
> > tool... no checking for dsymutil... dsymutil checking for nmedit...
> > nmedit checking for lipo... lipo checking for otool... otool checking
> > for otool64... no checking for -single_module linker flag... yes
> > checking for -exported_symbols_list linker flag... yes checking for
> > -force_load linker flag... yes checking how to run the C
> > preprocessor... gcc -E checking for ANSI C header files... yes
> > checking for sys/types.h... yes checking for sys/stat.h... yes
> > checking for stdlib.h... yes checking for string.h... yes checking for
> > memory.h... yes checking for strings.h... yes checking for
> > inttypes.h... yes checking for stdint.h... yes checking for
> > unistd.h... yes checking for dlfcn.h... yes checking for objdir...
> > .libs checking if gcc supports -fno-rtti -fno-exceptions... no
> > checking for gcc option to produce PIC... -fno-common -DPIC checking
> > if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static
> > flag -static works... no checking if gcc supports -c -o file.o... yes
> > checking if gcc supports -c -o file.o... (cached) yes checking whether
> > the gcc linker (/usr/bin/ld) supports shared libraries... yes checking
> > dynamic linker characteristics... darwin17.7.0 dyld checking how to
> > hardcode library paths into programs... immediate checking whether
> > stripping libraries is possible... yes checking if libtool supports
> > shared libraries... yes checking whether to build shared libraries...
> > yes checking whether to build static libraries... yes checking if
> > libtool supports shared libraries... yes checking whether to build
> > shared libraries... yes checking whether to build static libraries...
> > yes checking for gfortran option to produce PIC... -fno-common
> > checking if gfortran PIC flag -fno-common works... yes checking if
> > gfortran static flag -static works... no checking if gfortran supports
> > -c -o file.o... yes checking if gfortran supports -c -o file.o...
> > (cached) yes checking whether the gfortran linker (/usr/bin/ld)
> > supports shared libraries... yes checking dynamic linker
> > characteristics... darwin17.7.0 dyld checking how to hardcode library
> > paths into programs... immediate checking if libtool supports shared
> > libraries... yes checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes checking for
> > gfortran option to produce PIC... -fno-common checking if gfortran PIC
> > flag -fno-common works... yes checking if gfortran static flag -static
> > works... no checking if gfortran supports -c -o file.o... yes checking
> > if gfortran supports -c -o file.o... (cached) yes checking whether the
> > gfortran linker (/usr/bin/ld) supports shared libraries... yes
> > checking dynamic linker characteristics... darwin17.7.0 dyld checking
> > how to hardcode library paths into programs... immediate
> > configure: finding other utilities
> > configure: trying to set fortran flags for this platform checking what
> > FC is set to... gfortran checking for special C compiler options
> > needed for large files... no checking for _FILE_OFFSET_BITS value
> > needed for large files... no checking for /usr/bin/nm... /usr/bin/nm
> > -B checking nm flags...
> > checking for C-equivalent to Fortran routine "SUB"... sub_ checking
> > for Fortran "byte"... yes checking for Fortran "integer*2"... yes
> > checking if Fortran "byte" is C "signed char"... yes checking if
> > Fortran "byte" is C "short"... no checking if Fortran "byte" is C
> > "int"... no checking if Fortran "byte" is C "long"... no checking if
> > Fortran "integer*2" is C "short"... yes checking if Fortran
> > "integer*2" is C "int"... no checking if Fortran "integer*2" is C
> > "long"... no checking if Fortran "integer" is C "int"... yes checking
> > if Fortran "real" is C "float"... yes checking if Fortran
> > "doubleprecision" is C "double"... yes checking for Fortran-equivalent
> > to netCDF "byte"... byte checking for Fortran-equivalent to netCDF
> > "short"... integer*2 checking whether extra example tests should be
> > run... no checking whether a win32 DLL is desired... no
> > configure: checking types, headers, and functions checking netcdf.h
> > usability... yes checking netcdf.h presence... yes checking for
> > netcdf.h... yes checking for library containing nc_open... -lnetcdf
> > checking for nc_def_opaque... yes checking for nccreate... yes
> > checking for nc_set_log_level... no checking for oc_open... yes
> > checking for nc_use_parallel_enabled... no checking netCDF v2 API
> > present... yes checking netCDF-4 present... yes checking for
> > stdlib.h... (cached) yes checking for sys/types.h... (cached) yes
> > checking sys/param.h usability... yes checking sys/param.h presence...
> > yes checking for sys/param.h... yes checking locale.h usability... yes
> > checking locale.h presence... yes checking for locale.h... yes
> > checking stdio.h usability... yes checking stdio.h presence... yes
> > checking for stdio.h... yes checking stdarg.h usability... yes
> > checking stdarg.h presence... yes checking for stdarg.h... yes
> > checking errno.h usability... yes checking errno.h presence... yes
> > checking for errno.h... yes checking ctype.h usability... yes checking
> > ctype.h presence... yes checking for ctype.h... yes checking fcntl.h
> > usability... yes checking fcntl.h presence... yes checking for
> > fcntl.h... yes checking malloc.h usability... no checking malloc.h
> > presence... no checking for malloc.h... no checking for stdlib.h...
> > (cached) yes checking for string.h... (cached) yes checking for
> > strings.h... (cached) yes checking for unistd.h... (cached) yes
> > checking for sys/stat.h... (cached) yes checking getopt.h usability...
> > yes checking getopt.h presence... yes checking for getopt.h... yes
> > checking sys/time.h usability... yes checking sys/time.h presence...
> > yes checking for sys/time.h... yes checking sys/resource.h
> > usability... yes checking sys/resource.h presence... yes checking for
> > sys/resource.h... yes checking for dirent.h that defines DIR... yes
> > checking for library containing opendir... none required checking for
> > ANSI C header files... (cached) yes checking for sys/wait.h that is
> > POSIX.1 compatible... yes checking whether time.h and sys/time.h may
> > both be included... yes checking for vprintf... yes checking for
> > _doprnt... no checking for stdbool.h that conforms to C99... yes
> > checking for _Bool... yes checking for size_t... yes checking for
> > working alloca.h... yes checking for alloca... yes checking for
> > size_t... (cached) yes checking for off_t... yes checking for
> > ssize_t... yes checking for ptrdiff_t... yes checking for uchar... no
> > checking for longlong... no checking whether char is unsigned... no
> > checking size of short... 2 checking size of int... 4 checking size of
> > long... 8 checking size of float... 4 checking size of double... 8
> > checking size of off_t... 8 checking size of size_t... 8 checking size
> > of ptrdiff_t... 8
> > configure: generating header files and makefiles checking that
> > generated files are newer than configure... done
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating nf-config
> > config.status: creating netcdf-fortran.pc
> > config.status: creating docs/Makefile
> > config.status: creating libsrc/Makefile
> > config.status: creating fortran/Makefile
> > config.status: creating nf_test/Makefile
> > config.status: creating nf03_test/Makefile
> > config.status: creating CMakeExtras/Makefile
> > config.status: creating examples/Makefile
> > config.status: creating examples/F90/Makefile
> > config.status: creating examples/F77/Makefile
> > config.status: creating config.h
> > config.status: config.h is unchanged
> > config.status: creating libsrc/nfconfig1.inc
> > config.status: libsrc/nfconfig1.inc is unchanged
> > config.status: executing depfiles commands
> > config.status: executing libtool commands sh-3.2#
> >
> >
> > I'd be happy to provide more info/logs if needed, but I've been working at 
> > this for more than a week and I'm at the end of my rope!
> >
> > Thanks,
> > Brian
> >
> >
> 
> =Dennis Heimbigner
> Unidata
> 
> 
> Ticket Details
> ===================
> Ticket ID: EDR-974201
> Department: Support netCDF
> Priority: Critical
> Status: Open
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: EDR-974201
Department: Support netCDF
Priority: Critical
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.