Message: Re: Error compiling GEANT4 application using G4 10.02.01 from LCG_87 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Error compiling GEANT4 application using G4 10.02.01 from LCG_87 

Forum: Installation and Configuration
Re: Question Error compiling GEANT4 application using G4 10.02.01 from LCG_87 (Emanuele Leonardi)
Date: 19 Dec, 2017
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Emanuele,

you should report this to the LCG maintainers. The build of Geant4 in that LCG release
is eventually not consistent with the requirement to use c++14 requested by ROOT
(i.e. c++14 was eventually not enabled).
The internal flag in Geant4 you mention has nothing to do with the build, as that
specifies the minimal requirement for the C++ standard to be enabled, which is
always true.
Note also that architecture.gmk is only used for GNUmake builds (now deprecated).
All LCG builds are done with CMake.

Cheers, Gabriele

-------------------
On Tue, 19 Dec 2017 10:07:41 GMT, Emanuele Leonardi wrote:
> On CentOS7 I am trying to compile the PADME simulation program using the Geant4 10.02.p02 and ROOT 6.08.02 packages from the LCG_87 release avalable on cvmfs.
> 
> My environment is configured using the following commands:
> 
>      . /cvmfs/sft.cern.ch/lcg/releases/LCG_87/gcc/6.2.0/x86_64-centos7/setup.sh
>      . /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/bin/thisroot.sh
>      . /cvmfs/sft.cern.ch/lcg/releases/LCG_87/Geant4/10.02.p02/x86_64-centos7-gcc62-opt/bin/geant4.sh
>      . /cvmfs/sft.cern.ch/lcg/releases/LCG_87/Geant4/10.02.p02/x86_64-centos7-gcc62-opt/share/Geant4-10.2.2/geant4make/geant4make.sh
> 
> and the simulation program is compiled with a GNUmakefile which uses root-config to define ROOT-related flags and $(G4INSTALL)/config/architecture.gmk to define the overall compilation environment (I can provide the full GNUmakefile if needed).
> 
> When compiling the program, in all the ROOT-related components I get a large number of errors related to a missing support for the ISO C++ 2014 standard, e.g.
> 
> Compiling ECalRootIO.cc ...
> In file included from /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0native/x86_64-centos7/include/c++/6.2.0/experimental/string_view:39:0,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/RStringView.h:24,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/TString.h:41,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/TNamed.h:29,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/TDirectory.h:28,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/TDirectoryFile.h:25,
>                  from /cvmfs/sft.cern.ch/lcg/releases/LCG_87/ROOT/6.08.02/x86_64-centos7-gcc62-opt/include/TFile.h:26,
>                  from /home/daq/Padme/PadmeMC/include/MCVRootIO.hh:13,
>                  from include/ECalRootIO.hh:10,
>                  from src/ECalRootIO.cc:10:
> /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0native/x86_64-centos7/include/c++/6.2.0/bits/c++14_warning.h:32:2: error: #error This file requires compiler and library support for the forthcoming ISO C++ 2014 standard. This support is currently experimental, and must be enabled with the -std=c++1y or -std=gnu++1y compiler options.
>  #error This file requires compiler and library support for the forthcoming \
>   ^~~~~
> 
> By looking into architecture.gmk I see that the flag G4USE_STD11 is used, which I guess is the source of the problem. Shouldn't this be G4USE_STD14?
> 
> Could anybody help me in getting the correct combination of packages from cvmfs to run GEANT4 version 10 with ROOT version 6 on CentOS 7?
> 
> Thank you
> 
> Emanuele Leonardi

 Add Message Add Message
to: "Re: Error compiling GEANT4 application using G4 10.02.01 from LCG_87"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]