Since february 15 there are no builds for Slicer Elastix extension available, see CDash
Actually reviewing it, I don’t see any build of any extension for macOS after February 15, see CDash
Sam_Horvath
(Sam Horvath (Kitware))
February 23, 2022, 5:57pm
3
Looks like there is a macOS build error for the main slicer package, which would also kill the extension builds. @jcfr looking into it now. Appears to be related to libarchive?
https://slicer.cdash.org/viewBuildError.php?buildid=2600868
jcfr
(Jean Christophe Fillion Robin (Kitware))
February 24, 2022, 6:19am
4
The issue was caused by a regression introduced in e5c5ad7 (COMP: Update LibArchive from 3.4.3 to 3.5.2 to support GCC v11
) and has been documented in the following issue:
opened 05:22AM - 24 Feb 22 UTC
closed 06:02AM - 24 Feb 22 UTC
type:bug
priority:high
Following https://github.com/Slicer/Slicer/commit/e5c5ad7801b81c99a0e37b44ce570e… 9acbfdb7f0 associated with https://github.com/Slicer/Slicer/pull/6197, the following error is reported when attempting to build on macOS:
```
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Volumes/D/P/S-0-build/LibArchive-install/lib/libarchive.17.dylib (No such file or directory)
```
## Steps to reproduce
```
cmake \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.13 \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DQt5_DIR:PATH=/path/to/Qt/lib/cmake/Qt5 \
/path/to/source/code/of/Slicer
make LibArchive
```
## Expected behavior
No build error
## Environment
- Slicer version: https://github.com/Slicer/Slicer/commit/e5c5ad7801b81c99a0e37b44ce570e9acbfdb7f0
- Operating system: macOS
It has been fixed in the following pull request now integrated into the main line:
Slicer:master
← jcfr:6219-fix-macOS-LibArchive-fix-rpath-step
opened 06:00AM - 24 Feb 22 UTC
This commit fixes a regression introduced in e5c5ad780 (COMP: Update
LibArchive… from 3.4.3 to 3.5.2 to support GCC v11), it addresses the
following error by updating the interface number hard-coded in the library
path used in the "fix_rpath" external project step specific to macOS.
Error:
```
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
can't open file: /path/to/S-0-build/LibArchive-install/lib/libarchive.17.dylib (No such file or directory)
```
See #6219