[Rivet] rivet 1.8.3 with yaml-cpp

Andy Buckley andy.buckley at cern.ch
Tue Dec 10 20:08:51 GMT 2013


Hi Mikhail,

(Please use the general Rivet contact list, as CC'd -- I already get
enough direct email just to me!)

Rivet 1.8.3 and earlier use the yaml-cpp 0.2.x API (which is the version
bundled with Rivet) and aren't compatible with either yaml-cpp version
0.3 or 0.5. For better compatibility with Rivet 2.x, you can use the new
Rivet 1.9.0 with yaml-cpp 0.3.0... and it's a good idea to upgrade to
that anyway.

Andy


On 10/12/13 17:49, Mikhail KIRSANOV wrote:
>  Hello, Andy,
>  I tried to build it on the request of CMS and it does not compile:
> 
> libtool: compile:
> /afs/cern.ch/sw/lcg/contrib/gcc/4.6.3/x86_64-slc5/bin/c++
> -DHAVE_CONFIG_H -I. -I../../include/Rivet/Config -I../../include
> -I../../include
> -I/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc46-opt/include
> -I/genser1/mkirsano/GENSER/GENSER5/lcgcmake-install/Boost/1.53.0_python2.7/x86_64-slc5-gcc46-opt/include/boost-1_53
> -I/genser1/mkirsano/GENSER/GENSER5/lcgcmake-install/HepMC/2.06.08/x86_64-slc5-gcc46-opt/include
> -I/genser1/mkirsano/GENSER/GENSER5/lcgcmake-install/fastjet/3.0.6/x86_64-slc5-gcc46-opt/include
> -I/genser1/mkirsano/GENSER/GENSER5/lcgcmake-install/MCGenerators_lcgcmtpreview/yamlcpp/0.3.0/x86_64-slc5-gcc46-opt/include
> -pedantic -ansi -Wall -Wno-long-long -Wno-format -O2 -MT
> libRivetCore_la-ProjectionHandler.lo -MD -MP -MF
> .deps/libRivetCore_la-ProjectionHandler.Tpo -c ProjectionHandler.cc
> -fPIC -DPIC -o .libs/libRivetCore_la-ProjectionHandler.o
> AnalysisInfo.cc: In static member function 'static Rivet::AnalysisInfo*
> Rivet::AnalysisInfo::make(const string&)':
> AnalysisInfo.cc:67:28: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:67:41: error: 'CT_SCALAR' is not a member of 'YAML'
> AnalysisInfo.cc:68:28: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:68:41: error: 'CT_SCALAR' is not a member of 'YAML'
> AnalysisInfo.cc:77:25: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:77:38: error: 'CT_SCALAR' is not a member of 'YAML'
> AnalysisInfo.cc:78:25: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:78:38: error: 'CT_SCALAR' is not a member of 'YAML'
> AnalysisInfo.cc:94:21: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:94:34: error: 'CT_SCALAR' is not a member of 'YAML'
> AnalysisInfo.cc:99:28: error: 'const class YAML::Node' has no member
> named 'GetType'
> AnalysisInfo.cc:99:41: error: 'CT_SEQUENCE' is not a member of 'YAML'
> 
>  I just added --with-yaml-cpp=... to the configure command.
> 
>                                  Cheers, Mikhail


-- 
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