I am not sure but I am guessing the problem is that it found gnu C compiler for C code but you told it to use intel compiler for fortran code (e.g. FC=ifort).
Perhaps, if you also told it to use intel C and C++ compilers, using... ./configure --enable-fortran CC=icc CXX=icpc FC=ifort --prefix=$HOME/usr/hdf5 --enable-hl --enable-cxx that might 'fix' this problem. I think GNU Autoconf tries really hard to find and use a 'gcc' before it tries using a non GNU compiler. Mark On Sat, 2010-08-07 at 15:57, Thomas Robitaille wrote: > Hi, > > I'm trying to install HDF 1.8.5 on a Mac Pro with 10.5.8 installed. I > configured the install with > > ./configure --enable-fortran FC=ifort --prefix=$HOME/usr/hdf5 --enable-hl > --enable-cxx > > and then typed > > make > > and I get the following error: > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DNDEBUG > -UH5_DEBUG_API -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow > -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings > -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline > -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn > -Wpacked -Wdisabled-optimization -Wendif-labels -Wdeclaration-after-statement > -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self > -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -O3 > -fomit-frame-pointer -finline-functions -MT H5f90kit.lo -MD -MP -MF > .deps/H5f90kit.Tpo -c H5f90kit.c -o H5f90kit.o > In file included from H5f90.h:23, > from H5f90kit.c:19: > [...] > H5f90proto.h:1216: warning: redundant redeclaration of 'H5_FC_FUNC_' > H5f90proto.h:1213: warning: previous declaration of 'H5_FC_FUNC_' was here > H5f90proto.h:1218: error: 'H5_FC_FUNC_' declared as function returning a > function > H5f90proto.h:1218: warning: parameter names (without types) in function > declaration > H5f90proto.h:1218: warning: redundant redeclaration of 'H5_FC_FUNC_' > H5f90proto.h:1216: warning: previous declaration of 'H5_FC_FUNC_' was here > make[3]: *** [H5f90kit.lo] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all-recursive] Error 1 > > I've used exactly the same commands on MacOS 10.6 and didn't run into any > issues. Does anyone have any ideas what the problem could be? > > Thanks for any help, > > Thomas > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://*mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org -- Mark C. Miller, Lawrence Livermore National Laboratory ================!!LLNL BUSINESS ONLY!!================ [email protected] urgent: [email protected] T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-8511 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
