Closed davidnowak closed 8 months ago
Workaround: opam pin lablgtk3 3.1.3
I’m having what seems like the probably the same issue — a build failure for lablgtk3 3.1.4 on macOS Sonoma 14.4, on a fairly clean system, with other opam
packages building fine — but with different error details:
#=== ERROR while compiling lablgtk3.3.1.4 =====================================#
# context 2.1.5 | macos/arm64 | ocaml.5.1.1 | https://opam.ocaml.org#ac9a846c
# path ~/.opam/default/.opam-switch/build/lablgtk3.3.1.4
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lablgtk3 -j 11
# exit-code 1
# env-file ~/.opam/log/lablgtk3-31404-a4c564.env
# output-file ~/.opam/log/lablgtk3-31404-a4c564.out
### output ###
# [...]
# #define GLIB_DEPRECATED_MACRO_IN_2_30_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
# ^
# /opt/homebrew/Cellar/glib/2.80.0/include/glib-2.0/glib/gmacros.h:1300:3: note: expanded from macro 'GLIB_DEPRECATED_MACRO_FOR'
# _GLIB_GNUC_DO_PRAGMA(GCC warning G_STRINGIFY (Deprecated pre-processor symbol: replace with #f))
# ^
# /opt/homebrew/Cellar/glib/2.80.0/include/glib-2.0/glib/gmacros.h:1297:33: note: expanded from macro '_GLIB_GNUC_DO_PRAGMA'
# #define _GLIB_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY (x))
# ^
# <scratch space>:84:6: note: expanded from here
# GCC warning "Deprecated pre-processor symbol: replace with \"const\""
# ^
# 6 warnings generated.
My gcc --version
returns almost exactly the same as @davidnowak gives above:
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Following @davidnowak ’s suggested workaround, lablgtk3.3.1.3 installs fine.
I can confirm both the issue with lablgtk3.3.1.4 and that falling back to lablgtk3.3.1.3 fixes this (in the Coq Platform context).
Passing a function pointer without a cast seems to be a bad idea... Fixed; will also put the patch in opam before doing a new release.
A successful
opam init
followed byopam install lablgtk3
fails on macOS Sonoma 14.4:In case it is related to issue #177, the command
gcc --version
returns: