Flair Geoviewer: clang error: no input files (Sonoma)

Dear users,

I am trying to install the Flair Geoviewer package in MacBook Pro (M3 processor) Sonoma 14.5.
I successfully installed FLUKA 4.1 and FLAIR 3.3-1, however when installing flair-geoviewer-3.3 using make -j 8, I get the following error:

clang: clang: error: no input files.

I cannot find a solution browsing the forum since:
Xcode version 16.0 - Build version 16A242d

gcc – version: MacPorts gcc 12.4.0
Python – version: Python 3.11.7

I would appreciate your help.

Dear @jorge.sampaio

I seems that the Makefile is trying to use clang instead of g++ from MacPorts.

In a new Terminal, in the directory flair-geoviewer-3.3, could you please run the following command?
make print-CXX

The expected output is:

CXX = g++

Then check which g++ is installed on your machine with the following command:
g++ -v

If this is not from MacPorts, please ensure that your PATH environment variable includes the directory where MacPort is installed, normally /opt/local/bin/

Please let us know.

Best, Luigi

P.S. Important! At moment, it is not recommended to upgrade to macOS Sequoia as FLUKA is not running on it (see this post for more info).

I have a similar problem- when I run:

make print-CXX

My output is:

CXX = g++

But when I try to call make install DESTDIR=PATH_FLAIR, I get clang errors where no input file is found. It’s not finding the “d2layer.cc” source file in the /viewer subdirectory, even though I have managed to confirm that the file is indeed present.

I didn’t have any such problem when I was installing an earlier version of Geoviewer, but I didn’t get very far because Python 2 is deprecated and so I couldn’t pip install the correct version of tkinter. Needless to say, I think something spooky is going on with the CMakeLists.txt file, or something even more insidious that I can’t identify.

Link to my other post where I’m discussing this as well. Basically, whichever file is listed first in the SOURCES variable of the /viewer subdirectory’s makefile will not compile correctly, i.e. “not be found”. Seems that somewhere along the line, a trailing whitespace or something is being added, but I can’t for the life of me figure it out.