View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012568VTK(No Category)public2011-09-01 18:492011-09-15 10:57
Reportertd123 
Assigned ToDavid Partyka 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target Version5.8.1Fixed in Version5.8.1 
Summary0012568: Build error with vtk 5.8.0 on archlinux
DescriptionHi, 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!
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files? file icon vtk5.8.0buildlog [^] (44,791 bytes) 2011-09-01 18:49

 Relationships

  Notes
(0027445)
Sean McBride (developer)
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 (developer)
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 (developer)
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 (reporter)
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 (developer)
2011-09-15 10:57

This is now merged into the release branch as well for release in VTK 5.8.1

 Issue History
Date Modified Username Field Change
2011-09-01 18:49 td123 New Issue
2011-09-01 18:49 td123 File Added: vtk5.8.0buildlog
2011-09-02 10:11 Sean McBride Note Added: 0027445
2011-09-02 10:42 David Partyka Note Added: 0027446
2011-09-02 10:42 David Partyka Assigned To => David Partyka
2011-09-02 10:42 David Partyka Status backlog => tabled
2011-09-02 11:08 David Partyka Note Added: 0027448
2011-09-02 14:22 David Partyka Status tabled => active development
2011-09-02 15:32 td123 Note Added: 0027451
2011-09-14 14:32 David Partyka Target Version => 5.8.1
2011-09-15 10:51 David Partyka Product Version => 5.8.0
2011-09-15 10:57 David Partyka Note Added: 0027478
2011-09-15 10:57 David Partyka Status active development => gatekeeper review
2011-09-15 10:57 David Partyka Status gatekeeper review => customer review
2011-09-15 10:57 David Partyka Status customer review => closed
2011-09-15 10:57 David Partyka Resolution open => fixed
2011-09-15 10:57 David Partyka Fixed in Version => 5.8.1


Copyright © 2000 - 2018 MantisBT Team