[Rivet] Installing rivet on SL5

Eike von Seggern jan.eike.von.seggern at physik.hu-berlin.de
Mon Oct 5 12:55:34 BST 2009


Hi,

I'm trying to install rivet 1.1.3 on x86-64-slc5-gcc43-opt.  I've
checked out the 1.1.3 tag from svn and called autoreconf -iv

After that I used the following to configure:

$ CC=gcc43 CXX=g++43 ./configure
 --prefix=/scratch/zn/lustre/atlas/vseggern/local-sl5/ 
 --with-lcgtag=x86-64-slc5-gcc43-opt
 --with-boost=/afs/cern.ch/sw/lcg/external/Boost/1.39.0_python2.5/x86_64-slc5-gcc43-opt
 --with-boost-incpath=/afs/cern.ch/sw/lcg/external/Boost/1.39.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_39
 --with-hepmc=/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt
 --with-fastjet=/afs/cern.ch/sw/lcg/external/fastjet/2.4.1/x86_64-slc5-gcc43-opt
 --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt

but compiling the python extension fails:

$ CC=gcc43 CXX=g++43 make -j 8
[...]
make[1]: Entering directory `/scratch/zn/lustre/atlas/vseggern/rivet/rivet-1.1.3-svn/pyext'
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building '_rivet' extension
gcc43 -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -DSWIG_TYPE_TABLE=hepmccompat -I/scratch/zn/lustre/atlas/vseggern/rivet/rivet-1.1.3-svn/include -I/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/include -I/afs/cern.ch/sw/lcg/external/Boost/1.39.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_39 -I/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt/include -I/usr/include/python2.4 -c ./rivet_wrap.cc -o build/temp.linux-x86_64-2.4/./rivet_wrap.o
./rivet_wrap.cc: In constructor ‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
./rivet_wrap.cc:2611: warning: suggest explicit braces to avoid ambiguous ‘else’
./rivet_wrap.cc: In destructor ‘swig::PySequence_Cont<T>::~PySequence_Cont()’:
./rivet_wrap.cc:4096: warning: suggest explicit braces to avoid ambiguous ‘else’
./rivet_wrap.cc: In function ‘PyObject* _wrap_FourVector_mag(PyObject*, PyObject*)’:
./rivet_wrap.cc:6383: error: ‘const class HepMC::FourVector’ has no member named ‘mag’
./rivet_wrap.cc: In function ‘PyObject* _wrap_ThreeVector_mag(PyObject*, PyObject*)’:
./rivet_wrap.cc:7441: error: ‘const class HepMC::ThreeVector’ has no member named ‘mag’
./rivet_wrap.cc: In static member function ‘static int swig::traits_asptr<std::map<K, T, std::less<_Key>, std::allocator<std::pair<const _Key, _Tp> > > >::asptr(PyObject*, std::map<K, T, std::less<_Key>, std::allocator<std::pair<const _Key, _Tp> > >**) [with K = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, T = int]’:
./rivet_wrap.cc:3411:   instantiated from ‘int swig::asptr(PyObject*, Type**) [with Type = std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > >]’
./rivet_wrap.cc:24441:   instantiated from here
./rivet_wrap.cc:4793: warning: deprecated conversion from string constant to ‘char*’
/scratch/zn/lustre/atlas/vseggern/rivet/rivet-1.1.3-svn/include/Rivet/Math/MathHeader.hh: At global scope:
/scratch/zn/lustre/atlas/vseggern/rivet/rivet-1.1.3-svn/include/Rivet/Math/MathHeader.hh:31: warning: ‘Rivet::MAXINT’ defined but not used
error: command 'gcc43' failed with exit status 1

Removing rivet.py and rivet_wrap.cc in pyext/ does not fix this but only
changes the error:

$ CC=gcc43 CXX=g++43 make
swig -c++ -python -I/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/include -I../include -o rivet_wrap.cc rivet.i
/usr/bin/python setup.py build
running build
running build_py
copying rivet.py -> build/lib.linux-x86_64-2.4
running build_ext
building '_rivet' extension
gcc43 -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -DSWIG_TYPE_TABLE=hepmccompat -I/scratch/zn/lustre/atlas/vseggern/rivet/rivet-1.1.3-svn/include -I/afs/cern.ch/sw/lcg/external/HepMC/2.05.00/x86_64-slc5-gcc43-opt/include -I/afs/cern.ch/sw/lcg/external/Boost/1.39.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_39 -I/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt/include -I/usr/include/python2.4 -c ./rivet_wrap.cc -o build/temp.linux-x86_64-2.4/./rivet_wrap.o
./rivet_wrap.cc: In function ‘void SWIG_Python_SetSwigThis(PyObject*, PyObject*)’:
./rivet_wrap.cc:2172: warning: deprecated conversion from string constant to ‘char*’
./rivet_wrap.cc: In constructor ‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
./rivet_wrap.cc:2592: warning: suggest explicit braces to avoid ambiguous ‘else’
./rivet_wrap.cc: In function ‘std::string HepMC_FourVector___str__(HepMC::FourVector*)’:
./rivet_wrap.cc:3028: error: ‘$self’ was not declared in this scope
[a lot more "$self was not declared" errors from other locations and some other errors]

Has anyone an idea what I'm missing here?

Best regards
    eike


More information about the Rivet mailing list