Re: 4.03 tests fail due to 0006-Embed-bytecode-in-C-object-when-using-custom.patch
Ximin Luo:
> Hi, I'm trying to upload 4.03.0 to experimental but I can't because I have 1 test failure. I managed to narrow it down to being caused by our patch:
>
> Inside pbuilder:
>
> /build/ocaml-4.03.0/testsuite/tests/regression/pr3612# OCAML_CUSTOM_EMBED=y /build/ocaml-4.03.0/testsuite/../byterun/ocamlrun /build/ocaml-4.03.0/testsuite/../ocamlc -nostdlib -I /build/ocaml-4.03.0/testsuite/../stdlib -verbose `if [ -n "custom_finalize" ]; then echo '-custom'; fi` -o program.byte custom_finalize.o pr3612.cmo;
> + gcc -o 'program.byte' '-L/build/ocaml-4.03.0/testsuite/../stdlib' '/tmp/camlobjad8cb9.c' 'custom_finalize.o' '-lcamlrun' -lm -ldl -lcurses -lpthread
> /tmp/camlobjad8cb9.c:4:27: fatal error: caml/mlvalues.h: No such file or directory
> #include <caml/mlvalues.h>
> ^
> compilation terminated.
> File "_none_", line 1:
> Error: Error while building custom runtime system
>
>
> /build/ocaml-4.03.0/testsuite/tests/regression/pr3612# DEB_HOST_ARCH=1 /build/ocaml-4.03.0/testsuite/../byterun/ocamlrun /build/ocaml-4.03.0/testsuite/../ocamlc -nostdlib -I /build/ocaml-4.03.0/testsuite/../stdlib -verbose `if [ -n "custom_finalize" ]; then echo '-custom'; fi` -o program.byte custom_finalize.o pr3612.cmo;
> + gcc -o 'program.byte' '-L/build/ocaml-4.03.0/testsuite/../stdlib' '/tmp/camlobjeac49d.c' 'custom_finalize.o' '-lcamlrun' -lm -ldl -lcurses -lpthread
> /tmp/camlobjeac49d.c:4:27: fatal error: caml/mlvalues.h: No such file or directory
> #include <caml/mlvalues.h>
> ^
> compilation terminated.
> File "_none_", line 1:
> Error: Error while building custom runtime system
>
>
> /build/ocaml-4.03.0/testsuite/tests/regression/pr3612# /build/ocaml-4.03.0/testsuite/../byterun/ocamlrun /build/ocaml-4.03.0/testsuite/../ocamlc -nostdlib -I /build/ocaml-4.03.0/testsuite/../stdlib -verbose `if [ -n "custom_finalize" ]; then echo '-custom'; fi` -o program.byte custom_finalize.o pr3612.cmo;
> + gcc -o 'program.byte' '-L/build/ocaml-4.03.0/testsuite/../stdlib' '/tmp/camlprim3a0e19.c' 'custom_finalize.o' '-lcamlrun' -lm -ldl -lcurses -lpthread
>
>
> Stephane, could you take a look please?
>
OK, I see there are some test edits further down in the same patch. I've added this to the failing test and it works now. I've uploaded 4.03.0 to experimental, will summarise in another thread.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
Reply to: