Package Details: ocaml-cryptokit 1.11-2

Git Clone URL: https://aur.archlinux.org/ocaml-cryptokit.git (read-only)
Package Base: ocaml-cryptokit
Description: Cryptographic primitives for OCaml
Upstream URL: http://pauillac.inria.fr/~xleroy/software.html#cryptokit
Licenses: LGPL
Submitter: None
Maintainer: oriba
Last Packager: oriba
Votes: 52
Popularity: 0.647112
First Submitted: 2009-12-31 17:31
Last Updated: 2016-11-04 18:43

Dependencies (6)

Required by (4)

Sources (1)

Latest Comments

zwastik commented on 2017-04-21 03:43

I am having the exact same problem described here. I rebuilded zarith again (which did not make much sense because I had just builded and installed it some minutes ago for the first time but whatever) and installed it but the same error message keeps popping up.
I have an intel processor (sandy bridge).
Any ideas? thx

oriba commented on 2017-01-02 00:27

Tried to build ocaml-cryptokit and got errors.
Needed to rebuild and install zarith.
Then tried making ocaml-cryptokit again and package could be created.
Which kind of processor do you have?
Maybe it's not working on certain architectures?

rigelk commented on 2017-01-01 23:21

Still the same error as colorprint and WeirdJules here… I’m scratching my head around the issue but rebuilding zarith is of no use, even after installing ocamlbuild as pointed out in the previous answers.

WeirdJules commented on 2016-12-06 23:24

I'm having trouble getting it to work. I've tried rebuilding zarith but I'm still getting an error like colorprint.

/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32S against symbol `caml_data_segments' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10")
make: *** [Makefile:7: build] Error 1

I don't know how zarith could've been built with the wrong version of OCaml. I've only ever had 4.04 installed.

nerflad commented on 2016-11-04 19:04

Thanks, rebuilding zarith fixed the error for me.

oriba commented on 2016-11-04 18:43

Addingn ocamlbuild to makdepends is what I already did, but I did not pushed it.
installing ocamlbuild did not solve the problem, that since OCaml 4.03 the package does not compile anymore, weven with ocamlbuild installed.

But I found the problem.
Error message is not very detailed.
in _build/_log I could locate the problem.
zarith was compiled with older OCaml-version.

So, ocaml-cryptokit now compiles again. Problem solved.

GalacticArachnid commented on 2016-11-04 11:05

I had the same problem when trying to compile, fixed by installing `ocamlbuild`.

I think the following change to PKGBUILD would fix this issue

13c13
< makedepends=('ocaml' 'ocaml-findlib')
---
> makedepends=('ocaml' 'ocaml-findlib', 'ocamlbuild')

oriba commented on 2016-10-31 14:33

Regarding out-of-date-flagging from 2016-10-30:
Asked the dev. about new package release, that will work under new conditions (Ocaml 4.03, ocamlbuild seperated.). Hope to get answer soon.

oriba commented on 2015-09-18 10:11

Tried to compile. Works here.

colorprint commented on 2015-09-18 09:53

Not works.


/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/ocaml/libasmrun.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug -classic-display' terminated with error code 10")
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build ocaml-cryptokit.

oriba commented on 2014-12-20 20:51

Warning: the signature is not checked so far.

oriba commented on 2014-01-06 17:05

OK, I adopted the package.

gatonero commented on 2013-10-21 18:25

Would be nice somebody would maintain this package. I need it for google-drive-ocamlfuse. There is an error while building:

ocaml setup.ml -build -classic-display
/usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "caml_startup", line 1:
Error: Cannot find file libasmrun.a
Command exited with code 2.
E: Failure("Command '/usr/bin/ocamlbuild src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxs src/cryptokit.cmxa src/cryptokit.a test/test.byte -tag debug -classic-display' terminated with error code 10")
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 1

Anonymous comment on 2011-08-30 11:31

I don't use ocaml any more, feel free to take it over.