[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1111499: opam fails to build with C23 due to illegal usage of Primitive macro in prims.h - new version available upstream



Hello,

Le 18/08/2025 à 18:52, Tim Andersson a écrit :
Source: opam
Version: 2.1.5-1
[...]
Here's the log:
```
138s # interp.c:957:14: note: in expansion of macro ‘Primitive’
138s # [...]
138s # 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
138s #    33 | #define Primitive(n) ((c_primitive)(caml_prim_table.contents[n]))
138s #       |                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138s # interp.c:966:14: note: in expansion of macro ‘Primitive’
138s #   966 |       accu = Primitive(*pc)(sp + 2, nargs);
138s #       |              ^~~~~~~~~
138s # make[2]: *** [Makefile:366: interp.b.o] Error 1
138s # make[2]: Leaving directory '/tmp/tmp.fz1ILHJwgq/.opam/4.14.1/.opam-switch/build/ocaml-base-compiler.4.14.1/runtime'
138s # make[1]: *** [Makefile:163: coldstart] Error 2
138s # make[1]: Leaving directory '/tmp/tmp.fz1ILHJwgq/.opam/4.14.1/.opam-switch/build/ocaml-base-compiler.4.14.1'
138s # make: *** [Makefile:311: world.opt] Error 2
```

It looks like the error is in the "ocaml-base-compiler" package in opam. I'm afraid there is not much we can do on the Debian side.

opam upstream has recently released version 2.4.1 of opam - perhaps an
upload of the new version would fix the issue.

Maybe, maybe not. I will update opam when the current batch of recently updated OCaml packages migrates to testing.


Cheers,

--
Stéphane


Reply to: