[Rivet] Problems with Rivet 2.4.0 on OS X Mavericks

Alexander Lind lind at nbi.dk
Sun Feb 14 13:23:52 GMT 2016


Hi David and all,

I have just installed Rivet from your bootstrap script using GCC 4.9.0 by
specifying compiler flags:
export CC=gcc-4.9
export CXX=g++-4.9
and this worked! I am able to run Rivet now without problems.

Before when I got the error I used clang with version: Apple LLVM version
6.0 (clang-600.0.57) (based on LLVM 3.5svn)

I can see that libRivet.dylib now implements the symbol that I was missing
before:

14:03:09 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ lib ❯ nm libRivet.dylib |
grep getAnalysis
0000000000034870 T __ZN5Rivet14AnalysisLoader11getAnalysisERKSs
0000000000110370 T __ZN5Rivet19getAnalysisLibPathsEv
0000000000111410 T __ZN5Rivet19getAnalysisRefPathsEv
0000000000111c60 T __ZN5Rivet20getAnalysisInfoPathsEv
0000000000110ac0 T __ZN5Rivet20getAnalysisPlotPathsEv

With symbol __ZN5Rivet14AnalysisLoader11getAnalysisERKSs instead of
__ZN5Rivet14AnalysisLoader11getAnalysisERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
as before.

There is no difference in the rivetenv.sh generated when using gcc 4.9
compared to clang.
I have attached config.log from the new build if it's any help to you.

Best regards, Alexander

2016-02-12 13:19 GMT+01:00 Alexander Lind <lind at nbi.dk>:

> Hi David,
>
> I have attached 'config.log' and 'rivetenv.sh'.
> Thank you for looking into it.
>
> Best regards, Alexander
>
> 2016-02-12 11:16 GMT+01:00 David Grellscheid <
> david.grellscheid at durham.ac.uk>:
>
>> Hi Alexander,
>>
>> can you please send us 'config.log' and 'rivetenv.sh' from your build.
>>
>> Thanks,
>>
>>   David
>>
>>
>> On 11/02/2016 17:10, Alexander Lind wrote:
>>
>>> Hi Rivet Developers,
>>>
>>>
>>> I'm having problems getting Rivet 2.4.0 working on Mac OS X Mavericks
>>> 10.9.5.
>>>
>>> I'm running Python 2.7.11 and Xcode 6.2.
>>>
>>> In the following I tried to install using the bootstrap script but I get
>>> the same error when trying to build and install from the source.
>>>
>>>
>>> Building and installing Rivet gives no errors, but when trying to run
>>> Rivet
>>> I get the following:
>>>
>>>
>>> 16:42:38 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ Rivet ❯ source
>>> local/rivetenv.sh
>>>
>>> 16:42:43 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ Rivet ❯ rivet --help
>>>
>>> The rivet Python module could not be loaded: is your PYTHONPATH set
>>> correctly?
>>>
>>>
>>> Rivet seems to have some problems with loading the Rivet module:
>>>
>>>
>>> 16:46:39 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ lib ❯ python
>>>
>>> Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 12:54:16)
>>>
>>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>>>
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import rivet
>>>>>>
>>>>>
>>> Traceback (most recent call last):
>>>
>>>    File "<stdin>", line 1, in <module>
>>>
>>>    File
>>>
>>> "/Users/alexanderlind/Desktop/PythiaRivetAnalysis/Rivet/local/lib/python2.7/site-packages/rivet/__init__.py",
>>> line 12, in <module>
>>>
>>>      from rivet.core import *
>>>
>>> ImportError:
>>>
>>> dlopen(/Users/alexanderlind/Desktop/PythiaRivetAnalysis/Rivet/local/lib/python2.7/site-packages/rivet/core.so,
>>> 10): Symbol not found: __ZN5Rivet14AnalysisLoader11getAnalysisERKSs
>>>
>>>    Referenced from:
>>>
>>> /Users/alexanderlind/Desktop/PythiaRivetAnalysis/Rivet/local/lib/python2.7/site-packages/rivet/core.so
>>>
>>>    Expected in: flat namespace
>>>
>>>   in
>>>
>>> /Users/alexanderlind/Desktop/PythiaRivetAnalysis/Rivet/local/lib/python2.7/site-packages/rivet/core.so
>>>
>>>
>>>>>>
>>>
>>> It seems like it can't find the symbol
>>> __ZN5Rivet14AnalysisLoader11getAnalysisERKSs in core.so.
>>>
>>> core.so seems to depend on the symbol:
>>>
>>>
>>> 17:00:29 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ rivet ❯ nm core.so |
>>> grep
>>> __ZN5Rivet14AnalysisLoader11getAnalysisERKSs
>>>
>>>                   U __ZN5Rivet14AnalysisLoader11getAnalysisERKSs
>>>
>>>
>>> The PYTHONPATH variable includes Rivet/local/lib/python2.7/site-packages
>>> and my DYLD_LIBRARY_PATH includes Rivet/local/lib where both
>>> libRivet.dylib
>>> and libRivet.la is located.
>>>
>>> It would seem that libRivet.dylib does not implement the symbol:
>>>
>>>
>>> 16:46:27 ❯ alexanderlind at Alexanders-MacBook-Pro ❯ lib ❯ nm
>>> libRivet.dylib |
>>> grep getAnalysis
>>>
>>> 0000000000037450 T
>>>
>>> __ZN5Rivet14AnalysisLoader11getAnalysisERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
>>>
>>> 00000000000ba1a0 T __ZN5Rivet19getAnalysisLibPathsEv
>>>
>>> 00000000000ba520 T __ZN5Rivet19getAnalysisRefPathsEv
>>>
>>> 00000000000baaa0 T __ZN5Rivet20getAnalysisInfoPathsEv
>>>
>>> 00000000000bb020 T __ZN5Rivet20getAnalysisPlotPathsEv
>>>
>>>
>>> I have tried specifying the CFLAGS and CPPFLAGS as you write on your "Mac
>>> OS X installation issues" page before running ./rivet-bootstrap but it
>>> doesn't seem to make a difference.
>>>
>>>
>>> Do you have any idea what is wrong? Thank you in advance.
>>>
>>>
>>> Best regards, Alexander
>>>
>>>
>>>
>>> _______________________________________________
>>> Rivet mailing list
>>> Rivet at projects.hepforge.org
>>> https://www.hepforge.org/lists/listinfo/rivet
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160214/38f6e2fe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 54039 bytes
Desc: not available
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160214/38f6e2fe/attachment.obj>


More information about the Rivet mailing list