geoviewer compilation error on MacBook Pro M4 macOS 15.4

Dear developers and colleagues,
I have successfully installed and used Fluka / Flair on both Windows (WSL with ubuntu) and Linux (Ubuntu)machines.
I am currently having some problems installing it on a MacBook Pro M4 laptop with MacOS 15.4 installed.

I was able to compile Fluka and Flair starts ok.
I have gone through all the steps on the page dedicated to flair installation for MacOS, but I am still unable to compile flair-geoviewer and get the following errors:

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/bits/std_abs.h:38,
                 from /opt/local/include/gcc14/c++/cmath:49,
                 from /opt/local/include/gcc14/c++/math.h:36,
                 from ../os.h:557,
                 from geo.h:12,
                 from gbody.h:12,
                 from arbbody.h:12,
                 from arbbody.cc:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
g++ -c accstructures.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
g++ -MM -std=c++11 -I. -I.. bxdfblinn.cc > bxdfblinn.d
g++ -MM -std=c++11 -I. -I.. blinnmicrodist.cc > blinnmicrodist.d
g++ -MM -std=c++11 -I. -I.. biasedlightmap.cc > biasedlightmap.d
g++ -c boxbody.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/cstdlib:79,
                 from /opt/local/include/gcc14/c++/ext/string_conversions.h:43,
                 from /opt/local/include/gcc14/c++/bits/basic_string.h:4154,
                 from /opt/local/include/gcc14/c++/string:54,
                 from /opt/local/include/gcc14/c++/bits/locale_classes.h:40,
                 from /opt/local/include/gcc14/c++/bits/ios_base.h:41,
                 from /opt/local/include/gcc14/c++/ios:44,
                 from /opt/local/include/gcc14/c++/ostream:40,
                 from /opt/local/include/gcc14/c++/iostream:41,
                 from accstructures.h:33,
                 from accstructures.cc:26:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
g++ -MM -std=c++11 -I. -I.. baseintegrator.cc > baseintegrator.d
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/cstdlib:79,
                 from /opt/local/include/gcc14/c++/bits/stl_algo.h:71,
                 from /opt/local/include/gcc14/c++/algorithm:61,
                 from mesh.h:13,
                 from boxbody.cc:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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]: *** [arbbody.o] Error 1
make[1]: *** Waiting for unfinished jobs....
g++ -MM -std=c++11 -I. -I.. architectureintegrator.cc > architectureintegrator.d
g++ -MM -std=c++11 -I. -I.. anisotropicmicrodist.cc > anisotropicmicrodist.d
make[1]: *** [accstructures.o] Error 1
g++ -c anisotropicmicrodist.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
g++ -c architectureintegrator.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
g++ -c baseintegrator.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
make[1]: *** [boxbody.o] Error 1
make: *** [geometry/libgeometry.a] Error 2
g++ -c biasedlightmap.cc -m64 -g -DDarwin -std=c++11 -O3 -funroll-loops -fno-math-errno -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -Wno-class-memaccess -fwrapv -fstack-protector -Wno-vla -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fstrict-aliasing -I. -I..
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/bits/std_abs.h:38,
                 from /opt/local/include/gcc14/c++/cmath:49,
                 from bxdfbase.h:20,
                 from anisotropicmicrodist.h:15,
                 from anisotropicmicrodist.cc:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/cstdlib:79,
                 from /opt/local/include/gcc14/c++/ext/string_conversions.h:43,
                 from /opt/local/include/gcc14/c++/bits/basic_string.h:4154,
                 from /opt/local/include/gcc14/c++/string:54,
                 from ../math/bit.h:15,
                 from baseintegrator.h:18,
                 from baseintegrator.cc:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/cstdlib:79,
                 from /opt/local/include/gcc14/c++/ext/string_conversions.h:43,
                 from /opt/local/include/gcc14/c++/bits/basic_string.h:4154,
                 from /opt/local/include/gcc14/c++/string:54,
                 from ../math/bit.h:15,
                 from baseintegrator.h:18,
                 from architectureintegrator.h:17,
                 from architectureintegrator.cc:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdlib.h:70,
                 from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:58,
                 from /opt/local/include/gcc14/c++/cstdlib:79,
                 from /opt/local/include/gcc14/c++/ext/string_conversions.h:43,
                 from /opt/local/include/gcc14/c++/bits/basic_string.h:4154,
                 from /opt/local/include/gcc14/c++/string:54,
                 from /opt/local/include/gcc14/c++/bits/locale_classes.h:40,
                 from /opt/local/include/gcc14/c++/bits/ios_base.h:41,
                 from /opt/local/include/gcc14/c++/ios:44,
                 from /opt/local/include/gcc14/c++/ostream:40,
                 from ../graph/color.h:12,
                 from lightmap.h:16,
                 from biasedlightmap.h:16,
                 from biasedlightmap.cc:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
  627 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:633:35: error: expected primary-expression before 'unsigned'
  633 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:639:35: error: expected primary-expression before 'unsigned'
  639 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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))));
      |                          ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:645:35: error: expected primary-expression before 'unsigned'
  645 | } __attribute__((aligned(_Alignof(unsigned int))));
      |                                   ^~~~~~~~
/Library/Developer/CommandLineTools/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]: *** [anisotropicmicrodist.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [biasedlightmap.o] Error 1
make[1]: *** [baseintegrator.o] Error 1
make[1]: *** [architectureintegrator.o] Error 1
make: *** [farm/libfarm.a] Error 2

Do You have any hints to fix it?

Thanks for your help,

Karim

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. Here’s a suggested procedure:

  1. Remove the CLT from your system with the command
    sudo rm -rf /Library/Developer/CommandLineTools
    Before issuing this command, check the path where the CLT are installed with the command: xcode-select -p. If different, change the path in the previous command.
  2. Download the installer package of the CLT 16.2 from the Apple Developer website. Note that accessing this download requires you to log in with an Apple Developer account.
  3. Once downloaded, open the .dmg file and run the installer.
  4. Recompile geoviewer following the instruction from the Flair website. Remember to run the command make clean in the directory geoviewer.

Note that I had to uninstall Xcode as well. If it is installed on your machine please remove Xcode and follow the aforementioned steps. Note also that Xcode is not needed for Flair, only the CLT.

Please let me know if downgrading the CLT resolves the issue for you.

Cheers, Luigi

Dear @luillo,

That works great!

Thanks for your help.

Karim