# Transition of macOS Preview build from host 10.13 (High Sierra) to 13 (Ventura)

**URL:** <https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668>\
**Category:** Development\
**Created:** [March 29, 2023, 11:13pm UTC](https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668 "2023-03-29T23:13:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [March 31, 2023, 4:07pm UTC](https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668/3 "2023-03-31T16:07:49Z")

</div>

To tentatively address a non-reproducible segfault associated with `clang` compiler, the build was just restarted after installing an updated version.

| | Before | After |
| --- | --- | --- |
| Clang version | 10.0 | ~~14.0.0~~ 14.0.6 |

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/b/ab85f844d839935113e16c5ba088b37cde508eea.png)

### Details

_Text below copied from pull-request [Slicer/DashboardScripts#/57](https://github.com/Slicer/DashboardScripts/pull/57) description_

This updates was motivated after observing a clang `EXC_BAD_ACCESS` error that is not consistently reproducible.

Here are some of the observed occurrences of `Error while building C++ object file`:

1. `CMakeFiles/PythonQt.dir/generated_cpp_511/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp.o`
2. `CMakeFiles/dcmect_tests.dir/t_roundtrip.cc.o`
3. `Code/BasicFilters/src/CMakeFiles/SimpleITK_ITKBinaryMathematicalMorphology.dir/sitkBinaryDilateImageFilter.cxx.o`
4. `Code/BasicFilters/src/CMakeFiles/SimpleITK_ITKCommon.dir/sitkCastImageFilter-2v.cxx.o`
5. `Code/BasicFilters/src/CMakeFiles/SimpleITK_ITKConnectedComponents.dir/sitkConnectedComponentImageFilter.cxx.o`
6. `Code/BasicFilters/src/CMakeFiles/SimpleITK_ITKConvolution.dir/sitkFFTNormalizedCorrelationImageFilter.cxx.o`

These errors did not all happen in the same build. In the case listed above:

- (1) and (2) were two different clean build
- (3), (4), (5) and (6) were reported in the same build

### Segfault

In all cases, the message reported was similar to the copied below and attempt to re-run the associated sh script (e.g `com_trolltech_qt_gui0-17dcc3.sh`) did not lead to a segfault.

> ```auto
> clang: error: unable to execute command: Segmentation fault: 11
> clang: error: clang frontend command failed due to signal (use -v to see invocation)
> Apple clang version 14.0.0 (clang-1400.0.29.202)
> Target: x86_64-apple-darwin22.2.0
> Thread model: posix
> InstalledDir: /Applications/Xcode-14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> [CTest: warning matched] clang: note: diagnostic msg:
> ********************
> 
> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> Preprocessed source(s) and associated run script(s) are located at:
> [CTest: warning matched] clang: note: diagnostic msg: /var/folders/sh/x1zm1krn56j808c00cbtr2900000gp/T/com_trolltech_qt_gui0-17dcc3.cpp
> [CTest: warning matched] clang: note: diagnostic msg: /var/folders/sh/x1zm1krn56j808c00cbtr2900000gp/T/com_trolltech_qt_gui0-17dcc3.sh
> [CTest: warning matched] clang: note: diagnostic msg: Crash backtrace is located in
> [CTest: warning matched] clang: note: diagnostic msg: /Users/svc-dashboard/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
> [CTest: warning matched] clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
> [CTest: warning matched] clang: note: diagnostic msg:
> ********************
> 
> ```

### Step to install clang 14.0.6

Step to install the compiler were the following:

```auto
cd /D/Support
curl -#LO https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz
tar -xzvf clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz

```

Installed version is

```auto
cd /D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/bin/
./clang --version
clang version 14.0.6 (https://github.com/tru/llvm-release-build 686807a176470032c208f27da2cc31b1c10777c6)
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/bin

```

### Release notes for clang 14.0.x

| Date | Version | Release Notes |
| --- | --- | --- |
| 24 Jun 2022 | 14.0.6 | [release notes](https://discourse.llvm.org/t/llvm-14-0-6-release/63431) |
| 10 Jun 2022 | 14.0.5 | [release notes](https://discourse.llvm.org/t/llvm-14-0-5-release/63118) |
| 24 May 2022 | 14.0.4 | [release notes](https://discourse.llvm.org/t/llvm-14-0-4-release/62751) |
| 29 Apr 2022 | 14.0.3 | [release notes](https://discourse.llvm.org/t/llvm-14-0-3-release/62133) |
| 26 Apr 2022 | 14.0.2 | [release notes](https://discourse.llvm.org/t/llvm-14-0-2-release/62065) |
| 12 Apr 2022 | 14.0.1 | [release notes](https://discourse.llvm.org/t/llvm-14-0-1-release/61700) |
| 25 Mar 2022 | 14.0.0 | [release notes](https://releases.llvm.org/14.0.0/tools/clang/docs/ReleaseNotes.html) |

---

_[View the full topic](https://discourse.slicer.org/t/transition-of-macos-preview-build-from-host-10-13-high-sierra-to-13-ventura/28668)._
