Le 30/01/15 10:09, Matti Picus a écrit :
The freebsd builds are failing since we changed to --shared by default. While translation succeeds, the resulting pypy-c cannot find libpypy-c.so even though it seems to be copied properly. See for instance
http://buildbot.pypy.org/builders/pypy-c-jit-freebsd-9-x86-64/builds/462/ste...
It seems the $ORIGIN flag is somehow not functioning properly. I found this link
http://stackoverflow.com/questions/6324131/rpath-origin-not-having-desired-e...
which would seems to suggest we need to add "-z origin" as well as -rpath=$ORIGIN to the linker flags. Could someone (Tobias is the admin of the buildbot, but anyone else is welcome to try) with a freebsd platform try to track this down? It should be enough to run
python pytest.py rpython/translator/c/test/test_standalone.py -k shared --verbose -s
on a pypy default repo after commit fa382e9b1c95, the test should fail. Then try to mess with the rpath_flags in rpython/translator/platform/posix.py till it passes
Thanks for the pointers. Fixed on default in 9e7b2bbd471c767c876df266f7a32201662d9246