|
[Rivet] Rivet 2.0.0Andy Buckley andy.buckley at cern.chTue Jan 28 11:26:52 GMT 2014
Hi Sarah, No problem to get in touch, but the rivet at projects.hepforge.org developer list is the best place to contact when you have trouble: I've CC'd it now. But this one is actually easiest for me to answer, I suspect... This issue was actually a problem that I encountered (and was surprised by) in the tutorial -- for some reason the "-L" flag that specifies *where* -lRivet will be found was missing from the compiler command generated by rivet-buildplugin. I've fixed this on the trunk (it was a very boring typo bug) and it'll be working properly in Rivet 2.1.0 which we plan to release very soon. But as a workaround you can add the missing -L to the buildplugin command as an extra argument for the compiler: rivet-buildplugin WZanalysis_5fb.cc -L/afs/cern.ch/sw/lcg/experimental/rivet/local/lib By the way, it's mostly recommended to use the Genser copy of Rivet (source /afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/rivetenv.sh) rather than that experimental one -- although I think this experimental copy is exactly version 2.0.0. The main reasons that I used this area in the tutorial was that I could provide a script that guaranteed all the compiler setup stuff, and provided a copy of the Sacrifice Pythi8 steering program, too). I should provide a setup for a more standard installation in future tutorials, especially since there's no guarantee that we won't break or remove stuff from the experimental area! Best wishes, and please let us know if you still have any difficulties, Andy On 28/01/14 12:13, Sarah Louise Barnes wrote: > Hi Andy, > > I hope you don't mind me contacting you for some help with Rivet v2.0.0. > I attended the Rivet tutorial you put on a few months ago so thought > that you may be the best person to ask. > > Basically I am trying to compile a new analysis code using version 2.0.0 > of rivet but when I try to compile it rivet cannot be found. I have > included the error message which I am getting at the end. > > _What I did : _ > > logged onto lxplus6 > > Setup rivet using the following command : > > source /afs/cern.ch/sw/lcg/experimental/rivet/setup.sh > > Made a new analysis using the following command : > > rivet-mkanalysis WZanalysis_5fb > > Filled in the .cc file with what I want it to do. I used the template > that the above function created and filled in the rest with exactly the > contents of the ATLAS_2011_I954993.cc code. Basically what I want to do > is just add 1 more cut to this existing code but was unsure as to the > version of Rivet used to create it. Also trying to download the code > directly using the rivet-mkanalysisATLAS_2011_I954993 command didn't > work either. > > I then tried to compile using the following command (I also tried adding > RivetWZanalysis_5fb.so in the middle): > > rivet-buildplugin WZanalysis_5fb.cc > > The message I get : > > [sbarnes at lxplus0091 Rivet_5fb]$ rivet-buildplugin WZanalysis_5fb.cc > Using default library name 'RivetAnalysis.so' > /afs/cern.ch/sw/lcg/contrib/gcc/4.6.3/x86_64-slc6/bin/g++ -o > "RivetAnalysis.so" -shared -fPIC > -I/afs/cern.ch/sw/lcg/experimental/rivet/rivet/../local/include > -I/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/include > -I/afs/cern.ch/sw/lcg/experimental/rivet/local2/include > -I/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/include > -I/usr/include > -I/afs/cern.ch/sw/lcg/external/Boost/1.50.0_python2.6/x86_64-slc6-gcc46-opt/include/boost-1_50 > -std=c++0x -pedantic -ansi -Wall -Wno-long-long -Wno-format > -Werror=uninitialized -O2 -Wl,--no-as-needed -L/lib > -L/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/lib > -L/afs/cern.ch/sw/lcg/experimental/rivet/local2/lib > -Wl,-rpath,/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib > -lm > -L/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib > -lfastjettools -lfastjet -lfastjetplugins -lsiscone_spherical -lsiscone > -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2 > -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib64 > -L/lib/../lib64 -L/usr/lib/../lib64 > -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../.. > -lgfortran -lm -lquadmath WZanalysis_5fb.cc -lRivet > /usr/bin/ld: cannot find -lRivet > collect2: ld returned 1 exit status > > Could you provide any insight into what is going wrong with it? > > Thanks, > Sarah. -- 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 |