[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



Source: opam
Version: 2.1.5-1
Severity: normal
X-Debbugs-Cc: tim.andersson@canonical.com

Dear Maintainer,

   * What led up to the situation?
      Investigating autopkgtest.ubuntu.com failures for opam (relating
      to the latest glibc)

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
```

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

-- System Information:
Debian Release: trixie/sid
  APT prefers noble-updates
  APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), (100, 'noble-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.0-1016-lowlatency (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply to: