Open smondet opened 9 years ago
Also inside opam the error is different but seems also related to marshalling:
Fatal error: exception Invalid_argument("output_value: functional value")
(from there: https://travis-ci.org/hammerlab/ketrew/jobs/36071380)
The difference between with and without opam, was the version ocaml-dumpast
used.
With the “right” one, the error is:
Fatal error: exception Invalid_argument("output_value: functional value")
I cannot build the hello world example:
do nov 13 21:23:36 UTC 2014 sander@s1:/home/sander/devel/hello/
# assemblage describe
==> Loading assemble.ml
==> hello version-not-set
└─┬─ bin-hello
└─ main.ml
do nov 13 21:25:15 UTC 2014 sander@s1:/home/sander/devel/sopp/hello/
# assemblage setup
==> Loading assemble.ml
==> hello version-not-set
==> write Makefile
==> skip META
==> write hello.install
==> write .merlin
do nov 13 21:25:41 UTC 2014 sander@s1:/home/sander/devel/hello/
# make install
bin-hello <= prepare bin-hello
main.ml <= prepare unit-main-bin-hello
main.cml-byte <= pp-byte unit-main-bin-hello
Fatal error: exception Invalid_argument("output_value: functional value")
all => bin
make[1]: Entering directory '/home/sander/devel/sopp/hello'
main.ml.d <= dep unit-main-bin-hello
Fatal error: exception End_of_file
make[1]: *** No rule to make target '_build/bin-hello/main.ml.d', needed by '_build/bin-hello/main.cmo'. Stop.
make[1]: Leaving directory '/home/sander/devel/sopp/hello'
Makefile:118: recipe for target 'all' failed
make: *** [all] Error 2
My environment:
# ocaml -version
The OCaml toplevel, version 4.02.1
# opam --version
1.2.0
# opam info assemblage
package: assemblage
version: ~unknown
pinned: git (a3d7e4be)
upstream-url: /opt/installers/assemblage
upstream-kind: git
author: Thomas Gazagnaire <thomas@gazagnaire.org>, Daniel Bünzli <daniel.buenzli i@erratique.ch>
license: ISC
depends: cmdliner & dumpast
installed-version: ~unknown [4.02.1]
available-version: ~unknown
description:
I guess this is an issue with ocaml-dump
. Might need some porting to the latest release of OCaml.
Maybe this is an OCaml bug.
Still with this: https://github.com/smondet/atd2cconv When switching to OCaml 4.02.0:
The command that fails (run by the generated Makefile) is:
The marchalled file looks like:
Replacing
atd2cconv.cmli-byte
withatd2cconv.mli
makes the command work, and the next one fails in the same way (thecml-byte
, and then thecml-native
, etc...).