# Build failure on Mac using git:// protocol

**URL:** <https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460>\
**Category:** Development\
**Created:** [November 2, 2021, 1:55pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460 "2021-11-02T13:55:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [November 2, 2021, 1:55pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/1 "2021-11-02T13:55:37Z")

</div>

I haven’t built from scratch (clean) in a while, so apologies if this was mentioned elsewhere (didn’t see it in a quick search).

It looks like as of Nov 2, the “brownout” of the `git://` protocol is beginning. Cloning of DCMTK using this protocol during the build fails, but the solution is just to un-check `Slicer_USE_GIT_PROTOCOL` in CMake. Should this be the default now, as `git://` protocol is truly going away?

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [November 2, 2021, 1:59pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/2 "2021-11-02T13:59:54Z")

</div>

There are ongoing discussions on this:

- [COMP: Disabling git protocol by default by RafaelPalomar · Pull Request #5980 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/pull/5980)
- [2021.11.02 Weekly Meeting](https://discourse.slicer.org/t/2021-11-02-weekly-meeting/20436)

I’m currently testing if configuring with `Slicer_USE_GIT_PROTOCOL=OFF` is a workaround for a complete build while this is sorted out. I’ll post my findings here

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [November 2, 2021, 2:04pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/3 "2021-11-02T14:04:16Z")

</div>

Got it, thanks - sorry for the extra post/noise. I’m building now, I can also post success/failure here if you’re interested.

---

<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:** [November 2, 2021, 5:29pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/4 "2021-11-02T17:29:01Z")

</div>

3 posts were split to a new topic: [macOS build #error “Unknown architecture !” associated with DynamicModeler/Logic/FastMarching](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463)

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [November 2, 2021, 6:52pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/5 "2021-11-02T18:52:41Z")

</div>

Just wanted to confirm that setting `Slicer_USE_GIT_PROTOCOL=OFF` is a valid workaround for this problem. We are working on a permanent solution in [COMP: Disabling git protocol by default by RafaelPalomar · Pull Request #5980 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/pull/5980)

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [November 2, 2021, 6:54pm UTC](https://discourse.slicer.org/t/build-failure-on-mac-using-git-protocol/20460/6 "2021-11-02T18:54:40Z")

</div>

Yes - I was able to build. @jcfr committed a fix for the unknown architecture problem; setting `Slicer_USE_GIT_PROTOCOL=OFF` fixed the git protocol issue with DCMTK (and possibly other packages using `git://` protocol.

Thanks!
