Web lists-archives.com

Re: GitLab CI runners for non-Linux systems

On May 19, 2018, at 5:55 AM, xclaesse@xxxxxxxxx wrote:

Le vendredi 18 mai 2018 à 23:38 -0400, philip.chimento@xxxxxxxxx a
écrit :
On Fri, May 18, 2018 at 10:15 PM <xclaesse@xxxxxxxxx> wrote:
Le vendredi 18 mai 2018 à 10:52 +0100, Philip Withnall a écrit :
• macOS (ideally several versions, since we support from OS X

I did a quick test on a macmini (macOS 10.13.4) we have in
office, and it's almost too easy to setup, not even a challenge!

Well... except that glib fails to build with meson because libffi
subproject does not support darwin. I'll try to investigate that.

I've been building http://mirrors.kernel.org/sources.redhat.com/libff
i/libffi-3.2.1.tar.gz on macOS with no problems since at least 10.9.
I think maybe just the meson fork (https://github.com/centricular/lib
ffi/commits/meson) of libffi has this problem.

You could try pre-installing libffi from the tarball on the image,
then it wouldn't use the wrapped subproject, I think?

"brew install libffi" did the trick, I've got a working CI for macos

Well... now...

FAILED: glib/glib@@glib-2.0@sha/gatomic.c.o
cc -Iglib/glib@@glib-2.0@sha -Iglib -I../glib -I. -I../ -I/usr/local/Cellar/pcre/8.42/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -Werror -std=gnu89 -O0 -g -D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=format=2 -Werror=format-security -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -pthread '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -fvisibility=hidden  -MD -MQ 'glib/glib@@glib-2.0@sha/gatomic.c.o' -MF 'glib/glib@@glib-2.0@sha/gatomic.c.o.d' -o 'glib/glib@@glib-2.0@sha/gatomic.c.o' -c ../glib/gatomic.c
../glib/gatomic.c:399:10: error: incompatible integer to pointer conversion passing 'gssize' (aka 'long') to parameter of type 'gpointer' (aka 'void *') [-Werror,-Wint-conversion]
 return g_atomic_pointer_add ((volatile gpointer *) atomic, val);
../glib/gatomic.h:227:46: note: expanded from macro 'g_atomic_pointer_add'
   (gssize) __sync_fetch_and_add ((atomic), (val));                         \

That conversion is so integral to Glib and Gobject that there are macros for it: https://developer.gnome.org/glib/stable/glib-Type-Conversion-Macros.html.

You’ll just have to set -Wno-int-conversion in CFLAGS.

John Ralls

gtk-devel-list mailing list