Package Details: ocaml-cryptokit 1.13-2

Git Clone URL: https://aur.archlinux.org/ocaml-cryptokit.git (read-only, click to copy)
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: 63
Popularity: 0.000075
First Submitted: 2009-12-31 17:31
Last Updated: 2018-05-14 21:25

Latest Comments

1 2 Next › Last »

quattro commented on 2020-10-23 11:39

Package don't install ((

==> Продолжить сборку ocaml-cryptokit ? Да/нет [Y/n] ==> ------------------------------------------------ ==> ==> Сборка и установка пакета ==> Сборка пакета ocaml-cryptokit 1.13-2 (Пт 23 окт 2020 15:01:42) ==> Проверка зависимостей для запуска... ==> Проверка зависимостей для сборки... ==> Получение исходных файлов... -> Загрузка release113.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 133 100 133 0 0 300 0 --:--:-- --:--:-- --:--:-- 300 100 161k 0 161k 0 0 154k 0 --:--:-- 0:00:01 --:--:-- 154k ==> Проверка файлов source с использованием md5sums... release113.tar.gz ... Готово ==> Распаковка исходных файлов... -> Распаковка 'release113.tar.gz' с помощью bsdtar ==> Запускается build()... File "./setup.ml", line 1775, characters 22-40: 1775 | let compare = Pervasives.compare ^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "setup.ml", line 3467, characters 16-34: Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims

Configuration: ocamlfind: ...................................................... /usr/bin/ocamlfind ocamlc: ......................................................... /usr/bin/ocamlc.opt ocamlopt: ....................................................... /usr/bin/ocamlopt.opt ocamlbuild: ..................................................... /usr/bin/ocamlbuild Package name: ................................................... cryptokit Package version: ................................................ 1.13 os_type: ........................................................ Unix system: ......................................................... linux architecture: ................................................... amd64 ccomp_type: ..................................................... cc ocaml_version: .................................................. 4.11.1 standard_library_default: ....................................... /usr/lib/ocaml standard_library: ............................................... /usr/lib/ocaml bytecomp_c_compiler: ............................................ gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT native_c_compiler: .............................................. gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT model: .......................................................... default ext_obj: ........................................................ .o ext_asm: ........................................................ .s ext_lib: ........................................................ .a ext_dll: ........................................................ .so default_executable_name: ........................................ a.out systhread_supported: ............................................ true Install architecture-independent files dir: ..................... /usr/local Install architecture-dependent files in dir: .................... $prefix User executables: ............................................... $exec_prefix/bin System admin executables: ....................................... $exec_prefix/sbin Program executables: ............................................ $exec_prefix/libexec Read-only single-machine data: .................................. $prefix/etc Modifiable architecture-independent data: ....................... $prefix/com Modifiable single-machine data: ................................. $prefix/var Object code libraries: .......................................... $exec_prefix/lib Read-only arch-independent data root: ........................... $prefix/share Read-only architecture-independent data: ........................ $datarootdir Info documentation: ............................................. $datarootdir/info Locale-dependent data: .......................................... $datarootdir/locale Man documentation: .............................................. $datarootdir/man Documentation root: ............................................. $datarootdir/doc/$pkg_name HTML documentation: ............................................. $docdir DVI documentation: .............................................. $docdir PDF documentation: .............................................. $docdir PS documentation: ............................................... $docdir findlib_version: ................................................ 1.8.1 is_native: ...................................................... true suffix_program: ................................................. Remove a file.: ................................................. rm -f Remove a directory.: ............................................ rm -rf Turn ocaml debug flag on: ....................................... true Turn ocaml profile flag on: ..................................... false Compiler support generation of .cmxs.: .......................... true OCamlbuild additional flags: .................................... Enable ZLib: .................................................... true Enable hardware support for AES and GCM (needs GCC or Clang): ... true Build and run benchmark: ........................................ false Create documentations: .......................................... true Compile tests executable and library and run them: .............. false ocamldoc: ....................................................... /usr/bin/ocamldoc pkg_unix: ....................................................... /usr/lib/ocaml pkg_zarith: ..................................................... /usr/lib/ocaml/zarith

ocaml setup.ml -build File "./setup.ml", line 1775, characters 22-40: 1775 | let compare = Pervasives.compare ^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "setup.ml", line 3467, characters 16-34: Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims + /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 "myocamlbuild.ml", line 1: Error: Files /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa and /usr/lib/ocaml/stdlib.cmxa make inconsistent assumptions over implementation Stdlib__sys 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] Ошибка 1 ==> ОШИБКА: Произошел сбой в build(). Прерывание... ==> ОШИБКА: Makepkg не смог собрать ocaml-cryptokit. ==> Перезапустить сборку ocaml-cryptokit ? да/Нет [y/N] ==> ---------------------------------------------------

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.