# Slicer build error on Windows dashboard

**URL:** <https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376>\
**Category:** Development\
**Tags:** build, dashboard\
**Created:** [September 21, 2022, 3:45pm UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376 "2022-09-21T15:45:10Z")\
**Posts on this page:** 3\
**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:** [September 21, 2022, 3:45pm UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376/1 "2022-09-21T15:45:10Z")

</div>

[Slicer build fails on the dashboard due](https://slicer.cdash.org/viewBuildError.php?onlydeltap&buildid=2805894) to SimpleITK:

```auto
Performing install step for 'SimpleITK'
  -- SimpleITK: Removing 'install' log files
  -- SimpleITK: SimpleITK_WORKING_DIR: D:/D/P/S-0-build/SimpleITK-build/SimpleITK-build/Wrapping/Python
  -- SimpleITK: D:/D/P/S-0-build/python-install/bin/PythonSlicer.exe;-m;pip;install;.
  -- SimpleITK: Errors detected - See below.
  CMake Error at D:/D/P/S-0/CMake/ExternalProjectForNonCMakeProject.cmake:104 (message):
  Processing d:\d\p\s-0-build\simpleitk-build\simpleitk-build\wrapping\python
  
CUSTOMBUILD : error : Command errored out with exit status 1: [D:\D\P\S-0-build\SimpleITK.vcxproj]

```

@Sam_Horvath @jcfr Could you have a look?

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [September 21, 2022, 3:56pm UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376/2 "2022-09-21T15:56:40Z")

</div>

This error seems to be coming up non-deterministically, the 9/20 build succeeded,  
[https://slicer.cdash.org/index.php?project=SlicerPreview&date=2022-09-20](https://slicer.cdash.org/index.php?project=SlicerPreview&date=2022-09-20)

It seems to be related to some temp file stuff, will look at it.

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [September 23, 2022, 3:38pm UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376/3 "2022-09-23T15:38:52Z")

</div>

Coming back to this, it looks like a number of issues were occurring on the factory machine, most notably that the build directory was not being cleaned before the nightly build, which can cause any number of issues when changing major dependencies.

> <https://github.com/Slicer/DashboardScripts/commit/c741a37eaf545aa91084cbbd7114bd8a500b2ff2>
>
> Name was shortened here: https://github.com/Slicer/DashboardScripts/commit/7725b…a39efd526b6ea903f8ceff705c48f3da602
> but batch file was not updated
