Hi everyone,
Having a few problems with the installation of FLUGG. I've got GEANT4/FLUKA/CLHEP installed fine and then moved onto trying to get FLUGG up and running.
Following the instructions from
http://www.fluka.org/content/tools/flugg/node5.html I've unpacked the tar file and set all my environmental variables appropriately. I carry out the "./Install" command without issue, then cd to the source directory. The problem then occurs when using the "make" command.
It runs through for a few minutes and compiles most things just fine but it gives an error when trying to compile WrapSavHist.cc, the error is:
Compiling WrapSavHist.cc ...
src/WrapSavHist.cc: In function ‘G4int isvhwr_(const G4int&, const G4int&)’:
src/WrapSavHist.cc:98:48: error: cast from ‘NavHistWithCount*’ to ‘G4int {aka int}’ loses precision [-fpermissive]
src/WrapSavHist.cc:122:42: error: cast from ‘NavHistWithCount*’ to ‘G4int {aka int}’ loses precision [-fpermissive]
In file included from /samdata1/jryan/FLUGG/source/global/management/include/G4PhysicalConstants.hh:27:0,
from /samdata1/jryan/FLUGG/source/global/management/include/globals.hh:70,
from include/Wrappers.hh:13,
from src/WrapSavHist.cc:27:
/samdata1/jryan/CLHEP/x86_64-slc6-gcc47-opt/include/CLHEP/Units/PhysicalConstants.h: At global scope:
/samdata1/jryan/CLHEP/x86_64-slc6-gcc47-opt/include/CLHEP/Units/PhysicalConstants.h:80:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable]
gmake[1]: *** [/samdata1/jryan/FLUGG/tmp/Linux-g++/FggWrappers/WrapSavHist.o] Error 1
There's more text below but it didn't look relevant (if it actually is I can add that also).
Any advice would be greatly appreciated.
Thanks!
James Ryan
Nuclear FiRST DTC
University of Manchester
Received on Thu Oct 24 2013 - 19:35:34 CEST