|
[Rivet] Rivet build fail on OS X 10.6 (was 'Re: Rivet')James Monk jmonk at hep.ucl.ac.ukTue Apr 6 15:26:37 BST 2010
Hi Peter, I just executed the rivet-bootstrap on my osx.6 machine and it seems to be fine. I did not re-install boost as that takes ages and I have a working boost already :) The bootstrap downloaded and compiled HepMC 2.05.00 and FastJet 2.4.2 to link against. Here is some output from my laptop that you may like to compare with your own: echo $PYTHONPATH /Users/jmonk/Physics/Rivet-Bootstrap/local/lib/python2.6/site-packages: python --version Python 2.6.1 python import rivet (... no error) which swig /usr/bin/swig Normally if I get these kinds of missing symbol errors it is because two or more of the libraries being loaded are of different type (32 Vs. 64 bit, ppc Vs intel). The _rivet.so module is universal (on my system), so will work with anything. I would guess that it loads the 64/32 bit version that matches whichever library is loaded first that isn't universal. I presume libRivet.dylib is 64 bit, which is the default from 10.6. I'm not sure of the order in which libraries are loaded in Rivet, but if a non-universal 32 bit library is loaded first then that would presumably force 32 bit mode, and libRivet.dylib would not be loadable. This required some attention when upgrading from 10.5 to 10.6 - 10.5 had 32 bit as default and all my existing HEP related libs were 32 bit. They were still useable, but new packages had to be built 32 bit until I had re-compiled everything as 64 bit. If you similarly upgraded from 10.5 to 10.6 then you may have some non-universal 32 bit libs floating about on your system! That is my guess, anyway ;) James On 2 Apr 2010, at 18:06, Andy Buckley wrote: > Hi Peter, > >> From that output it looks to me like the Python module isn't actually > the cause of this failure, just a response to something else which has > already gone wrong: > >> > dlopen(/Users/skands/Downloads/rivet/build/Rivet-1.2.1/pyext/build/lib.macosx-10.6-universal-2.6/_rivet.so, >> 10): Symbol not found: __ZN5Rivet3Log12showLogLevelE > > I *think* this indicates that the libRivet.so library doesn't contain a > symbol that it requires (from the log message system), and this is made > visible when Python tries to use the _rivet Python module: _rivet > shouldn't itself have this symbol defined. I don't know exactly what is > going on here... possibly it's as simple as the module search path being > different on a Mac. But I don't really have a Mac to test on, either, so > I'm shooting in the dark. > > Can any of the other Rivet developers or users reproduce this problem > (ideally during a rivet-bootstrap --install-boot run on a Mac OS X 10.6 > system)? > > Andy > > > On 31/03/10 14:56, Peter Skands wrote: >> Here's the output from the failing build: >> >> Making all in bin >> make[1]: Nothing to be done for `all'. >> Making all in doc >> LD_LIBRARY_PATH=../src/.libs:../src/Tools/yaml-cpp/.libs:/Users/skands/mc/rivet/lib:/Users/skands/mc/rivet/lib::/Users/skands/mc/rivet/lib >> \ >> DYLD_LIBRARY_PATH=../src/.libs:../src/Tools/yaml-cpp/.libs:/Users/skands/mc/rivet/lib:/Users/skands/mc/rivet/lib::/cern/root/lib:/Users/skands/mc/rivet/lib >> \ >> RIVET_INFO_PATH=../data/anainfo \ >> ./mk-analysis-html analyses.html >> Traceback (most recent call last): >> File "./mk-analysis-html", line 54, in <module> >> import rivet >> File >> "/Users/skands/Downloads/rivet/build/Rivet-1.2.1/pyext/build/lib.macosx-10.6-universal-2.6/rivet.py", >> line 7, in <module> >> import _rivet >> ImportError: >> dlopen(/Users/skands/Downloads/rivet/build/Rivet-1.2.1/pyext/build/lib.macosx-10.6-universal-2.6/_rivet.so, >> 10): Symbol not found: __ZN5Rivet3Log12showLogLevelE >> Referenced from: >> /Users/skands/Downloads/rivet/build/Rivet-1.2.1/pyext/build/lib.macosx-10.6-universal-2.6/_rivet.so >> >> Expected in: flat namespace >> in >> /Users/skands/Downloads/rivet/build/Rivet-1.2.1/pyext/build/lib.macosx-10.6-universal-2.6/_rivet.so >> >> make[1]: *** [analyses.html] Error 1 >> make: *** [all-recursive] Error 1 >> pb-d-128-141-224-195:~/Downloads/rivet/build/rivet> which python >> /usr/bin/python >> > > > -- > Dr Andy Buckley > SUPA Advanced Research Fellow > Particle Physics Experiment Group, University of Edinburgh > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > http://www.hepforge.org/lists/listinfo/rivet
More information about the Rivet mailing list |