ireid
(Ivan Reid)
18 May 2021 13:27
1
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- geometryobject.cc \
--
275- viewerobject.cc
276:NEEDPY_D := $(NEEDPY:.cc=.d)
277:NEEDPY_OBJ := $(NEEDPY:.cc=.$(OBJ))
278-
279:$(NEEDPY_D): $(NEEDPY)
280- $(CXX) -MM $(INCDIR) $(PYTHON_INC) $(TK_INC) $(subst .d,.cc,$@) > $@
--
305-# **************************
306:$(NEEDPY_OBJ):
307- $(CXX) -c $< $(ARCH) $(CXXFLAGS) $(NOALIASING) $(INCDIR) $(TK_INC) $(PYTHON_INC)
What am I missing?
horvathd
(Dávid Horváth)
18 May 2021 17:02
2
ireid
(Ivan Reid)
19 May 2021 12:25
3
David, thanks. Here’s what I get:
check_fluka.sh
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="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
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
======================================================================
horvathd
(Dávid Horváth)
19 May 2021 14:26
4
Dear Ivan,
please check your c++ compliers version. Please note, you need at least version 7. (Similarly as FLUKA requires gfortran 7 or newer.)
Cheers,
David
ireid
(Ivan Reid)
20 May 2021 11:05
5
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