MantisBT - VTK
View Issue Details
0012568VTK(No Category)public2011-09-01 18:492011-09-15 10:57
td123 
David Partyka 
normalminorhave not tried
closedfixed 
5.8.0 
5.8.15.8.1 
TBD
incorrect functionality
0012568: Build error with vtk 5.8.0 on archlinux
Hi, I have the following build error on archlinux:

[ 0%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5F.c.o
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c: In function 'H5F_build_actual_name':
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:12: error: 'S_IFLNK' undeclared (first use in this function)
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:12: note: each undeclared identifier is reported only once for each function it appears in
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2224:38: error: 'S_IFMT' undeclared (first use in this function)
/build/src/VTK/Utilities/vtkhdf5/src/H5F.c:2229:27: error: 'PATH_MAX' undeclared (first use in this function)

I tried to fix this by doing:

sed -i '31 i#include <sys/stat.h>' Utilities/vtkhdf5/src/H5F.c

but it resulted in the same error, I don't know how else this could be remedied.

I suspect this error is because archlinux is using the stricter gcc 4.6.1
I have attached the full build log as "vtk5.8.0buildlog".
If you need more info, please let me know.
Thanks in advance for any help!
No tags attached.
? vtk5.8.0buildlog (44,791) 2011-09-01 18:49
https://www.vtk.org/Bug/file/9015/vtk5.8.0buildlog
Issue History
2011-09-01 18:49td123New Issue
2011-09-01 18:49td123File Added: vtk5.8.0buildlog
2011-09-02 10:11Sean McBrideNote Added: 0027445
2011-09-02 10:42David PartykaNote Added: 0027446
2011-09-02 10:42David PartykaAssigned To => David Partyka
2011-09-02 10:42David PartykaStatusbacklog => tabled
2011-09-02 11:08David PartykaNote Added: 0027448
2011-09-02 14:22David PartykaStatustabled => active development
2011-09-02 15:32td123Note Added: 0027451
2011-09-14 14:32David PartykaTarget Version => 5.8.1
2011-09-15 10:51David PartykaProduct Version => 5.8.0
2011-09-15 10:57David PartykaNote Added: 0027478
2011-09-15 10:57David PartykaStatusactive development => gatekeeper review
2011-09-15 10:57David PartykaStatusgatekeeper review => customer review
2011-09-15 10:57David PartykaStatuscustomer review => closed
2011-09-15 10:57David PartykaResolutionopen => fixed
2011-09-15 10:57David PartykaFixed in Version => 5.8.1

Notes
(0027445)
Sean McBride   
2011-09-02 10:11   
There's a dashboard with "arch" in its name using gcc 4.6:

http://www.cdash.org/CDash/index.php?project=VTK [^]

and it builds.... but it may have clues....
(0027446)
David Partyka   
2011-09-02 10:42   
The arch build is only building the master branch unfortunately. I'll see if Marcus will also build the release branch.
(0027448)
David Partyka   
2011-09-02 11:08   
This is the commit that should fix this that is already on master. I will port it over to release for vtk 5.8.1

bee0bc9d447f568f710683ceb41679be6b1ac5fd


COMP: Replace the check for a specific version of Linux with any version
    
    The platform check for linux was specifically looking for a three part
    version string (ex: Linux-MAJOR.MINOR.PATCH, Linux-2.6.36, etc.). This
    will fail when using the newly released 3.0 kernel as it is only a 2-part
    version string (Linux-3.0). The version check has been modified to only
    
    Change-Id: Ide69541d8baa4001daa0b3d5de990291117f244a

------------------- Utilities/vtkhdf5/ConfigureChecks.cmake -------------------
index 4ed08ed..66f963a 100644
@@ -75,14 +75,14 @@ IF (HDF5_WANT_DCONV_EXCEPTION)
 ENDIF (HDF5_WANT_DCONV_EXCEPTION)
 
 SET (LINUX_LFS 0)
-IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+IF (CMAKE_SYSTEM MATCHES "Linux")
   # Linux Specific flags
   ADD_DEFINITIONS (-D_POSIX_SOURCE -D_BSD_SOURCE)
   OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
   IF (HDF5_ENABLE_LARGE_FILE)
     SET (LARGEFILE 1)
   ENDIF (HDF5_ENABLE_LARGE_FILE)
-ENDIF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+ENDIF (CMAKE_SYSTEM MATCHES "Linux")
 SET (HDF5_EXTRA_FLAGS)
 IF (LINUX_LFS)
   SET (HDF5_EXTRA_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
(0027451)
td123   
2011-09-02 15:32   
The bee0bc9d447f568f710683ceb41679be6b1ac5fd commit fixed it for me.
I have successfully compiled 5.8.0 on archlinux.

Thanks again!
(0027478)
David Partyka   
2011-09-15 10:57   
This is now merged into the release branch as well for release in VTK 5.8.1