# Many extensions are not getting updates for Slicer Stable Release

**URL:** <https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343>\
**Category:** Development\
**Tags:** nightlybuild\
**Created:** [February 15, 2024, 3:10pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343 "2024-02-15T15:10:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 15, 2024, 3:10pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/1 "2024-02-15T15:10:43Z")

</div>

Nightly build of many extensions for Slicer-5.6 have build errors on Windows and macOS. The errors started to show up a few weeks ago.

For example, SlicerHeart extension failures:

[https://slicer.cdash.org/index.php?project=SlicerStable&begin=2024-01-01&end=2024-02-15&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=SlicerHeart](https://slicer.cdash.org/index.php?project=SlicerStable&begin=2024-01-01&end=2024-02-15&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=SlicerHeart)

We did not modify anything in SlicerHeart extension’s main branch, so most likely something has changed on the factory machines.

@Sam_Horvath @jcfr could you please have a look?

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [February 16, 2024, 4:45pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/2 "2024-02-16T16:45:37Z")

</div>

It appears that around Tuesday January 30th, during Slicer Project week, there were some changes to the factory build machines.

Based on the Slicer Stable cDash configure errors, my guess is that Slicer 5.6.1 stable was built with MSVC 14.35.32215 (Visual Studio 17.5). Then Visual Studio was updated to 17.8 which brought in MSVC 14.38.33130 and resulted in compiled Slicer extensions complaining about a mismatch when trying to build against the Slicer Stable build tree.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 16, 2024, 5:03pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/3 "2024-02-16T17:03:01Z")

</div>

### Build of macOS Stable extensions

The macOS Stable extension build starting to fail after January 9th.

We are working on addressing this and will follow-up shortly.

### SlicerHeart

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/e/be805d9155ad1cf89b7de271718ef280141a785b.jpeg)

Link: [SlicerStable](https://slicer.cdash.org/index.php?project=SlicerStable&begin=2023-12-01&end=2024-02-15&filtercount=2&showfilters=1&filtercombine=and&field1=buildname&compare1=63&value1=SlicerHeart&field2=site&compare2=63&value2=computron)

### SlicerRT

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/f/5f9ae81ba1ac254792e05cafc30774141917badd.jpeg)

Link: [SlicerStable](https://slicer.cdash.org/index.php?project=SlicerStable&begin=2023-12-01&end=2024-02-15&filtercount=2&showfilters=1&filtercombine=and&field1=buildname&compare1=63&value1=SlicerRT&field2=site&compare2=63&value2=computron)

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 16, 2024, 9:46pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/4 "2024-02-16T21:46:11Z")

</div>

## Build of macOS Stable extensions

The build of macOS stable extensions has been restored ✅

The fixes applied should address errors like the following:

```auto
CMake Error in KretzFileReader/Logic/CMakeLists.txt:
  Imported target "qSlicerBaseQTCLI" includes non-existent path
    "/Applications/Xcode-14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/OpenGL.framework"
  in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
  * The path was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and references files it does not
  provide.

```

### Fix applied

```auto
% pushd /Applications/Xcode-14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

% sudo ln -s MacOSX.sdk MacOSX14.0.sdk

```

| Before | After |
| --- | --- |
| 

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/e/4efc1ff64e40feb9619104d8ecd1fd95aa141ff6.png)

 | 

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/e/feee631dc0daf3780bdd935b89e3f6d5695c3a9a.png)

 |

### Analysis

Inspecting `/Library/Receipts/InstallHistory.plist` indicated that XCode was updated to `15.2` on January 9th, this is consistent with the release date\[1\] of XCode 15.2 being January 8th 2024.

Looking at the content of the directory `/Applications/Xcode-14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/`, we could see that the date at which the symlinks were updated was also `January 9th`:

```auto
% pushd /Applications/Xcode-14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

% ls -aslh
total 0
0 drwxr-xr-x 5 root wheel 160B Jan 9 13:27 .
0 drwxr-xr-x 6 root wheel 192B Dec 10 23:33 ..
0 drwxr-xr-x 7 root wheel 224B Nov 13 13:25 MacOSX.sdk
0 lrwxr-xr-x 1 root wheel 10B Jan 9 13:24 MacOSX14.2.sdk -> MacOSX.sdk
0 lrwxr-xr-x 1 root wheel 10B Jan 9 13:24 MacOSX14.sdk -> MacOSX.sdk

```

We fixed it by creating a new symlink `MacOSX14.2.sdk` → `MacOSX.sdk`

* * *

1. [https://xcodereleases.com/](https://xcodereleases.com/)

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 16, 2024, 10:45pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/5 "2024-02-16T22:45:56Z")

</div>

## Build of Windows Stable extensions

The build of Windows stable extensions has been restored ✅

The fixes applied should address errors like the following:

```auto
7>-- Configuring Scripted module: ValveView
7>-- Configuring Scripted module: Philips4dUsDicomPatcher
7>CMake Error at KretzFileReader/Logic/CMakeLists.txt:1 (project):
7> The CMAKE_C_COMPILER:
7>
7> C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe
7>
7> is not a full path to an existing compiler tool.
7>
7>CMake Error at KretzFileReader/Logic/CMakeLists.txt:1 (project):
7> The CMAKE_CXX_COMPILER:
7>
7> C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe
7>
7> is not a full path to an existing compiler tool.
7>
7>-- Configuring incomplete, errors occurred!

```

### Fix applied

Updated the file `SlicerConfig.cmake` associated with the Stable Slicer build tree applying the following patch:

```diff
-set(Slicer_CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe")
+set(Slicer_CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe")
-set(Slicer_CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe")
+set(Slicer_CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe")
[...]
-slicer_config_set_compiler_ep( CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe"
+slicer_config_set_compiler_ep( CMAKE_C_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
   CACHE PATH "Path to C compiler used in Slicer build" FORCE )
-slicer_config_set_compiler_ep( CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe"
+slicer_config_set_compiler_ep( CMAKE_CXX_COMPILER "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
   CACHE PATH "Path to CXX compiler used in Slicer build" FORCE )

```

### Analysis

> [@jamesobutler](#):
>
> It appears that around Tuesday January 30th, during Slicer Project week, there were some changes to the factory build machines.

While attending the 40th Project week, while working on `BUG: Ensure packaging of the latest d3dcompiler_47.dll for SlicerVirtualReality` ([PR-7571](https://github.com/Slicer/Slicer/pull/7571)), on January 30th, we indeed updated Visual Studio.

This is confirmed by the following:

| `#ar-in-slicer` discord entry | Modified date of directories with installed VS 2022 compilers |
| --- | --- |
| ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/d/eda295d69bc73be657cafc6aed19cac38cb166b6.png) | ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/6/86bce629558574906f383f5704fb690284085f2b.png) |

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 17, 2024, 2:55am UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/6 "2024-02-17T02:55:05Z")

</div>

Great, thanks a lot!

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 17, 2024, 8:45pm UTC](https://discourse.slicer.org/t/many-extensions-are-not-getting-updates-for-slicer-stable-release/34343/7 "2024-02-17T20:45:39Z")

</div>

Inspecting [today’s results](https://slicer.cdash.org/index.php?project=SlicerStable&date=2024-02-17&filtercount=0&showfilters=1) confirmed the Stable extensions are built ✅
