|
[Rivet] Rivet ProblemFrancesco Barile Francesco.Barile at cern.chThu Dec 5 22:45:48 GMT 2013
Dear Andy, thanks a lot for your fast answer! Here the infos: --------> Yes, i checked that i'm on SLC 6.4 * ******************************************************************** * Welcome to lxplus0541.cern.ch, SLC, 6.4 * ******************************************************************** --------> the setup file that i'm using: [fbarile at lxplus0541 MyData]$ cat setupRivetProf.sh ## Set up env to use LCG versions of Python & GCC (and SWIG) ## Set an LCG platform tag if not already defined test -n "$LCGTAG" || LCGTAG=x86_64-slc5-gcc43-opt ( ..........................!!..... INCOMPATIBILITY HERE ? ) export PATH=/afs/cern.ch/sw/lcg/external/Python/2.6.5/$LCGTAG/bin:$PATH export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/Python/2.6.5/$LCGTAG/lib:$LD_LIBRARY_PATH export PATH=/afs/cern.ch/sw/lcg/external/swig/1.3.40/$LCGTAG/bin:$PATH source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/$LCGTAG/setup.sh ## Source Prof and Rivet (in that order!) source /afs/cern.ch/sw/lcg/external/MCGenerators/professor/1.3.1/$LCGTAG/setup.sh source /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/$LCGTAG/rivetenv.sh source /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/agile/1.4.0/$LCGTAG/agileenv.sh export LATEXINPUTS=$LATEXINPUTS:$TEXMFHOME// export TEXINPUTS=$TEXINPUTS:$TEXMFHOME// -------------> Before the buildplugin: -------------> source setupRivetProf.sh in the mother directory (Rivet_New/MyAnalysis) -------------> source MySetup.sh in the MyData directory (Rivet/MyAnalysis/MyData): bash-4.1$ cat MySetup.sh # Set up the local environment to run a clone of an official Rivet analysis export RIVET_ANALYSIS_PATH=$HOME/Rivet_New/MyAnalysis export RIVET_REF_PATH=$HOME/Rivet_New/MyAnalysis/MyData export RIVET_INFO_PATH=$HOME/Rivet_New/MyAnalysis/MyData export RIVET_PLOT_PATH=$HOME/Rivet_New/MyAnalysis/MyData bash-4.1$ -------------> then: rivet_buildplugin RivetMyTest.so ALICE_2012_DRAFT.cc and the error log that i sent you in the first mail. I hope to give you all the infos needed, Francesco P.S. -------------> Also, I added here the #include of my ALICE_2012_DRAFT.cc, maybe it could give some further infos: #include "Rivet/Rivet.hh" #include "Rivet/RivetAIDA.hh" #include "Rivet/Analysis.hh" #include "Rivet/AnalysisLoader.hh" #include "Rivet/Projections/ChargedFinalState.hh" #include "Rivet/Projections/HadronicFinalState.hh" #include "Rivet/Tools/Logging.hh" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Francesco Barile, University of Bari and INFN, Bari, Italy e-mail: francesco.barile at cern.ch e-mail: francesco.barile at ba.infn.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ________________________________________ From: Andy Buckley Sent: 05 December 2013 22:27 To: Francesco Barile Cc: Rivet Subject: Re: Rivet Problem Hi Francesco, I have copied this reply to the rivet at projects.hepforge.org list, where all the developers will see it. This looks to me like an incompatibility in C++ standard library versions between the Rivet you are using and the compiler setup on the system, or something like that. Are you using lxplus5 or 6? (The "lxplus" alias switched to 6 in the last year, meaning that its not appropriate to use an SLC5 build of Rivet there.) And how exactly have you set up your environment? Without this information it is hard to help! Andy On 05/12/13 19:51, Francesco Barile wrote: > Dear Andy, > > i'm getting an error when i'm trying to complie my analysis.cc. > (ALICE_2012_DRAFT.cc) on lxplus using rivet 1.8: > > bash-4.1$ rivet-buildplugin RivetMyTest.so ALICE_2012_DRAFT.cc > > Is it a problem of some missing libraries or Am I setting in a wrong way > the environment variables? Can you please have a look below? > > Sorry if i'm asking you directly by email, but I saw your name in the > tutorials on the web and I don't know if exist another proper way to ask > about these problems. > I used my .cc almost one year ago and it worked so i'm a bit sure about it. > > Thanks a lot in advance, > > Francesco > > > bash-4.1$ rivet-buildplugin RivetMyTest.so ALICE_2012_DRAFT.cc > g++ -o "RivetMyTest.so" -shared -fPIC > -I/afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include > -I/afs/cern.ch/sw/lcg/external/HepMC/2.06.05/x86_64-slc5-gcc43-opt/include > -I/afs/cern.ch/sw/lcg/external/fastjet/3.0.0/x86_64-slc5-gcc43-opt/include > -I/afs/.cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt/include > -I/afs/cern.ch/sw/lcg/external/Boost/1.44.0_python2.6/x86_64-slc5-gcc43-opt/include/boost-1_44 > -pedantic -ansi -Wall -Wno-long-long -O2 -fPIC -Wall ALICE_2012_DRAFT.cc > In file included from /usr/include/stdio.h:929, > from > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/cstdio:50, > from > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/bits/char_traits.h:48, > from > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/string:47, > from > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/RivetSTL.hh:9, > from > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/Rivet.hh:8, > from ALICE_2012_DRAFT.cc:2: > /usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, > size_t*, FILE*)’: > /usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in > this scope > In file included from > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/bits/localefwd.h:47, > from > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/string:50, > from > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/RivetSTL.hh:9, > from > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/Rivet.hh:8, > from ALICE_2012_DRAFT.cc:2: > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h: > At global scope: > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h:57: > error: ‘uselocale’ was not declared in this scope > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h:57: > error: invalid type in declaration before ‘;’ token > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h: > In function ‘int std::__convert_from_v(__locale_struct* const&, char*, > int, const char*, ...)’: > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h:77: > error: ‘__gnu_cxx::__uselocale’ cannot be used as a function > /afs/cern.ch/sw/lcg/contrib/gcc/4.3.6/x86_64-slc5-gcc46-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.6/../../../../include/c++/4.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h:102: > error: ‘__gnu_cxx::__uselocale’ cannot be used as a function > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/Math/MathHeader.hh: > At global scope: > /afs/cern.ch/sw/lcg/external/MCGenerators_hepmc2.06.05/rivet/1.8.1.fj3/x86_64-slc5-gcc43-opt/include/Rivet/Math/MathHeader.hh:44: > warning: ‘Rivet::MAXINT’ defined but not used > bash-4.1$ > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Francesco Barile, > University of Bari and INFN, > Bari, Italy > e-mail: francesco.barile at cern.ch > e-mail: francesco.barile at ba.infn.it > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Dr Andy Buckley, Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
More information about the Rivet mailing list |