[Rivet] Rivet Problem

Andy Buckley andy.buckley at cern.ch
Thu Dec 5 21:27:17 GMT 2013


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