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

Support for ocamlopt? #56

Closed
bluddy opened this issue Jul 20, 2016 · 4 comments
Closed

Support for ocamlopt? #56

bluddy opened this issue Jul 20, 2016 · 4 comments

Comments

@bluddy
Copy link
Contributor

bluddy commented Jul 20, 2016

Is the current version supposed to have a native compiler? I don't get one when I try to build using opam switch , and then reagents seems to force a native build in the makefile, which fails.

@kayceesrk
Copy link
Contributor

I just pushed an update to ocamllabs/opam-repo-dev. Now assuming you already have set up the remote (by opam remote add ocamllabs -k git https://github.com/ocamllabs/opam-repo-dev)

$ opam update
$ opam switch 4.02.2+multicore

This should install the multicore compiler with native code backend.

@bluddy
Copy link
Contributor Author

bluddy commented Jul 21, 2016

I'm getting issues installing on OSX. Specifically,
ld: illegal thread local variable reference to regular symbol _caml_domain_state

This is when the line
../../boot/ocamlrun ../../ocamlopt -nostdlib -I ../../stdlib -shared -o unix.cmxs -I . unix.cmxa

is run in otherlibs/unix.

@kayceesrk
Copy link
Contributor

Thread local variables are a pain in OSX! This linker issue needs to be sorted out. Could you make a new issue so that we could keep track of it, and close this one? Thanks!

@kayceesrk
Copy link
Contributor

Closing this issue. Opened #57.

Sudha247 pushed a commit that referenced this issue Mar 19, 2021
testsuite: add tests for dynlink and stack unwinding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants