-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
The 5.0.0
version of ocaml-base-compiler fail to compile on archlinux currently with the following error:
#=== ERROR while compiling ocaml-base-compiler.5.0.0 ==========================#
# context 2.3.0 | linux/x86_64 | | https://opam.ocaml.org#6e2437f434aaefdbe4b6c39fafe2bf40b3fe9479
# path ~/.opam/tmp/.opam-switch/build/ocaml-base-compiler.5.0.0
# command ~/.opam/opam-init/hooks/sandbox.sh build make -j15
# exit-code 2
# env-file ~/.opam/log/ocaml-base-compiler-123315-905fc7.env
# output-file ~/.opam/log/ocaml-base-compiler-123315-905fc7.out
### output ###
# [...]
# runtime/caml/prims.h:33:23: error: too many arguments to function ‘(value (*)(void))*(caml_prim_table.contents + (sizetype)((long unsigned int)*pc * 8))’; expected 0, have 2
# 33 | #define Primitive(n) ((c_primitive)(caml_prim_table.contents[n]))
# | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# runtime/interp.c:1073:14: note: in expansion of macro ‘Primitive’
# 1073 | accu = Primitive(*pc)(sp + 2, nargs);
# | ^~~~~~~~~
# make[2]: *** [Makefile:932: runtime/interp.b.o] Error 1
# make[2]: *** Waiting for unfinished jobs....
# make[2]: Leaving directory '/home/guigui/.opam/tmp/.opam-switch/build/ocaml-base-compiler.5.0.0'
# make[1]: *** [Makefile:175: coldstart] Error 2
# make[1]: Leaving directory '/home/guigui/.opam/tmp/.opam-switch/build/ocaml-base-compiler.5.0.0'
# make: *** [Makefile:339: world.opt] Error 2
Other versions of the compiler do not fail (I tested at least 4.14.2
and 5.1.0
), and the build succeeds if I install and use version 14
of gcc
(e.g. with CC=gcc-14 opam sw create tmp 5.0.0
), so I'd guess this is related to Archlinux having a quite recent version of gcc
, more precisely gcc (GCC) 15.1.1 20250425
in my case ^^
Looking at the recent issues, I think (but i'm not sure) that this might be related to ocaml/ocaml#11764 . Is there any hope of that patch being backported or some other solution ?
Metadata
Metadata
Assignees
Labels
No labels