Problem installing flair-geoviewer in CentOS 7

I’m trying to install flair-geoviewer-3.1-13 on a CentOS 7 machine, which has been updated to the latest versions of its software. When I run make I eventually get an error when it reaches the NEEDPY_OBJ section:

Must remake target `geometryobject.o'.
Invoking recipe from makefile:307 to update target `geometryobject.o'.
c++ -c  -m64 -g -DUNIX -O3 -funroll-loops -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD  -std=c++11 -pedantic -W -Wall -Wcast-align -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wredundant-decls -Wshadow -Wno-write-strings -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pipe -pthread -fwrapv -fstack-protector -fpic -fno-strict-aliasing -I. -I.. -I/usr/include -I/usr/include/python3.6m -I/usr/include/python3.6m
Putting child 0xfbff50 (geometryobject.o) PID 17740 on the chain.
Live child 0xfbff50 (geometryobject.o) PID 17740 
c++: fatal error: no input files
compilation terminated.
Reaping losing child 0xfbff50 PID 17740 
make: *** [geometryobject.o] Error 4
Removing child 0xfbff50 PID 17740 from chain.

I’m no makefile expert so I can’t see why the rule isn’t picking up the source file. Here’s a grep for NEEDPY in the makefile:

grep -1 -n NEEDPY makefile 
268-# Files that need python and tk/tcl as dependency
269:NEEDPY = \
270- \
276:NEEDPY_D   := $(
277:NEEDPY_OBJ := $($(OBJ))
279:$(NEEDPY_D): $(NEEDPY)
280-	$(CXX) -MM $(INCDIR) $(PYTHON_INC) $(TK_INC) $(subst .d,.cc,$@) > $@
305-# **************************

What am I missing?

Dear Ivan,

could you run the script from the page below and post the results here?

FLUKA Beginner Online Training (5-16 October 2020): FLUKA and Flair installation check script · Indico.


David, thanks. Here’s what I get:

Wed 19 May 13:21:48 BST 2021
Linux LIN-TOWD411-1 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.9.2009 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID_LIKE="rhel fedora"
PRETTY_NAME="CentOS Linux 7 (Core)"


CentOS Linux release 7.9.2009 (Core)

Checking python
	Version: 3.6-8 ok

Checking python tkinter module
	tkinter found

Checking tk library
	Tk Version= 8.5 ok

Checking python imaging
	python-imaging-tk installed

Checking gnuplot
	gnuplot 4.6.2 ok

Checking memory
	Ram: 16098196 kb ok
	Swap: 12582908 kb ok

Checking CPU
	CPUs: 6 ok
	Clock: 1391.21 MHz ok
	Arch: x86_64

Checking X11
	X11 dimension: 1920x1080 ok
	X11 depth: 24 ok

Checking flair
	flair directory: /usr/local/flair
	flair version: 3.1-13

Checking flair-geoviewer
	flair version ok (same or higher than 3.0-7)
	flair-geoviewer version 3.1-5
============================== ERROR ==============================
Version mismatch flair <> flair-geoviewer
Please install the same version of flair-geoviewer and flair package

Dear Ivan,

please check your c++ compliers version. Please note, you need at least version 7. (Similarly as FLUKA requires gfortran 7 or newer.)


David, thanks. That was it. When I used g++ 8 it compiled properly. I guess I was misled because flair itself compiled OK with the default compiler(s).

Cheers, ivan