building 1.8.12 on osx fails

Hello,

I build HDF 1.8.12 on OSX (Montain Lion & Mavericks) and I get at the end of the build the error:

CMake Error at cmake_install.cmake:31 (FILE):
  file cannot create directory: /HDF5
  1.8.12.framework/Versions/1.8.12/HDF5/include. Maybe need administrative
  privileges.

I don't want to create a OSX framework or anything else, cmake should build only
the libs and installed it to the prefix directory with the header files. How can
I disable the framework build?

Thanks

Phil

Phil,

   This issue was just discovered after the release. The problem is in the
CMakeInstallation.cmake file starting at line 232. An IF
(HDF5_PACK_MACOSX_BUNDLE) needs to surround lines 232-241.
The problem is line 235 which needed an IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
around it.

Allen

···

On Tuesday, November 19, 2013 11:01:34 PM Philipp Kraus wrote:

Hello,

I build HDF 1.8.12 on OSX (Montain Lion & Mavericks) and I get at the end of
the build the error:

CMake Error at cmake_install.cmake:31 (FILE):
  file cannot create directory: /HDF5
  1.8.12.framework/Versions/1.8.12/HDF5/include. Maybe need administrative
  privileges.

I don't want to create a OSX framework or anything else, cmake should build
only the libs and installed it to the prefix directory with the header
files. How can I disable the framework build?

Thanks

Phil

./configure && make install works for me.

···


Sent from Mailbox for iPad

On Thu, Nov 21, 2013 at 1:30 AM, Philipp Kraus <philipp.kraus@flashpixx.de> wrote:

Hello,
I build HDF 1.8.12 on OSX (Montain Lion & Mavericks) and I get at the end of the build the error:
CMake Error at cmake_install.cmake:31 (FILE):
  file cannot create directory: /HDF5
  1.8.12.framework/Versions/1.8.12/HDF5/include. Maybe need administrative
  privileges.
I don't want to create a OSX framework or anything else, cmake should build only
the libs and installed it to the prefix directory with the header files. How can
I disable the framework build?
Thanks
Phil

I am hoping as more and more OS X HDF5 Builders hit this issue that the HDFGroup will reassess the fix and PLEASE put out a revised source release (not a patch to apply to the sources). This is really a show stopper bug on OS X and should be fixed immediately.

Thanks
Mike Jackson

···

On Nov 20, 2013, at 9:40 AM, Allen Byrne <byrn@hdfgroup.org> wrote:

Phil,

  This issue was just discovered after the release. The problem is in the
CMakeInstallation.cmake file starting at line 232. An IF
(HDF5_PACK_MACOSX_BUNDLE) needs to surround lines 232-241.
The problem is line 235 which needed an IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
around it.

Allen

On Tuesday, November 19, 2013 11:01:34 PM Philipp Kraus wrote:

Hello,

I build HDF 1.8.12 on OSX (Montain Lion & Mavericks) and I get at the end of
the build the error:

CMake Error at cmake_install.cmake:31 (FILE):
file cannot create directory: /HDF5
1.8.12.framework/Versions/1.8.12/HDF5/include. Maybe need administrative
privileges.

I don't want to create a OSX framework or anything else, cmake should build
only the libs and installed it to the prefix directory with the header
files. How can I disable the framework build?

Thanks

Phil

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

Correct,
  The issue is with the CMake build system. The AutoConf build system seems to work just fine.

Mike Jackson

···

On Nov 20, 2013, at 3:58 PM, "Andrea Bedini" <andrea.bedini@gmail.com> wrote:

./configure && make install works for me.


Sent from Mailbox for iPad

On Thu, Nov 21, 2013 at 1:30 AM, Philipp Kraus <philipp.kraus@flashpixx.de> wrote:

<signature.asc>

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

Does this happen with a vanilla build? What's different about my 3 Mac buildbots that don't show any problem?
<http://cdash.hdfgroup.uiuc.edu/index.php?project=HDF518>

Cheers,

···

On Wed, 20 Nov 2013 09:58:44 -0500, Michael Jackson said:

I am hoping as more and more OS X HDF5 Builders hit this issue that the
HDFGroup will reassess the fix and PLEASE put out a revised source
release (not a patch to apply to the sources). This is really a show
stopper bug on OS X and should be fixed immediately.

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada

Dear HDF5 users,

We replaced the HDF5 1.8.12 source tar ball (see http://www.hdfgroup.org/HDF5/release/obtain5.html) with the source that contains a fix for the OS X CMake installation problem.

Have a great weekend!

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Nov 20, 2013, at 8:58 AM, Michael Jackson <mike.jackson@bluequartz.net> wrote:

I am hoping as more and more OS X HDF5 Builders hit this issue that the HDFGroup will reassess the fix and PLEASE put out a revised source release (not a patch to apply to the sources). This is really a show stopper bug on OS X and should be fixed immediately.

Thanks
Mike Jackson

On Nov 20, 2013, at 9:40 AM, Allen Byrne <byrn@hdfgroup.org> wrote:

Phil,

This issue was just discovered after the release. The problem is in the
CMakeInstallation.cmake file starting at line 232. An IF
(HDF5_PACK_MACOSX_BUNDLE) needs to surround lines 232-241.
The problem is line 235 which needed an IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
around it.

Allen

On Tuesday, November 19, 2013 11:01:34 PM Philipp Kraus wrote:

Hello,

I build HDF 1.8.12 on OSX (Montain Lion & Mavericks) and I get at the end of
the build the error:

CMake Error at cmake_install.cmake:31 (FILE):
file cannot create directory: /HDF5
1.8.12.framework/Versions/1.8.12/HDF5/include. Maybe need administrative
privileges.

I don't want to create a OSX framework or anything else, cmake should build
only the libs and installed it to the prefix directory with the header
files. How can I disable the framework build?

Thanks

Phil

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

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

The build bots do not have a test to actually try to "install" HDF5 anywhere. And if they _do_ happen to have that test, then the test is being run with root privs. The issue is that CMAKE_INSTALL_PREFIX is over ridden on install with a path starting with "/" which means the root level of your hard drive. 99% of OS X users do not have privs set to allow this so a test that tried to do the default install would fail. Additionally since CMAKE_INSTALL_PREFIX is over ridden you have no control over where it is installed.

Mike J.

···

On Nov 20, 2013, at 10:55 AM, "Sean McBride" <sean@rogue-research.com> wrote:

On Wed, 20 Nov 2013 09:58:44 -0500, Michael Jackson said:

I am hoping as more and more OS X HDF5 Builders hit this issue that the
HDFGroup will reassess the fix and PLEASE put out a revised source
release (not a patch to apply to the sources). This is really a show
stopper bug on OS X and should be fixed immediately.

Does this happen with a vanilla build? What's different about my 3 Mac buildbots that don't show any problem?
<http://cdash.hdfgroup.uiuc.edu/index.php?project=HDF518>

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng sean@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada