# No nightly Mac binary since August 1

**URL:** <https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836>\
**Category:** Support\
**Tags:** bug, package\
**Created:** [August 7, 2017, 3:48pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836 "2017-08-07T15:48:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [August 7, 2017, 3:48pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/1 "2017-08-07T15:48:54Z")

</div>

I downloaded Slicer nightly today, and noticed it is dated Aug 1.

Looking at the dashboard, there is not even an attempt to build on Mac starting August 5.

On [Aug 4 the dashboard is red](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-08-04):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/2/226d951d4d1507fac5ef8e8acf9416197090bf15.png)

On [Aug 3](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-08-03) there is an error updating the repository:

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

---

<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:** [August 7, 2017, 6:35pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/2 "2017-08-07T18:35:04Z")

</div>

To clarify, macOS have initially been broken due to the update of LibArchive. A [fix](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26206) was integrated on Friday.

All of this combine with the infrastructure changes described in [this thread](https://discourse.slicer.org/t/dashboards-cmake-updated-on-linux-macos-and-windows-build-machines/823), glitches regarding the macOS build where to be expected.

I will follow up shortly with an update.

---

<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:** [August 7, 2017, 6:39pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/3 "2017-08-07T18:39:05Z")

</div>

The problem is that the newly installed CMake does not run on the macOS build machine. See below.

This also explain why no error were reported.

A fix will soon be implemented.

```auto
dyld: Library not loaded: /usr/lib/libc++.1.dylib
  Referenced from: /Users/kitware/Dashboards/Support/CMake-3.9.0.app/Contents/bin/ctest
  Reason: image not found
/Users/kitware/DashboardScripts/factory.sh: line 6: 1531 Trace/BPT trap /Users/kitware/Dashboards/Support/CMake-3.9.0.app/Contents/bin/ctest -S /Users/kitware/DashboardScripts/factory-64bits_slicer4_release_nightly.cmake -VV -O /Users/kitware/Dashboards/Logs/factory-64bits_slicer4_release_nightly.log
dyld: Library not loaded: /usr/lib/libc++.1.dylib
  Referenced from: /Users/kitware/Dashboards/Support/CMake-3.9.0.app/Contents/bin/ctest
  Reason: image not found

```

---

<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:** [August 7, 2017, 9:11pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/4 "2017-08-07T21:11:39Z")

</div>

CMake version used on the macOS factory (running Darwin 10.6.8) has been updated to use a custom build of CMake 3.9.0.

As documented on the [build work description](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Factory#Software) page, this is required because since CMake release \>= 3.6 , Darwin \>= 10.7 is required to use the official release package.

The [CMake download page](https://cmake.org/download/) has also been updated accordingly.

---

<div class="post-metadata">

**Author:** ![jonieva](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Post date:** [August 8, 2017, 1:51pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/5 "2017-08-08T13:51:35Z")

</div>

I’m not sure if the problem is related, but I also realized that many extensions are not building in Linux either (among them the Chest Imaging Platform), without any errors in CDash whatsoever.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [August 8, 2017, 3:30pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/6 "2017-08-08T15:30:23Z")

</div>

@jcfr the problem is not solved

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

---

<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:** [August 9, 2017, 1:28pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/7 "2017-08-09T13:28:59Z")

</div>

MacOSx build is available. See [http://slicer.cdash.org/index.php?project=Slicer4&date=2017-08-09](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-08-09)

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [August 9, 2017, 1:30pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/8 "2017-08-09T13:30:00Z")

</div>

Great, thanks @jcfr!

---

<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:** [August 9, 2017, 1:59pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/9 "2017-08-09T13:59:07Z")

</div>

> [@jonieva](#):
>
> many extensions are not building in Linux

### nightly extension builds

Indeed, looking at the dashboard only few extensions are build. See [here](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-08-09&filtercombine=and&filtercombine=and&filtercount=2&showfilters=1&filtercombine=and&field1=site&compare1=63&value1=factory-south-ubuntu-64bits.kitware&field2=groupname&compare2=63&value2=Extensions-Nightly)

I am looking into it and will report back.

### 4.6.2 extension builds

4.6.2 nightly extension failed to build because of configure error related to transition to CMake 3.9.0, see below. To address the issue, I locally backported [r26211](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26211) and modified `SlicerConfig.cmake` found in the corresponding Slicer build tree.

```auto
CMake Error: CTEST_USE_LAUNCHERS is enabled, but the RULE_LAUNCH_COMPILE global property is not defined.
Did you forget to include(CTest) in the toplevel CMakeLists.txt ?
Command exited with the value: 1

```

---

<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:** [August 9, 2017, 3:06pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/10 "2017-08-09T15:06:50Z")

</div>

> [@jcfr](#):
>
> nightly extension builds  
> Indeed, looking at the dashboard only few extensions are build. See here
> 
> I am looking into it and will report back.

Look at the log, I found:

```auto
[7%] Building CXX object ScanConvertPhasedArray3D/CMakeFfatal: reference is not a tree: aaedd3e108ae3f07f38aa517b14bc00b86ded170
CMake Error at XNATSlicer-prefix/tmp/XNATSlicer-gitclone.cmake:75 (message):
  Failed to checkout tag: 'aaedd3e108ae3f07f38aa517b14bc00b86ded170'

```

This is causing the extension build process to stop because checkout of extension sources is not _sandboxed_. Currently only the build and test steps are.

Here is the commit that recently implemented sandboxing for the test step: [r25439](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=25439)

I am working on a fix.

---

<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:** [August 10, 2017, 4:57pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/11 "2017-08-10T16:57:31Z")

</div>

> [@jcfr](#):
>
> I am working on a fix.

This topic should prevent failure of downloading one extension source from impacting the complete build.

> <https://github.com/Slicer/Slicer/issues/768>
>
> \_This issue was created automatically from an original \[Mantis Issue\](https://ma…ntisarchive.slicer.org/view.php?id=768). Further discussion may take place here.\_

---

<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:** [August 10, 2017, 7:00pm UTC](https://discourse.slicer.org/t/no-nightly-mac-binary-since-august-1/836/12 "2017-08-10T19:00:28Z")

</div>

This last issue should be address in [r26223](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26223)
