# Installation of VTK on macOS silicon system using GCC instead of GLANG

**URL:** https://discourse.vtk.org/t/installation-of-vtk-on-macos-silicon-system-using-gcc-instead-of-glang/16011
**Category:** Support
**Created:** [September 3, 2025, 3:43pm UTC](https://discourse.vtk.org/t/installation-of-vtk-on-macos-silicon-system-using-gcc-instead-of-glang/16011 "2025-09-03T15:43:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alejandro](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@Alejandro](https://discourse.vtk.org/u/Alejandro)
#### Post date: [September 3, 2025, 3:43pm UTC](https://discourse.vtk.org/t/installation-of-vtk-on-macos-silicon-system-using-gcc-instead-of-glang/16011/1 "2025-09-03T15:43:31Z")

</div>

Hello, I hope you are doing well.

I am new to VTK, and I am trying to install VTK using gcc on macOS Silicon system instead of using CLANG.

I have been following the instructions here [https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/docs/build\_instructions/build.md](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/docs/build_instructions/build.md), however, in the last part, when I run `cmake --build ~/vtk/build, the building process stops at 52%.

Showing me the next error:

 ![Screenshot 2025-09-03 at 11.39.28 AM](https://discourse.vtk.org/uploads/default/original/2X/7/78bdbf4c2c88ff303d9a5668abe3c22e9ad96399.png), the error code lines continue and continue.

I thought that it was because gcc on macOS does not support Cocoa, GUI, or UI, therefore I turned off those modules to see if the building could works correctly. However, I still have problems. Do you have any recommendations or any information that could work for me to guide myself? I will be attentive to your comments and thank you in advance.

Best regards,

Alejandro

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [September 5, 2025, 1:24pm UTC](https://discourse.vtk.org/t/installation-of-vtk-on-macos-silicon-system-using-gcc-instead-of-glang/16011/2 "2025-09-05T13:24:25Z")

</div>

Which gcc are you using? If you built gcc yourself, make sure it has the `c` , `c++` , `objc` , and `obj-c++` front-ends enabled, the `obj-c++` is not enabled in most gcc builds.

You can also look at the following project that says they have a gcc with improved compatibility with macOS:  
[https://github.com/iains/gcc-darwin-arm64](https://github.com/iains/gcc-darwin-arm64)

There’s also a thread here on a failed attempt to build VTK with gcc on macOS:  
[Compilation fails on macOS Sonoma with homebrew gcc-13.2](https://discourse.vtk.org/t/compilation-fails-on-macos-sonoma-with-homebrew-gcc-13-2/12571)

I don’t think that it’s worth attempting. The macOS SDK was created specifically for Apple Clang, which has non-standard extensions and enhancements that gcc does not have.
