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

[netCDF #SJG-419899]: problem building netcdf



Hi Alejandro,

> I am trying to built netcdf-3.6.2 with hdf5.

netcdf-3.6.2 is an old version and unsupported of netCDF that doesn't 
require HDF5.  The released version 4.2.1.1 can read or write any data
that version 3.6.2 could access, has bug fixes, and also supports additional
netCDF functions and storage features made possible with HDF5.

If you only need the netCDF-3 features and don't want or need HDF5, then you
can build a version-3 netCDF package from the 4.2.1.1 release by using the
configure option --disable-netcdf-4.

But you should still be able to build just netcdf-3.6.2 without hdf5, if that's 
what you want.  Looking at your make.log, it appears it passed all the tests
of the C and Fortran libraries, but had problems with building the C++ 
interface,
which isn't used for any of the other software.  If you don't need the C++ 
netCDF
library, you can run "make clean" and rebuild with CXX='' to indicate you don't
want the C++ library.

If you need the C++ netCDF library for some reason, you'll have to determine why
this error occurs in trying to test the C++ library:

  /usr/local/lib/../lib/libstdc++.so: could not read symbols: File in wrong 
format

That is not a netCDF error, but something to do with icpc trying to link with
the library

  /usr/local/lib/../lib/libstdc++.so

--Russ

> i type this
> 
> export CC=icc
> export CXX=icpc
> export F77=ifort
> export FC=ifort
> export CPP='icc -E'
> export CXXCPP='icpc -E'
> export F90=ifort
> source /opt/intel/bin/iccvars.sh intel64
> source /opt/intel/fce/10.0.023/bin/ifortvars.sh intel64
> 
> then
> 
> CPPFLAGS=-I/hdf5/local/include LDFLAGS=-L/hdf5/local/lib ./configure
> 
> and
> 
> make check install 2>&1 | tee make.log
> 
> then i got the next error message (attached make.log):
> 
> ipo: warning #11010: file format not recognized for 
> /usr/local/lib/../lib/libstdc++.so
> ipo: warning #11010: file format not recognized for /usr/lib/../lib/libm.so
> ipo: warning #11010: file format not recognized for /lib/libc.so.6
> ipo: warning #11010: file format not recognized for /lib/ld-linux.so.2
> ipo: warning #11010: file format not recognized for 
> /objdir/./gcc/32/libgcc_s.so
> ipo: warning #11010: file format not recognized for /usr/lib/../lib/libm.so
> ipo: warning #11010: file format not recognized for 
> /objdir/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs/libstdc++.so
> ipo: warning #11010: file format not recognized for 
> /objdir/./gcc/32/libgcc_s.so
> ipo: warning #11010: file format not recognized for /lib/libc.so.6
> ipo: warning #11010: file format not recognized for /lib/ld-linux.so.2
> ipo: warning #11010: file format not recognized for 
> /objdir/./gcc/32/libgcc_s.so
> ipo: warning #11010: file format not recognized for /usr/lib/../lib/libdl.so
> ipo: warning #11010: file format not recognized for /lib/libc.so.6
> ipo: warning #11010: file format not recognized for /lib/ld-linux.so.2
> /usr/local/lib/../lib/libstdc++.so: could not read symbols: File in wrong 
> format
> make[2]: *** [nctst] Error 1
> make[2]: Leaving directory `/root/netcdf-3.6.2/cxx'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/root/netcdf-3.6.2/cxx'
> make: *** [check-recursive] Error 1
> 
> can anyone support?
> 
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: SJG-419899
Department: Support netCDF
Priority: Normal
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.