Closed totaam closed 1 year ago
Fixes this one by adding -lpython3.10
to LDFLAGS
, inspiration came from https://bugs.gentoo.org/758473
libxslt
: skip tests, then the same fix as libxml2
.gtk-doc
: $JHBUILD_PREFIX/bin/python3 -m ensurepip && $JHBUILD_PREFIX/bin/python3 -m pip install pygments
.glib
:
[589/1179] Compiling Objective-C object gio/libgio-2.0.0.dylib.p/gosxcontenttype.m.o
FAILED: gio/libgio-2.0.0.dylib.p/gosxcontenttype.m.o
/Library/Developer/CommandLineTools/usr/bin/gcc -Igio/libgio-2.0.0.dylib.p -Igio -I../../../../gtk/source/glib-2.72.0/gio -I. -I../../../../gtk/source/glib-2.72.0 -Iglib -I../../../../gtk/source/glib-2.72.0/glib -Igobject -I../../../../gtk/source/glib-2.72.0/gobject -Igmodule -I../../../../gtk/source/glib-2.72.0/gmodule -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Users/totaam/gtk/inst/include -fcolor-diagnostics -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O2 -g -Wimplicit-fallthrough -Wmisleading-indentation -Wunused -Wno-unused-parameter -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self -Werror=missing-include-dirs -Werror=pointer-arith -Wstrict-prototypes -Wno-bad-function-cast -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=missing-prototypes -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk '-DG_LOG_DOMAIN="GLib-GIO"' -DGIO_COMPILATION '-DGIO_MODULE_DIR="/Users/totaam/gtk/inst/lib/gio/modules"' '-DLOCALSTATEDIR="/Users/totaam/gtk/inst/var"' -fvisibility=hidden -MD -MQ gio/libgio-2.0.0.dylib.p/gosxcontenttype.m.o -MF gio/libgio-2.0.0.dylib.p/gosxcontenttype.m.o.d -o gio/libgio-2.0.0.dylib.p/gosxcontenttype.m.o -c ../../../../gtk/source/glib-2.72.0/gio/gosxcontenttype.m
../../../../gtk/source/glib-2.72.0/gio/gosxcontenttype.m:63:11: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement]
CFIndex length = CFStringGetLength (str);
^
"Solved" by removing -Wdeclaration-after-statement
from build.ninja
.
gtk
:
FAILED: demos/gtk-demo/gtkdemo_resources.h
"Solved" by not building the demos
.
librsvg
: needs cargo
- probably installed wrong using the default location..pyobjc
: add -Wno-error=unreachable-code
python3-pyobjc-framework-cocoa
: CFLAGS="-Wno-error=uninitialized" python3 setup.py build ..
opus
: should use meson?vpx
: error: "--enable-runtime-cpu-detect selected, but no CPU detection method " "available for your platform
The bash
issue is a "security" feature, just use /bin/bash
instead.
cc0cab3e59cae373ab8ca04d495cd67eb3d86a1b pulls updates from upstream and saves the need for a lot of the workarounds. But we still have some new / unfixed ones:
--disable-arm-a64-neon
to avoid syntax errors in macro expansion~/gtk/source/libvpx-1.13.0/vpx_ports/arm_cpudetect.c:151:2: error: \
"--enable-runtime-cpu-detect selected, but no CPU detection method " "available for your platform. \
Reconfigure with --disable-runtime-cpu-detect."
After merging all the changes from upstream in cc0cab3e59cae373ab8ca04d495cd67eb3d86a1b, arm64
builds seem to work OK.
For testing the arm64 builds on the build system, this may be useful: How to enable OS X screen sharing (VNC) through SSH?
We no longer have to override arch=arm64
: 99d2ed1ef210cdd3a6ea23cb5775fffc89b82abe
And the minimum MacOS version is now 12: 7dd24486ea880fa942033430723c8c954e379c92
Following https://github.com/Xpra-org/xpra/blob/master/docs/Build/MacOS.md
Running the
gtk-osx-setup.sh
setup script, Python 3.10.10 complained that:Perhaps this will cause problems later?
Then:
Eh!
bootstrapping:
Because we need to set
arm64
in.jhbuildrc-custom
.zlib
complained about not findingninja
,pip3.10 install ninja
fixed that - but perhaps not the location we should be using..Then this more obscure one on
libxml2
: