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

Custom runtime does not compile on FreeBSD #115

Open
orbitz opened this issue Feb 25, 2017 · 5 comments
Open

Custom runtime does not compile on FreeBSD #115

orbitz opened this issue Feb 25, 2017 · 5 comments

Comments

@orbitz
Copy link

orbitz commented Feb 25, 2017

I'm not sure if it compiles elsewhere but I get:

/tmp/camlprim076048-c98550.o:(.data+0x1038): undefined reference to `caml_nc_xor_into'
/tmp/camlprim076048-c98550.o:(.data+0x1040): undefined reference to `caml_nc_sha512_init'
/tmp/camlprim076048-c98550.o:(.data+0x1048): undefined reference to `caml_nc_sha512_update'
/tmp/camlprim076048-c98550.o:(.data+0x1050): undefined reference to `caml_nc_sha512_finalize'
/tmp/camlprim076048-c98550.o:(.data+0x1058): undefined reference to `caml_nc_sha512_ctx_size'
/tmp/camlprim076048-c98550.o:(.data+0x1060): undefined reference to `caml_nc_sha384_init'
...

I would guess this is the same issue as:

dbuenzli/mtime#16

@orbitz
Copy link
Author

orbitz commented Feb 25, 2017

This appears to have been introduced in 0.5.4.

@cfcs
Copy link

cfcs commented May 16, 2017

Cannot reproduce, 0.5.4 installs fine for me on both FreeBSD and Linux.

@copy
Copy link

copy commented Oct 3, 2017

Reproducible test case:

(* test.ml *)
let x = Nocrypto.Hash.digest
;; jbuild
(jbuild_version 1)
(library
  ((name test)
   (libraries (nocrypto))))

Command to reproduce: opam pin add jbuilder --dev-repo && jbuilder utop

This is on 0.5.4.

@hannesm
Copy link
Member

hannesm commented Oct 3, 2017

@copy thanks for the test case, I could reproduce -- when I pin ocb-stubblr to https://github.com/hannesm/ocb-stubblr.git#fix and recompile nocrypto afterwards, the error is gone.

See pqwy/ocb-stubblr#11 for the fix to ocb-stubblr.

@copy
Copy link

copy commented Oct 3, 2017

@hannesm Thanks for the super-quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants