# macOS build #error "Unknown architecture !" associated with DynamicModeler/Logic/FastMarching

**URL:** <https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463>\
**Category:** Development\
**Created:** [November 2, 2021, 4:07pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463 "2021-11-02T16:07:34Z")\
**Posts on this page:** 5\
**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, 4:07pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463/1 "2021-11-02T16:07:34Z")

</div>

I get as far as:

```
In file included from /opt/SB/debug/SurfaceToolbox/DynamicModeler/Logic/FastMarching/gw_core/../gw_maths/GW_Maths.h:13:
/opt/SB/debug/SurfaceToolbox/DynamicModeler/Logic/FastMarching/gw_core/../gw_maths/GW_MathsConfig.h:139:3: error: "Unknown architecture !"
    #error "Unknown architecture !"

```

Now, I _am_ building on MacOS 11.6, with my CMAKE\_OSX\_DEPLOYMENT\_TARGET set to 10.15, but I have done this before (though a while ago) and had no issues. Perhaps I should build with an up to date deployment target version.

---

<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, 4:09pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463/2 "2021-11-02T16:09:28Z")

</div>

> `#error "Unknown architecture !" `

This particular issue is being address in [Fix macOS build error, simplify setting of position independent flag and fix warnings by jcfr · Pull Request #48 · Slicer/SlicerSurfaceToolbox · GitHub](https://github.com/Slicer/SlicerSurfaceToolbox/pull/48) and should be addressed in the next hour.

---

<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, 4:09pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463/3 "2021-11-02T16:09:55Z")

</div>

Got it, 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:** [November 2, 2021, 5:29pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463/4 "2021-11-02T17:29:33Z")

</div>

This has been fixed in

> <https://github.com/Slicer/Slicer/pull/5982>
>
> This commit fixes a regression introduced in a15cbacbb9 (ENH: Add "Select
> by po…ints" tool to Dynamic Modeler module)
> 
> List of SlicerSurfaceToolbox changes:
> 
> \`\`\`
> $ git shortlog 8dd9ce053..df684ae --no-merges
> Jean-Christophe Fillion-Robin (20):
> COMP: Simplify setting of position independent flag for MeshGeodesics target
> COMP: Fix -Wunknown-pragmas in DynamicModeler/Logic/FastMarching
> COMP: Fix -Wunused-parameter in DynamicModeler/Logic/FastMarching
> COMP: Fix -Wreorder in DynamicModeler/Logic/FastMarching
> BUG: Fix GW\_Face::GetEdgeNumber to return -1 if edge is not found
> COMP: Fix -Wunused-variable in GW\_Mesh::BuildCurvatureData
> COMP: Fix -Wsign-compare in GW\_VectorStatic.h
> COMP: Fix -Woverloaded-virtual in DynamicModeler/Logic/FastMarching
> COMP: Fix -Wdelete-non-virtual-dtor in GW\_GeodesicFace.inl
> COMP: Fix -Wunused-variable in GW\_GeodesicPath
> COMP: Fix -Wunused-local-typedefs in vtkFastMarchingGeodesicDistance
> COMP: Fix -Wunused-variable in GW\_TriangularInterpolation\_(Cubic|Quadratic)
> COMP: Fix -Wformat-security in GW\_OutputStream
> COMP: Fix DynamicModeler/Logic/FastMarching build error on macOS
> COMP: Fix -Winconsistent-missing-override in DynamicModeler/Logic/FastMarching
> BUG: Fix -Woverloaded-virtual in DynamicModeler/Logic/FastMarching/gw\_geodesic/GW\_GeodesicMesh.h
> BUG: Fix -Wparentheses in GW\_GeodesicPath::AddNewPoint()
> COMP: Fix -Wsign-compare in vtkFastMarchingGeodesicDistance::SetupCallbacks()
> Revert "BUG: Fix GW\_Face::GetEdgeNumber to return -1 if edge is not found"
> ENH: Re-add GW\_GeodesicMesh::GetRandomVertex(GW\_Bool bForceFar) for debugging
> \`\`\`

---

<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:48pm UTC](https://discourse.slicer.org/t/macos-build-error-unknown-architecture-associated-with-dynamicmodeler-logic-fastmarching/20463/5 "2021-11-02T18:48:56Z")

</div>

OK, I can build and run on MacOS. Thanks!
