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

[netCDF #DIS-791476]: error compiling with intel



Hi Nicholas,

> I am following this guide
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/parallel.html
> 
> i'm on an centos 6.0 intel x86_64 system
> 
> i compiled hdf5 as follows
> CC=mpiicc FC=mpiifort FCFLAGS="-O2 -axAVX -fPIC" H5_CFLAGS="-axAVX -fPIC"
> CFLAGS="-O2 -axAVX -fPIC" ./configure --enable-parallel
> --prefix=/scratch/work/hdf5-inst/ --with-zlib=/scratch/work/zlib-intel/
> --disable-shared
> make -j 16
> make check
> make install
> 
> i have compiled and run make check with all successful results for hdf5
> with the build flags -02 -axAVX -fPIC
> 
> 
> #here is the command i'm using to compile netcdf with hdf5 support for
> parallel netcdf
> 
> CFLAGS="-O2 -axAVX -fPIC -ip -no-prec-div -static"
> CPPFLAGS="-I/scratch/work/hdf5-inst/include"
> CXXFLAGS="-I/scratch/work/hdf5-inst/include"
> FFFLAGS="-I/scratch/work/hdf5-inst/include" FCFLAGS="-O2 -axAVX -fPIC -ip
> -no-prec-div -static" LDFLAGS="-L/scratch/work/hdf5-inst/lib
> -L/scratch/work/zlib-intel/lib" CC=mpiicc FC=mpiifort CXX=mpiicpc
> ./configure --prefix=/scratch/work/netcdf-intel/
> make -j 16
> 
> i get the following error that I cannot find on the web
> 
> checking for style of include used by make... GNU
> checking for gcc... mpiicc
> checking whether the C compiler works... no
> configure: error: in `/scratch/nick/netcdf-4.1.3':
> configure: error: C compiler cannot create executables
> See `config.log' for more details

In the config.log you attached, I see the more detailed error:

  configure:4489: checking whether the C compiler works
  configure:4511: mpiicc -O2 -axAVX -fPIC -ip -no-prec-div -static 
-I/scratch/nick/hdf5-inst/include -L/scratch/nick/hdf5-inst/lib 
-L/scratch/nick/zlib-intel/lib conftest.c  >&5
  ld: cannot find -ldl

This "dl" library should be provided by the system, it's nothing to do
with netCDF.  This answer to a similar question on the Open MPI User 
Forum may be relevant:

  http://www.open-mpi.org/community/lists/users/2011/05/16471.php

Are you able to use "mpiicc" to compile and link a simple C "hello world"
program?  If not, that will have to be fixed before you can build netCDF ...

--Russ

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



Ticket Details
===================
Ticket ID: DIS-791476
Department: Support netCDF
Priority: Normal
Status: Closed