Package: src:ocaml Version: 4.13.1-3 Severity: minor Tags: sid bookworm User: [email protected] Usertags: ftbfs-lto
This package currently fails to build (at least on the amd64 architecture) with link time optimizations enabled. For a background for LTO please see https://wiki.debian.org/ToolChain/LTO The goal is to enable this optimization by default in an upcoming Debian release in dpkg-buildflags for 64bit architectures. The goal is to get this package to build with link time optimizations, or to explicitly disable link time optimizations for this package build. To reproduce the build failure, enable the lto optimization in testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS in the debian/rules file, or if this macro is unset, just set it: export DEB_BUILD_MAINT_OPTIONS = optimize=+lto Please try to fix the build with lto enabled, fixing the packaging or forwarding the issue upstream. If the issue cannot be fixed, explicitly disallow building the package with lto by adding to your rules file: export DEB_BUILD_MAINT_OPTIONS = optimize=-lto or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS. The full build log can be found at: http://qa-logs.debian.net/2022/06/09/dpkglto/ocaml_4.13.1-3_unstable_dpkglto.log The last lines of the build log are at the end of this report. [...] ... testing 'w68.ml' with 1.1.1 (check-ocamlopt.byte-output) => passed ... testing 'w68.ml' with 1.1.1.1 (run) => passed ... testing 'w68.ml' with 1.1.1.1.1 (check-program-output) => passed Running tests from 'tests/win-unicode' ... ... testing 'mltest.ml' with 1 (windows-unicode) => skipped (Windows Unicode support not available) ... testing 'mltest.ml' with 1.1 (toplevel) => n/a List of skipped tests: tests/runtime-errors/'syserror.ml' with 2.1.1.2 (libwin32unix) tests/warnings/'w55.ml' with 3 (flambda) tests/basic-modules/'anonymous.ml' with 2.1.2 (flambda) tests/manual-intf-c tests/unwind tests/asmcomp/'is_static_flambda.ml' with 1 (flambda) tests/lib-unix/isatty/'isatty_tty.ml' with 1 (libwin32unix) tests/asmcomp/'func_sections.ml' with 1.4 (arch_i386) tests/flambda/'gpr2239.ml' with 1 (flambda) tests/lib-dynlink-csharp tests/asmcomp/'unrolling_flambda.ml' with 1 (flambda) tests/runtime-errors/'syserror.ml' with 1.1.1.2 (libwin32unix) tests/lib-unix/unix-execvpe/'exec.ml' with 1.1 (script) tests/runtime-errors/'stackoverflow.ml' with 2 (libwin32unix) tests/win-unicode tests/typing-unboxed-types/'test_no_flat.ml' with 1 (no-flat-float-array) tests/lib-unix/win-env tests/asmcomp/'func_sections.ml' with 1.1 (arch_arm) tests/asmcomp/'unrolling_flambda2.ml' with 1 (flambda) tests/flambda/'approx_meet.ml' with 1 (flambda) tests/asmcomp/'func_sections.ml' with 1.2 (arch_arm64) tests/warnings/'w59.ml' with 3 (flambda) tests/statmemprof/'callstacks.ml' with 2 (no-flat-float-array) tests/typing-misc/'pr6939-no-flat-float-array.ml' with 1 (no-flat-float-array) tests/lib-unix/win-stat tests/asmgen/'integr.cmm' with 1 (skip) tests/flambda/'afl_lazy.ml' with 1 (flambda) tests/lib-bigarray-2/'bigarrfml.ml' with 1 (script) tests/afl-instrumentation/'afltest.ml' with 1.1 (script) tests/flambda/'specialise.ml' with 1 (flambda) tests/lib-unix/win-symlink tests/asmcomp/'static_float_array_flambda.ml' with 1 (flambda) tests/translprim/'array_spec.ml' with 1.1.2 (no-flat-float-array) tests/translprim/'module_coercion.ml' with 1.1.2 (no-flat-float-array) tests/letrec-check/'no_flat_float_array.ml' with 1 (no-flat-float-array) tests/asmcomp/'lift_mutable_let_flambda.ml' with 1 (flambda) tests/arch-power tests/tool-caml-tex/'redirections.ml' with 1.1.2 (no-shared-libraries) tests/asmcomp/'static_float_array_flambda_opaque.ml' with 1 (flambda) List of failed tests: tests/output-complete-obj/'test.ml' with 2.1.1 (script) Summary: 2879 tests passed 39 tests skipped 1 tests failed 102 tests not started (parent test skipped or failed) 0 unexpected errors 3021 tests considered #### Something failed. Exiting with error status. make[4]: *** [Makefile:332: report] Error 4 make[3]: *** [Makefile:148: all] Error 2 make[3]: Leaving directory '/<<PKGBUILDDIR>>/testsuite' make[2]: *** [debian/rules:278: override_dh_auto_test] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: *** [debian/rules:87: build] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:82: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

