Issue Installing Flair Geoviewer on macOS Sonoma 14.5

Versions

FLUKA: fluka4-5.0
Flair: flair-3.4 and flair-geoviewer-3.4
Operating system: macOS Sonoma 14.5 (Apple M2 Pro)
Compiler:

  • xcode-select --version: xcode-select version 2408
  • gcc --version: gcc (MacPorts gcc12 12.4.0_2+stdlib_flag) 12.4.0
  • python --version: Python 3.13.7

Description

I am currently trying to install Flair Geoviewer (version 3.4) on macOS Sonoma 14.5 (Apple M2 Pro). I have successfully installed FLUKA (fluka4-5.0) and Flair (flair-3.4). However, during the installation of flair-geoviewer-3.4, I encountered an issue during the make step with the following error messages:

clang: error: no input files
make[1]: *** [d2layer.o] Error 2
make: *** [viewer/libviewer.a] Error 2

I would greatly appreciate any guidance or suggestions you may have to resolve this issue.

Thank you very much in advance for your help.

Best regards,
Jihee Kim

Dear @jkim11 ,

GCC12 is known to fail (you should have read a message at installation).
Please use GCC13 or a higher version. Remember then to select this version with the command port select .

Should you have still issues in the installation of Flair, please provide the output of these commands:

  • pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
  • xcodebuild -version
  • gfortran -v
  • echo $PATH
  • port echo requested
  • port select --summary

Best, Luigi

Dear Luigi,

Thank you very much for your help, and my apologies for previously overlooking the GCC version.

I’ve now installed GCC 13 and set it as the default compiler using the following commands:

sudo port install gcc13  
sudo port select --set gcc mp-gcc13  

Afterward, gcc -v confirms:

gcc version 13.4.0 (MacPorts gcc13 13.4.0_1+stdlib_flag)

I then ran make in the flair-geoviewer directory. Although there were some warning messages, there were no errors. I was also able to successfully run:

make install DESTDIR=PATH_FLAIR

The only warning I noticed was:

ld: warning: -ld_classic is deprecated and will be removed in a future release

Most importantly, Flair no longer crashes when I open or modify the geometry—everything seems to be working now!

Thank you again for your kind help.

Best regards,
Jihee

Hi @jkim11 ,

Glad the it works.
No worries for the ld warnings.

Best, Luigi