machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 354 forks source link

dyld: lazy symbol binding failed: Symbol not found: _os_unfair_lock_lock #137

Closed zatarus closed 5 years ago

zatarus commented 7 years ago

Compiled and run as adviced, I use OSX 10.11.6:

git clone https://github.com/mist64/xhyve
cd xhyve
make
./xhyverun.sh 

it gives following:

dyld: lazy symbol binding failed: Symbol not found: _os_unfair_lock_lock

gucchan22 commented 7 years ago

@zatarus Apparently, XCode 8.1 SDK has a symbol that is defined only from macOS Sierra (10.12.x) Adding this variable and execute make would help. export MACOSX_DEPLOYMENT_TARGET=10.11

See also: https://github.com/jemalloc/jemalloc/issues/494

zatarus commented 7 years ago

Thank you, that made it work! I have made make clean and compiled as follows: $ MACOSX_DEPLOYMENT_TARGET=10.11 make