[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #JWP-394298]: error netcdf-fortran-4
- Subject: [netCDF #JWP-394298]: error netcdf-fortran-4
- Date: Wed, 08 Apr 2015 08:30:43 -0600
Hi Katia,
> I have installed zlib, hdf5 and netcdf-4.2 C successfully
> I get error installing netcdf-fortran-4 as below
> Thank you very much for your help
The versions of netCDF C and netCDF Fortran you are using are
both more than 3 years old, and we have made many bug fixes and
portability improvements since then, so my first recommendation
would be to use the current netCDF-C library (version 4.3.3.1) and
netCDF-Fortran library (version 4.4.2) from either of these sites
http://www.unidata.ucar.edu/downloads/netcdf/
https://github.com/Unidata/
and follow the instructions for building and installing:
http://www.unidata.ucar.edu/netcdf/docs/getting_and_building_netcdf.html
However, if you can't upgrade to a current release, please send us the
"config.log" file that was generated from running the configure script
for netCDF Fortran. From the output you have already sent, it appears
as if things are not set up for Fortran programs compiled by your g95
compiler to call C functions compiled by your gcc comoiler, but the
config.log file may make it easier to determine why this isn't working.
--Russ
> katia@katia-Vostro-1015:~/netcdf-fortran-4.2$ ./configure
> --with-zlib=/opt/zlib-1.2.8-g95 --with-hdf5=/hdf5-1.8.14-g95
> --prefix=/opt/netcdf-4.2-fortran-g95
> configure: WARNING: unrecognized options: --with-zlib, --with-hdf5
> configure: netCDF-Fortran 4.2
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-unknown-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> 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 whether F90 API 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: 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 for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking whether gcc and cc understand -c and -o together... yes
> checking for an ANSI C-conforming const... yes
> configure: finding Fortran compiler (will not be used if Fortran API is not
> desired)
> checking for gfortran... no
> checking for g95... g95
> checking whether we are using the GNU Fortran compiler... yes
> checking whether g95 accepts -g... yes
> checking for g95... g95
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether g95 accepts -g... yes
> configure: setting up Fortran 90
> checking what FC is set to... g95
> checking for Fortran flag to compile .f90 files... none
> checking fortran 90 modules inclusion flag... -I
> configure: setting up libtool
> checking how to print strings... printf
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for fgrep... /bin/grep -F
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> 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... 1572864
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> 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 ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> 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... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... yes
> 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 -m elf_x86_64) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> 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 g95 option to produce PIC... -fPIC
> checking if g95 PIC flag -fPIC works... yes
> checking if g95 static flag -static works... no
> checking if g95 supports -c -o file.o... yes
> checking if g95 supports -c -o file.o... (cached) yes
> checking whether the g95 linker (/usr/bin/ld -m elf_x86_64) supports shared
> libraries... yes
> checking dynamic linker characteristics... (cached) GNU/Linux ld.so
> 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 g95 option to produce PIC... -fPIC
> checking if g95 PIC flag -fPIC works... yes
> checking if g95 static flag -static works... no
> checking if g95 supports -c -o file.o... yes
> checking if g95 supports -c -o file.o... (cached) yes
> checking whether the g95 linker (/usr/bin/ld -m elf_x86_64) supports shared
> libraries... yes
> checking dynamic linker characteristics... (cached) GNU/Linux ld.so
> 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... g95
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> configure: displaying some results
> 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"... configure: error: Could
> not link conftestf.o and conftest.o
>
> --
> Katia TANGER
> Faculté des Sciences et Techniques
> Marrakech Maroc
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: JWP-394298
Department: Support netCDF
Priority: Normal
Status: Closed