Package Details: ocaml-base 0.12.0-1

Git Clone URL: https://aur.archlinux.org/ocaml-base.git (read-only)
Package Base: ocaml-base
Description: Full standard library replacement for OCaml
Upstream URL: https://github.com/janestreet/base
Licenses: MIT
Submitter: J5lx
Maintainer: J5lx
Last Packager: J5lx
Votes: 10
Popularity: 1.172233
First Submitted: 2018-06-27 19:45
Last Updated: 2019-05-14 11:43

Latest Comments

victorbrca commented on 2018-09-13 13:09

Thanks @J5lx, that did it! :)

J5lx commented on 2018-09-12 21:36

You should be able to solve that problem by recompiling ocaml-sexplib0.

victorbrca commented on 2018-09-12 21:02

That's odd... I have downloaded the new pkgbuild, but I'm still getting the same error:

==> Starting build()...
    ocamlopt compiler-stdlib/gen/.gen.eobjs/gen.{cmx,o}
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Config, and its interface was not compiled with -opaque
    ocamlopt shadow-stdlib/gen/.gen.eobjs/gen.{cmx,o}
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Cmi_format, and its interface was not compiled with -opaque
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Location, and its interface was not compiled with -opaque
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Printtyp, and its interface was not compiled with -opaque
      ocamlc src/.base.objs/base__Sexp.{cmi,cmti} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w -40 -safe-string -g -bin-annot -I src/.base.objs -I /usr/lib/ocaml/sexplib0 -I compiler-stdlib/src/.caml.objs -I shadow-stdlib/src/.shadow_stdlib.objs -no-alias-deps -open Base__ -o src/.base.objs/base__Sexp.cmi -c -intf src/sexp.mli)
File "src/sexp.mli", line 1:
Error: /usr/lib/ocaml/sexplib0/sexplib0.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build ocaml-base.

J5lx commented on 2018-09-07 00:23

The package has been updated. I don’t think I had fully realised how important this package had already become, since it’s still relatively young. Sorry for the long wait!

Kaktus commented on 2018-08-31 09:00

Thanks @mahendral for the comment. I had to edit your code a little bit in order to get this working. Here is what i changed:

pkgver=0.11.1
source=("https://github.com/janestreet/base/releases/download/v${pkgver}/base-v${pkgver}.tbz")
md5sums=('e7e7dc5db3f1fea19d74a31bbd4ac621')

Please update this package. There are many packages that rely on ocaml-base that can't be installed at the moment because of this problem.

mahendral commented on 2018-08-19 10:50

This error is solved by changing pkgver to 0.11.1 so change following in PKGBUILD file

pkgver=0.11.1 
source=     
("<https://github.com/janestreet/base/releases/download/v>${pkgver}/base- v${pkgver}.tbz")
md5sums=('e7e7dc5db3f1fea19d74a31bbd4ac621')

------------------------ERROR------------------------------

ocamlopt compiler-stdlib/gen/.gen.eobjs/gen.{cmx,o}
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Config, and its         interface was not compiled with -opaque
ocamlopt shadow-stdlib/gen/.gen.eobjs/gen.{cmx,o}
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Cmi_format, and its interface was not compiled with -opaque
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Location, and its interface was not compiled with -opaque
File "_none_", line 1:
Warning 58: no cmx file was found in path for module Printtyp, and its interface was not compiled with -opaque
ocamlc src/.base.objs/base__Formatter.{cmi,cmti} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w -40 -safe-string -g -bin-annot -I src/.base.objs -I /usr/lib/ocaml/sexplib0 -I compiler-stdlib/src/.caml.objs -I shadow-stdlib/src/.shadow_stdlib.objs -no-alias-deps -open Base__ -o src/.base.objs/base__Formatter.cmi -c -intf src/formatter.mli)
File "src/formatter.mli", line 9, characters 9-30:
Error: Unbound module Caml.Format
  ocamlc src/.base.objs/base__Import0.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w -40 -safe-string -g -bin-annot -I src/.base.objs -I /usr/lib/ocaml/sexplib0 -I compiler-stdlib/src/.caml.objs -I shadow-stdlib/src/.shadow_stdlib.objs -no-alias-deps -open Base__ -o src/.base.objs/base__Import0.cmo -c -impl src/import0.ml)
File "src/import0.ml", line 7, characters 6-394:
Error: The signature constrained by `with' has no component named Pervasives
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build .

------------------------ERROR------------------------------

netmarkjp commented on 2018-07-23 06:34

I got error about stubslibs too.

remove following line solved my problem. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ocaml-base#n29

  mv "${pkgdir}/usr/lib/ocaml/stubslibs" "${pkgdir}/usr/lib/ocaml/stublibs" # bug in opam

cb73 commented on 2018-07-18 20:56

When building ocaml-base 0.11.0-2, I got the following error:

Installing /tmp/yaourt-tmp-claudio/aur-ocaml-base/pkg/ocaml-base/usr/lib/ocaml/stublibs/dllbase_stubs.so mv: cannot stat '/tmp/yaourt-tmp-claudio/aur-ocaml-base/pkg/ocaml-base/usr/lib/ocaml/stubslibs': No such file or directory

Seems like the opam bug fix is not needed anymore?