View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015139VTK(No Category)public2014-11-19 18:392016-08-12 09:55
ReporterSujin Philip 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.2.0 
Target Version6.2.1Fixed in Version 
Summary0015139: The CMake build system for building the third part library - HDF5, does not work in cross-compile mode
DescriptionThe build system for HDF5, executes compiled code that generates new source files which are then also built into the library. This fails in cross-compile mode if the target binaries cannot be executed on the host machine. (Interestingly, because of the use of redirection '>' the source files are still generated though they are empty. If 'make' is run again the build continues but this will result in linker errors later).

The culprit programs are:
1) H5make_libsettings which generates H5lib_settings.c
2) H5detect which generates H5Tinit.c

Following are the errors generated:

Scanning dependencies of target H5make_libsettings
[ 65%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o
Linking C executable ../../../../bin/H5make_libsettings
[ 65%] Built target H5make_libsettings
[ 65%] Generating ../H5lib_settings.c
/bin/sh: ../../../../bin/H5make_libsettings: cannot execute binary file
make[2]: *** [ThirdParty/hdf5/vtkhdf5/H5lib_settings.c] Error 126
make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2
make: *** [all] Error 2

[ 16%] Generating ../H5Tinit.c
/bin/sh: ../../../../bin/H5detect: cannot execute binary file
make[2]: *** [ThirdParty/hdf5/vtkhdf5/H5Tinit.c] Error 126
make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Error 2
make: *** [all] Error 2

A possible fix would be to do the system introspection and code generation through cmake facilities instead of relying on compiled code.

A workaround for this is to use the system provided version of the library where available.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0034165)
Dave DeMarle (administrator)
2015-02-05 12:22

we can fix this sometime after 6.2.0.
(0036296)
Berk Geveci (administrator)
2016-07-06 16:50

Setting bugs that have not been touched in 1 year to expired. If important, please re-open.
(0037350)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-11-19 18:39 Sujin Philip New Issue
2015-02-05 12:22 Dave DeMarle Note Added: 0034165
2015-02-05 12:22 Dave DeMarle Target Version => 6.2.1
2016-07-06 16:50 Berk Geveci Status backlog => expired
2016-07-06 16:50 Berk Geveci Note Added: 0036296
2016-08-12 09:55 Kitware Robot Note Added: 0037350
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team