Boost logo

Boost-Build :

Subject: Re: [Boost-build] User environment ignored during testing
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-12-15 14:00:13


K. Noel Belcourt wrote:

> It appears that the users environment is being ignored when running
> unit tests. For example, on Darwin with intel-11.0, this test fails
> because test_segments can't find the intel runtime libraries.
>
> testing.capture-output ../bin.v2/libs/mesh/test/test_segments.test/
> intel-darwin-11.0/debug/test_segments.run
>
> DYLD_LIBRARY_PATH=/usr/lib:$DYLD_LIBRARY_PATH
> export DYLD_LIBRARY_PATH
....
> ====== BEGIN OUTPUT ======
> dyld: Library not loaded: libimf.dylib
> Referenced from: /Users/kbelco/boost/status/../bin.v2/libs/mesh/
> test/test_segments.test/intel-darwin-11.0/debug/test_segments
> Reason: image not found

> But my environment has the correct DYLD_LIBRARY_PATH set:
>
>
> s896822:~/boost kbelco$ env | grep DYLD
> DYLD_LIBRARY_PATH=/opt/intel/Compiler/11.0/056/lib
....

So, the problem here is that /usr/lib added in front of user's DYLD_LIBRARY_PATH
causes wrong version of whatever library icc used to be picked up? It was previously
suggested that auto-guessed lib directory of compiler not be added to runtime
search path, we probably should make this change.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk