Closed MisterDA closed 1 year ago
Run the bytecode executable with ocamlrun to always have debug information. Debug info is currently removed on complete bytecode executables with ocamlc' -output-complete-exe. CAML_LD_LIBRARY_PATH must also (portably) point to the directory containing the shared library build from Alcotest C stubs.
A run of opam-repo-ci showed that source code locations aren't retained when running OCaml 5.0 bytecode compiler under arm32, ppc64, s390x, and x86_32.
https://opam-ci.ci3.ocamllabs.io/github/ocaml/opam-repository/commit/ed16529ae0727fdbab41878c3a0fd02b3440bdcd
The problem can be reproduced with the following Dockerfile (using Docker buildx with qemu to emulate the arches):