# Geoviewer 'make' issue

**URL:** <https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367>\
**Category:** Installation\
**Created:** [7 May 2025 22:33 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367 "2025-05-07T22:33:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfitzgar](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@rfitzgar](https://fluka-forum.web.cern.ch/u/rfitzgar)\
**Post date:** [7 May 2025 22:33 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367/1 "2025-05-07T22:33:25Z")

</div>

Hello,

I am trying to update my FLAIR installation and have been really struggling to compile geoviewer. I’m on Mac Sequoia 15.4 and I’ve been following along with solutions suggested in other threads, but so far nothing is working for me. I’ve started out with ‘make clean’ after unpacking the tar file, but then the actual ‘make’ command keeps producing the following:

```auto
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:26: error: '_Alignof' was not declared in this scope
  627 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:26: error: '_Alignof' was not declared in this scope
  633 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:26: error: '_Alignof' was not declared in this scope
  639 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:26: error: '_Alignof' was not declared in this scope
  645 | } __attribute__ ((aligned(_Alignof(unsigned int))));
      | ^ ~~~~~~~
make[1]: *** [d2layer.o] Error 1
make: *** [viewer/libviewer.a] Error 2

```

I’ve uninstalled/reinstalled Xcode, MacPorts, and CommandLineTools, but no luck there. Any help you can provide would be greatly appreciated!

– Rebecca

---

<div class="post-metadata">

**Author:** ![luillo](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/4bbf92/32.png) [@luillo](https://fluka-forum.web.cern.ch/u/luillo)\
**Post date:** [8 May 2025 06:56 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367/2 "2025-05-08T06:56:25Z")

</div>

Hi @rfitzgar ,

Please refer to this thread where this issue was addressed.

> [@geoviewer compilation error on MacBook Pro M4 macOS 15.4](https://fluka-forum.web.cern.ch/t/geoviewer-compilation-error-on-macbook-pro-m4-macos-15-4/7246/3):
>
> Dear @butalag , I was able to reproduce the issue you described. It seems potentially related to the latest very of the Command Line Tools (CLT), as I encountered the same problem on my system running the macOS 15.4 with CLT 16.3.0.0.1.1742442376. Could you possibly check what is your CLT version with this command? pkgutil --pkg-info=com.apple.pkg.CLTools\_Executables If you confirm that you are using CLT 16.3, a possible solution (tested on my machine) is to downgrade to the CLT 16.2 version…

Cheers, Luigi

---

<div class="post-metadata">

**Author:** ![rfitzgar](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@rfitzgar](https://fluka-forum.web.cern.ch/u/rfitzgar)\
**Post date:** [9 May 2025 15:51 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367/3 "2025-05-09T15:51:43Z")

</div>

I hadn’t tried uninstalling XCode and only installing the downgraded CLT separately (without reinstalling XCode), but that seems to have fixed the problem. Thank you!

---

<div class="post-metadata">

**Author:** ![luillo](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/4bbf92/32.png) [@luillo](https://fluka-forum.web.cern.ch/u/luillo)\
**Post date:** [10 May 2025 12:10 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367/4 "2025-05-10T12:10:37Z")

</div>

Dear @rfitzgar

Thanks for confirming.

Indeed Xcode is not anymore a prerequisite for MacPorts (it was it in the past).  
We’ll clarify this in the documentation of the Flair download page.

Cheers, Luigi

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [12 May 2025 06:14 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-make-issue/7367/5 "2025-05-12T06:14:31Z")

</div>

Closed on 12 May 2025 06:14 UTC


