compile problem with Mac OS X 10.6 (32-bit)

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena

···

On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

···

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

Hi DONG Li,

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

Hmm.. Few things...Why are you setting F9X? I think your are overwriting FC (we provided F9X for backward compatibility, it is reassigned to FC during configure).
I have no clue why H5_VMS became defined. To my knowledge it is only defined in the VMS command files (see under vms directory) to build on the OpenVMS system.
Unfortunately I cannot reproduce your error on my machine, I can only run 64-bit Intel Fortran (probably due to the old Intel compiler and OS updated to 10.6.2)

Elena

···

On Dec 13, 2009, at 7:10 PM, DONG Li wrote:

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

Hi Elena,

Yeah, after set FC to 'ifort -fpp -DDEC$=DEC_ -DMS$=MS_', the compilation is successful. Thanks for hint~

DONG Li

在 2009-12-14,上午11:17, Elena Pourmal 写道:

···

Hi DONG Li,

On Dec 13, 2009, at 7:10 PM, DONG Li wrote:

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

Hmm.. Few things...Why are you setting F9X? I think your are overwriting FC (we provided F9X for backward compatibility, it is reassigned to FC during configure).
I have no clue why H5_VMS became defined. To my knowledge it is only defined in the VMS command files (see under vms directory) to build on the OpenVMS system.
Unfortunately I cannot reproduce your error on my machine, I can only run 64-bit Intel Fortran (probably due to the old Intel compiler and OS updated to 10.6.2)

Elena

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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

Hi DONG Li,

I am glad that you could compile, but I am really puzzled. Could you please tell me why do you need -DDEC and -DMS flags? Those are used only on Windows. Have you tried just ifort?

Thank you!

Elena

···

On Dec 13, 2009, at 10:05 PM, DONG Li wrote:

Hi Elena,

Yeah, after set FC to 'ifort -fpp -DDEC$=DEC_ -DMS$=MS_', the compilation is successful. Thanks for hint~

DONG Li

在 2009-12-14,上午11:17, Elena Pourmal 写道:

Hi DONG Li,

On Dec 13, 2009, at 7:10 PM, DONG Li wrote:

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

Hmm.. Few things...Why are you setting F9X? I think your are overwriting FC (we provided F9X for backward compatibility, it is reassigned to FC during configure).
I have no clue why H5_VMS became defined. To my knowledge it is only defined in the VMS command files (see under vms directory) to build on the OpenVMS system.
Unfortunately I cannot reproduce your error on my machine, I can only run 64-bit Intel Fortran (probably due to the old Intel compiler and OS updated to 10.6.2)

Elena

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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

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

Hi Elena,

I just use ifort. And I learned to use -DDEC and -DMS flags from INSTALL document as it says:

      * To build the Fortran library using Intel compiler on Linux 2.4,
        one has to perform the following steps:
          x Use the -fpp -DDEC$=DEC_ -DMS$=MS_ compiler flags to disable
            DEC and MS compiler directives in source files in the fortran/src,
            fortran/test, and fortran/examples directories.
            E.g., setenv F9X 'ifc -fpp -DDEC$=DEC_ -DMS$=MS_'
            Do not use double quotes since $ is interpreted in them.

DONG Li

在 2009-12-14,下午11:08, Elena Pourmal 写道:

···

Hi DONG Li,

I am glad that you could compile, but I am really puzzled. Could you please tell me why do you need -DDEC and -DMS flags? Those are used only on Windows. Have you tried just ifort?

Thank you!

Elena
On Dec 13, 2009, at 10:05 PM, DONG Li wrote:

Hi Elena,

Yeah, after set FC to 'ifort -fpp -DDEC$=DEC_ -DMS$=MS_', the compilation is successful. Thanks for hint~

DONG Li

在 2009-12-14,上午11:17, Elena Pourmal 写道:

Hi DONG Li,

On Dec 13, 2009, at 7:10 PM, DONG Li wrote:

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

Hmm.. Few things...Why are you setting F9X? I think your are overwriting FC (we provided F9X for backward compatibility, it is reassigned to FC during configure).
I have no clue why H5_VMS became defined. To my knowledge it is only defined in the VMS command files (see under vms directory) to build on the OpenVMS system.
Unfortunately I cannot reproduce your error on my machine, I can only run 64-bit Intel Fortran (probably due to the old Intel compiler and OS updated to 10.6.2)

Elena

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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

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

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

Oh, I see. Thank you for pointing me to that section! It was needed for Linux 2.4 and Intel 8. Will clean it up.

Thanks again!

Elena

···

On Dec 14, 2009, at 9:21 AM, DONG Li wrote:

Hi Elena,

I just use ifort. And I learned to use -DDEC and -DMS flags from INSTALL document as it says:

      * To build the Fortran library using Intel compiler on Linux 2.4,
        one has to perform the following steps:
          x Use the -fpp -DDEC$=DEC_ -DMS$=MS_ compiler flags to disable
            DEC and MS compiler directives in source files in the fortran/src,
            fortran/test, and fortran/examples directories.
            E.g., setenv F9X 'ifc -fpp -DDEC$=DEC_ -DMS$=MS_'
            Do not use double quotes since $ is interpreted in them.

DONG Li

在 2009-12-14,下午11:08, Elena Pourmal 写道:

Hi DONG Li,

I am glad that you could compile, but I am really puzzled. Could you please tell me why do you need -DDEC and -DMS flags? Those are used only on Windows. Have you tried just ifort?

Thank you!

Elena
On Dec 13, 2009, at 10:05 PM, DONG Li wrote:

Hi Elena,

Yeah, after set FC to 'ifort -fpp -DDEC$=DEC_ -DMS$=MS_', the compilation is successful. Thanks for hint~

DONG Li

在 2009-12-14,上午11:17, Elena Pourmal 写道:

Hi DONG Li,

On Dec 13, 2009, at 7:10 PM, DONG Li wrote:

Hi Elena,

I have run that script in ".profile" with "ia32" option. And I use gcc and g++. That error has been bypassed by commenting out the H5_VMS directive in H5f90proto.h as

//#ifdef H5_VMS
#define H5_FC_FUNC_(name, NAME) NAME
//#endif /*H5_VMS*/

because I found that the macro H5_FC_FUNC_ has been used below it. So what is H5_VMS? Is it defined under Linux? Because I succeeded in Linux.

Although that error disappeared, new errors come up! So I think I should not just simply comment H5_VMS out.

Now my configuration is:

export FC=ifort
export FFLAGS="-arch i386"
export CFLAGS="-arch i386"
export CXXFLAGS="-arch i386"
export F9X='ifort -fpp -DDEC$=DEC_ -DMS$=MS_'

Hmm.. Few things...Why are you setting F9X? I think your are overwriting FC (we provided F9X for backward compatibility, it is reassigned to FC during configure).
I have no clue why H5_VMS became defined. To my knowledge it is only defined in the VMS command files (see under vms directory) to build on the OpenVMS system.
Unfortunately I cannot reproduce your error on my machine, I can only run 64-bit Intel Fortran (probably due to the old Intel compiler and OS updated to 10.6.2)

Elena

./configure --prefix=... --enable-fortran --enable-cxx --enable-production

DONG Li

在 2009-12-14,上午4:47, Elena Pourmal 写道:

Dong,

ifort by default is 64-bit. Please make sure that you are using 32-bit version. On my machine I need to run /opt/intel/fc/10.1.006/bin/ifortvars.sh script to enable the 32-bit mode.

Which C and C++ compilers are you using?

Elena
On Dec 13, 2009, at 4:12 AM, DONG Li wrote:

Hi all,

My computer is MacBook, and the OS is Snow Leopard. The architecture is i386. I configure HDF5 1.8.4 as

./configure --enable-fortran --enable-cxx FC=ifort

and make, I got many errors in H5f90proto.h as

...
H5f90proto.h:1216: warning: parameter names (without types) in function declaration
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
...

So what is the problem? Thanks for help!

DONG Li
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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

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

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

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