View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004616||Slicer4||Core: Building (CMake, Superbuild)||public||2018-09-20 05:01||2019-11-19 13:12|
|Target Version||Slicer 4.11.0||Fixed in Version||Slicer 4.11.0|
|Summary||0004616: Build error with GCC 8.2.0 within libarchive|
I saw 0004558, and this seems very similar, but apparently not exactly the same since that one was supposedly fixed.
While attempting a Debug build of Slicer Git Master using GCC 8.2.0, I'm getting a build error within the compilation of libarchive:
I will try the workaround mentioned in 0004558 for now.
|Steps To Reproduce|
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=1 -DCMAKE_BUILD_TYPE:STRING=$BUILDTYPE -DSlicer_USE_SYSTEM_QT:BOOL=1 -DSlicer_USE_SYSTEM_QT:BOOL=1 -DQt5_DIR:PATH=/usr/include/x86_64-linux-gnu/qt5 ../Slicer
make VERBOSE=1 -j1
Then wait for a long time.
My Slicer source has been changed to use Python 2.7.15 instead of 2.7.13 due to another bug, but I don't think that is causing this.
$ gcc --version
$ g++ --version
$ cmake --version
CMake suite maintained and supported by Kitware (kitware.com/cmake).
|Tags||No tags attached.|
I ran into this same issue after upgrading a linux machine (to ubuntu 18.04) and rebuilding with gcc 7.30.
A hacky workaround is to replace sys/types.h with sys/sysmacros.h as indicated by the error message (patch below).
The real issue seems not to have been resolved although it is closed on the libarchve repository (the trail is difficult to read, but here's the issue: https://github.com/libarchive/libarchive/issues/236).
Patch to get past the error:
pieper@u:~/slicer4/latest/Slicer5-superbuild$ (cd LibArchive; git diff)
I've created a pull request that updates libarchive to 3.4.0: https://github.com/Slicer/Slicer/pull/1263
There are fixes related to this issue, so hopefully this fixes it.
Fix merged in r28627.
|2018-09-20 05:01||torquil||New Issue|
|2018-09-20 05:01||torquil||Status||new => assigned|
|2018-09-20 05:01||torquil||Assigned To||=> jcfr|
|2018-10-16 06:49||jcfr||Description Updated||View Revisions|
|2018-10-16 06:50||jcfr||Target Version||=> Slicer 4.11.0|
|2018-10-22 18:34||pieper||Status||assigned => confirmed|
|2018-10-22 18:34||pieper||Note Added: 0016171|
|2018-10-22 18:35||pieper||Relationship added||related to 0004558|
|2019-11-18 19:26||lassoan||Note Added: 0016297|
|2019-11-19 13:12||lassoan||Status||confirmed => resolved|
|2019-11-19 13:12||lassoan||Resolution||open => fixed|
|2019-11-19 13:12||lassoan||Fixed in Version||=> Slicer 4.11.0|
|2019-11-19 13:12||lassoan||Note Added: 0016298|