Package Details: ocaml-cryptokit 1.13-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: 60
Popularity: 2.134821
First Submitted: 2009-12-31 17:31
Last Updated: 2018-05-14 21:25

Latest Comments

Kunda commented on 2018-05-15 16:28

First there is a new dependency ocaml-zarith and ocaml-zarith is failing on install:

Preparing...

Building ocaml-zarith...
Cloning into 'ocaml-zarith'...
remote: Counting objects: 4, done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 4 (delta 0), reused 4 (delta 0)        
Unpacking objects: 100% (4/4), done.
==> Making package: ocaml-zarith 1.7-1 (Tue May 15 12:27:40 EDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading release-1.7.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125    0   125    0     0    576      0 --:--:-- --:--:-- --:--:--   573
100 89617  100 89617    0     0   176k      0 --:--:-- --:--:-- --:--:--  176k
==> Validating source files with md5sums...
    release-1.7.tar.gz ... Passed
==> Validating source files with sha256sums...
    release-1.7.tar.gz ... Passed
==> Extracting sources...
  -> Extracting release-1.7.tar.gz with bsdtar
==> Starting build()...
binary ocaml: found in /usr/bin
binary ocamlc: found in /usr/bin
binary ocamldep: found in /usr/bin
binary ocamlmklib: found in /usr/bin
binary ocamldoc: found in /usr/bin
binary ar: found in /usr/bin
binary perl: found in /usr/bin
binary gcc: found in /usr/bin
binary ocamlopt: found in /usr/bin
checking compilation with gcc -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt: working
include caml/mlvalues.h: found
library dynlink.cmxa: found
binary ocamlfind: found in /usr/bin
OCaml's word size is 64
binary uname: found in /usr/bin
include gmp.h: found
library gmp: found
OCaml extended comparison supported
OCaml new hash functions available

detected configuration:

  native-code:          yes
  dynamic linking:      yes
  asm path:             x86_64
  defines:              -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX 
  libraries:            -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
  C options:            -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
  asm options           
  installation path:    /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml
  installation method   findlib

configuration successful!
now type "make" to build
then type "make install" or "sudo make install" to install
./z_pp.pl x86_64
Name "main::extra" used only once: possible typo at ./z_pp.pl line 29.
found assembly file caml_z_x86_64.S
  found abs
  found add
  found div
  found divexact
  found logand
  found lognot
  found logor
  found logxor
  found mul
  found neg
  found pred
  found rem
  found shift_left
  found shift_right
  found sub
  found succ
ocamldep -native  z.ml q.ml big_int_Z.ml z.mli q.mli big_int_Z.mli > depend
ocamlc   -c z.mli
ocamlc   -c z.ml
ocamlc   -c q.mli
ocamlc   -c q.ml
ocamlc   -c big_int_Z.mli
ocamlc   -c big_int_Z.ml
ocamlmklib -failsafe -o zarith z.cmo q.cmo big_int_Z.cmo -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
gcc -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX   -D_FORTIFY_SOURCE=2  -c -o caml_z_x86_64.o caml_z_x86_64.S
ocamlc -ccopt "-I/usr/lib/ocaml -D_FORTIFY_SOURCE=2 -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX  -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" -c caml_z.c
ocamlmklib -failsafe -o zarith caml_z_x86_64.o caml_z.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
ocamlopt   -c z.ml
ocamlopt   -c q.ml
ocamlopt   -c big_int_Z.ml
ocamlmklib -failsafe -o zarith z.cmx q.cmx big_int_Z.cmx -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
ocamlopt -shared -o zarith.cmxs -I . zarith.cmxa -linkall
==> Entering fakeroot environment...
==> Starting package()...
ocamlfind install -destdir "/tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml" zarith META zarith.h zarith.cma libzarith.a z.mli q.mli big_int_Z.mli z.cmi q.cmi big_int_Z.cmi zarith.a zarith.cmxa z.cmx q.cmx big_int_Z.cmx zarith.cmxs -optional dllzarith.so
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/dllzarith.so
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cmxs
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cmxa
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.a
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/libzarith.a
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cma
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.h
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/META
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "ocaml-zarith"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ocaml-zarith 1.7-1 (Tue May 15 12:27:44 EDT 2018)
==> Cleaning up...

Resolving dependencies...
Checking inter-conflicts...
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...

Failed to commit transaction:
conflicting files:
ocaml-zarith: /usr/lib/ocaml/zarith/META already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/dllzarith.so already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/libzarith.a already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.a already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cma already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cmxa already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cmxs already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.h already exists in filesystem

guicolorado commented on 2018-05-14 20:37

Para corrigir o problema, instale a dependência 'ocaml-zarith'.

radek_r commented on 2017-09-30 12:01

Please add achitecture "armv7h" to the PKGBUILD.

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')

All comments