Geoviewer 'make' issue

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:

/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

Hi @rfitzgar ,

Please refer to this thread where this issue was addressed.

Cheers, Luigi

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!

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