#1077602 js-of-ocaml: build fails

Package:
src:js-of-ocaml
Source:
src:js-of-ocaml
Submitter:
Ilari Jääskeläinen
Date:
2024-07-31 06:15:02 UTC
Severity:
normal
Tags:
#1077602#5
Date:
2024-07-30 11:10:54 UTC
From:
To:
ijaaskelainen@silvermont:~/Workstation/js-of-ocaml/js_of_ocaml-5.8.2$ dpkg-buildpackage -F --no-sign
dpkg-buildpackage: info: source package js-of-ocaml
dpkg-buildpackage: info: source version 5.8.2-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Stéphane Glondu <glondu@debian.org>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 0001-Do-not-use-Werror.patch
dpkg-source: info: applying fix_cmdliner_1.1.1.patch
 debian/rules clean
dh clean --with ocaml --buildsystem ocaml_dune
   dh_auto_clean -O--buildsystem=ocaml_dune
	dune clean
   dh_autoreconf_clean -O--buildsystem=ocaml_dune
   dh_ocamlclean -O--buildsystem=ocaml_dune
   dh_clean -O--buildsystem=ocaml_dune
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building js-of-ocaml using existing ./js-of-ocaml_5.8.2.orig.tar.bz2
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building js-of-ocaml in js-of-ocaml_5.8.2-2.debian.tar.xz
dpkg-source: info: building js-of-ocaml in js-of-ocaml_5.8.2-2.dsc
 debian/rules binary
dh binary --with ocaml --buildsystem ocaml_dune
   dh_update_autotools_config -O--buildsystem=ocaml_dune
   dh_autoreconf -O--buildsystem=ocaml_dune
   dh_ocamlinit -O--buildsystem=ocaml_dune
   dh_auto_configure -O--buildsystem=ocaml_dune
   debian/rules execute_before_dh_auto_build
make[1]: Siirrytään hakemistoon ”/home/ijaaskelainen/Workstation/js-of-ocaml/js_of_ocaml-5.8.2”
rm -f compiler/tests-jsoo/dune         # makes the build fail on amd64
rm -f compiler/lib-runtime/tests/dune  # makes the build fail on bytecode architectures
/usr/bin/make doc
make[2]: Siirrytään hakemistoon ”/home/ijaaskelainen/Workstation/js-of-ocaml/js_of_ocaml-5.8.2”
rm -rf doc-dev
mkdir doc-dev
dune clean
dune build @doc --cache=disabled --force
File "lib/deriving_json/.js_of_ocaml_deriving.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "deriving_Json_import.cmt":
not an implementation
File "lib/runtime/.jsoo_runtime.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "jsoo_runtime__.cmt":
not an implementation
File "ppx/ppx_js/as-lib/.ppx_js.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "ppx_js__.cmt":
not an implementation
File "compiler/lib/.js_of_ocaml_compiler.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "js_of_ocaml_compiler.cmt":
not an implementation
File "lib/deriving_json/.js_of_ocaml_deriving.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "deriving_Json_lexer.cmti":
not an interface
File "ppx/ppx_deriving_json/lib/.ppx_deriving_json.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "ppx_deriving_json.cmti":
not an interface
make[2]: *** [Makefile:13: doc] Virhe 1
make[2]: Poistutaan hakemistosta ”/home/ijaaskelainen/Workstation/js-of-ocaml/js_of_ocaml-5.8.2”
make[1]: *** [debian/rules:12: execute_before_dh_auto_build] Virhe 2
make[1]: Poistutaan hakemistosta ”/home/ijaaskelainen/Workstation/js-of-ocaml/js_of_ocaml-5.8.2”
make: *** [debian/rules:7: binary] Virhe 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
ijaaskelainen@silvermont:~/Workstation/js-of-ocaml/js_of_ocaml-5.8.2$

#1077602#10
Date:
2024-07-30 12:49:52 UTC
From:
To:
Le 30/07/2024 à 13:10, Ilari Jääskeläinen a écrit :

I cannot reproduce in sid nor trixie. You claim "stable" (aka bookworm),
but js-of-ocaml (= 5.8.2-2) needs dh-ocaml (>= 1.2.2) which is not in
stable.

Can you tell us more about your environment and what you are trying to
achieve?


Cheers,

#1077602#17
Date:
2024-07-31 02:55:37 UTC
From:
To:
Oh I have handbuilt the whole OCAML toolchain including dh-ocaml.

LähetettyOutlook for Android<https://aka.ms/AAb9ysg>


I cannot reproduce in sid nor trixie. You claim "stable" (aka bookworm),
but js-of-ocaml (= 5.8.2-2) needs dh-ocaml (>= 1.2.2) which is not in
stable.

Can you tell us more about your environment and what you are trying to
achieve?


Cheers,

#1077602#22
Date:
2024-07-31 06:09:09 UTC
From:
To:
Le 31/07/2024 à 04:55, Mister Ilari Jääskeläinen a écrit :
I see. For js-of-ocaml, you have to build only arch:any packages first
(dpkg-buildpackage -B), manage to have odoc built (ISTR js-of-ocaml is
needed for this), then do a full build of js-of-ocaml.

BTW, I think my transition scripts [1] can be easily adapted for this
kind of endeavour.

[1]
https://salsa.debian.org/debian/ben/-/tree/master/examples/transition-scripts


Cheers,