Great! 

"ifort -m32" didn't work on my machine due to some missing libraries, but this 
is definitely how it should work.

Elena
On Aug 8, 2010, at 1:38 PM, Thomas Robitaille wrote:

> Hi Elena,
> 
> This was indeed the problem (32-bit gcc and 64-bit ifort). For the record, 
> instead of running the ifortvars.csh script, I ran the same configure command 
> as before, but with FC="ifort -m32", and this also works, i.e.
> 
> ./configure --enable-fortran FC="ifort -m32" --prefix=$HOME/usr/hdf5 
> --enable-hl --enable-cxx
> make
> make install
> 
> Thanks for your help,
> 
> Thomas
> 
> On Aug 8, 2010, at 12:01 PM, Elena Pourmal wrote:
> 
>> Hi Thomas,
>> 
>> Do you know if Intel compiler defaults to 64-bit and gcc to 32-bit on your 
>> machine? I think that was the case when I had 10.5.8. 
>> To enable 32-bit fro ifort I had to run 
>> /opt/intel/fc/10.1.006/bin/ifortvars.csh 
>> 
>> Elena
>> 
>> On Aug 7, 2010, at 5:57 PM, 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
>> 
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
> 
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to