Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error within the FFI test suite on OS X #99

Closed
paulfryzel opened this issue Apr 21, 2014 · 0 comments
Closed

Error within the FFI test suite on OS X #99

paulfryzel opened this issue Apr 21, 2014 · 0 comments
Labels

Comments

@paulfryzel
Copy link
Contributor

There seems to be issues when dynamically loading the bindings for higgs on OS X. This can be seen within the FFI test suite:

var higgs = $ir_load_lib("");

... which eventually results in:

runtime.vm.RunError: run-time error: dlopen(, 1): no suitable image found.

Full make test error output: https://gist.github.com/paulfryzel/11023330

(OS X 10.9.2, DMD64 D Compiler v2.065, Higgs@93c675f)

This error stems from differences in libc between OS's (BSD -vs- Linux). On OS X/BSD, dlopen requires null as its first parameter (path) to default to the main program.

auto lib = dlopen(null, RTLD_LAZY | RTLD_LOCAL); // jit/ops.d L#3967
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants