Unable to build glib in macOS

I tried to build GLib on macOS Sonoma 14.5 with an M2 processor but ran into a linking issue. Am I missing something? I can’t figure out why it’s not working. I’ve removed some warnings from the log so it does not exceed the character limit

ninja log

[1/6] Generating girepository/introspection/Gio-2.0.gir with a custom command (wrapped by meson to set env)
FAILED: girepository/introspection/Gio-2.0.gir 
env PKG_CONFIG_PATH=/Users/user/dev/glib/_build/meson-uninstalled PKG_CONFIG=/opt/homebrew/bin/pkg-config 'CC=ccache cc' /opt/homebrew/Cellar/gobject-introspection/1.80.1/bin/g-ir-scanner --quiet --no-libtool --namespace=Gio --nsversion=2.0 --warn-all --output girepository/introspection/Gio-2.0.gir --c-include=gio/gio.h --quiet -DGIO_COMPILATION -DG_SETTINGS_ENABLE_BACKEND --symbol-prefix=gio --c-include=gio/gfiledescriptorbased.h --c-include=gio/gunixmounts.h --c-include=gio/gunixfdmessage.h --c-include=gio/gunixinputstream.h --c-include=gio/gunixoutputstream.h --pkg=gio-unix-2.0 -I/Users/user/dev/glib/girepository/introspection -I/Users/user/dev/glib/_build/girepository/introspection -I/Users/user/dev/glib/. -I/Users/user/dev/glib/_build/. -I/Users/user/dev/glib/gio -I/Users/user/dev/glib/_build/gio -I/Users/user/dev/glib/glib -I/Users/user/dev/glib/_build/glib -I/Users/user/dev/glib/subprojects/proxy-libintl/. -I/Users/user/dev/glib/_build/subprojects/proxy-libintl/. -I/Users/user/dev/glib/gobject -I/Users/user/dev/glib/_build/gobject -I/Users/user/dev/glib/gmodule -I/Users/user/dev/glib/_build/gmodule -I/Users/user/dev/glib/subprojects/gvdb/. -I/Users/user/dev/glib/_build/subprojects/gvdb/. --filelist=/Users/user/dev/glib/_build/gio/libgio-2.0.0.dylib.p/Gio_2.0_gir_filelist --include-uninstalled=girepository/introspection/GLib-2.0.gir --include-uninstalled=girepository/introspection/GModule-2.0.gir --include-uninstalled=girepository/introspection/GObject-2.0.gir --symbol-prefix=g --identifier-prefix=G --pkg-export=gio-2.0 --pkg-export=gio-unix-2.0 --cflags-begin -D_GNU_SOURCE -DG_DISABLE_CAST_CHECKS -I/Users/user/dev/glib/. -I/Users/user/dev/glib/_build/. -I/Users/user/dev/glib/gio -I/Users/user/dev/glib/_build/gio -I/Users/user/dev/glib/glib -I/Users/user/dev/glib/_build/glib -I/Users/user/dev/glib/subprojects/proxy-libintl/. -I/Users/user/dev/glib/_build/subprojects/proxy-libintl/. -I/Users/user/dev/glib/gobject -I/Users/user/dev/glib/_build/gobject -I/Users/user/dev/glib/gmodule -I/Users/user/dev/glib/_build/gmodule -I/Users/user/dev/glib/subprojects/gvdb/. -I/Users/user/dev/glib/_build/subprojects/gvdb/. -I/Users/user/dev/glib/girepository -I/Users/user/dev/glib/_build/girepository -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi -I/opt/homebrew/Cellar/pcre2/10.44/include -I/opt/homebrew/Cellar/gobject-introspection/1.80.1/include/gobject-introspection-1.0 -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include --cflags-end --add-include-path=/Users/user/dev/glib/_build/girepository/introspection --add-include-path=/opt/homebrew/Cellar/gobject-introspection/1.80.1/share/gir-1.0 --add-include-path=/Users/user/dev/glib/_build/girepository/introspection --add-include-path=/Users/user/dev/glib/_build/girepository/introspection --add-include-path=/Users/user/dev/glib/_build/girepository/introspection -L/Users/user/dev/glib/_build/girepository -L/Users/user/dev/glib/_build/glib -L/Users/user/dev/glib/_build/subprojects/proxy-libintl -L/Users/user/dev/glib/_build/gobject -L/Users/user/dev/glib/_build/gmodule -L/Users/user/dev/glib/_build/gio -L/opt/homebrew/Cellar/pcre2/10.44/lib --extra-library=girepository-2.0 --extra-library=glib-2.0 --extra-library=intl --extra-library=gobject-2.0 --extra-library=gio-2.0 --extra-library=gmodule-2.0 -L/Users/user/dev/glib/_build/gio --library gio-2.0 -L/Users/user/dev/glib/_build/glib -L/Users/user/dev/glib/_build/subprojects/proxy-libintl -L/Users/user/dev/glib/_build/gobject -L/Users/user/dev/glib/_build/gmodule -L/opt/homebrew/Cellar/pcre2/10.44/lib --extra-library=z --extra-library=resolv --extra-library=ffi --extra-library=iconv --extra-library=m -L/opt/homebrew/Cellar/pcre2/10.44/lib --extra-library=pcre2-8 -L/opt/homebrew/Cellar/gobject-introspection/1.80.1/lib -L/opt/homebrew/Cellar/glib/2.80.4/lib -L/opt/homebrew/opt/gettext/lib --extra-library=girepository-1.0 --extra-library=gobject-2.0 --extra-library=glib-2.0 --extra-library=intl --sources-top-dirs /Users/user/dev/glib/ --sources-top-dirs /Users/user/dev/glib/_build/
../gio/gfile.c:7369: Error: Gio: multiple "not" annotations:
 * @iostream: (out) (not optional) (not nullable) (transfer full): on return, a #GFileIOStream for the created file
                                                ^
../gio/gfilteroutputstream.c:103: Warning: Gio: multiple comment blocks documenting 'GFilterOutputStream:close-base-stream:' identifier (already seen at gfilteroutputstream.c:91).
../gio/gdtlsclientconnection.c:108: Warning: Gio: unexpected annotation: element-type
../gio/gdbusmessage.c:3764: Warning: Gio: GObject-Introspection specific GTK-Doc tag "Type" has been deprecated, please use annotations on the identifier instead:
 * Type:    method-call
   ^
../gio/gdbusmessage.c:3779: Warning: Gio: GObject-Introspection specific GTK-Doc tag "Type" has been deprecated, please use annotations on the identifier instead:
 * Type:    method-return
   ^
ld: warning: duplicate -rpath '/Users/user/dev/glib/_build/gio' ignored
ld: warning: duplicate -rpath '/Users/user/dev/glib/_build/glib' ignored
ld: warning: duplicate -rpath '/Users/user/dev/glib/_build/subprojects/proxy-libintl' ignored
ld: warning: duplicate -rpath '/Users/user/dev/glib/_build/gobject' ignored
ld: warning: duplicate -rpath '/Users/user/dev/glib/_build/gmodule' ignored
ld: warning: duplicate -rpath '/opt/homebrew/Cellar/pcre2/10.44/lib' ignored
ld: warning: duplicate -rpath '/opt/homebrew/Cellar/pcre2/10.44/lib' ignored
ld: warning: ignoring duplicate libraries: '-lgio-2.0', '-lglib-2.0', '-lgmodule-2.0', '-lgobject-2.0', '-lintl'
ld: Undefined symbols:
  _g_osx_network_monitor_get_type, referenced from:
      _GI_GET_TYPE_FUNCS_ in Gio-2.0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
linking of temporary binary failed: Command '['ccache', 'cc', '-o', '/Users/user/dev/glib/_build/tmp-introspect8msl3q15/Gio-2.0', '/Users/user/dev/glib/_build/tmp-introspect8msl3q15/Gio-2.0.o', '-L.', '-Wl,-rpath,.', '-L/Users/user/dev/glib/_build/girepository', '-Wl,-rpath,/Users/user/dev/glib/_build/girepository', '-L/Users/user/dev/glib/_build/glib', '-Wl,-rpath,/Users/user/dev/glib/_build/glib', '-L/Users/user/dev/glib/_build/subprojects/proxy-libintl', '-Wl,-rpath,/Users/user/dev/glib/_build/subprojects/proxy-libintl', '-L/Users/user/dev/glib/_build/gobject', '-Wl,-rpath,/Users/user/dev/glib/_build/gobject', '-L/Users/user/dev/glib/_build/gmodule', '-Wl,-rpath,/Users/user/dev/glib/_build/gmodule', '-L/Users/user/dev/glib/_build/gio', '-Wl,-rpath,/Users/user/dev/glib/_build/gio', '-L/opt/homebrew/Cellar/pcre2/10.44/lib', '-Wl,-rpath,/opt/homebrew/Cellar/pcre2/10.44/lib', '-L/Users/user/dev/glib/_build/gio', '-Wl,-rpath,/Users/user/dev/glib/_build/gio', '-L/Users/user/dev/glib/_build/glib', '-Wl,-rpath,/Users/user/dev/glib/_build/glib', '-L/Users/user/dev/glib/_build/subprojects/proxy-libintl', '-Wl,-rpath,/Users/user/dev/glib/_build/subprojects/proxy-libintl', '-L/Users/user/dev/glib/_build/gobject', '-Wl,-rpath,/Users/user/dev/glib/_build/gobject', '-L/Users/user/dev/glib/_build/gmodule', '-Wl,-rpath,/Users/user/dev/glib/_build/gmodule', '-L/opt/homebrew/Cellar/pcre2/10.44/lib', '-Wl,-rpath,/opt/homebrew/Cellar/pcre2/10.44/lib', '-L/opt/homebrew/Cellar/pcre2/10.44/lib', '-Wl,-rpath,/opt/homebrew/Cellar/pcre2/10.44/lib', '-L/opt/homebrew/Cellar/gobject-introspection/1.80.1/lib', '-Wl,-rpath,/opt/homebrew/Cellar/gobject-introspection/1.80.1/lib', '-L/opt/homebrew/Cellar/glib/2.80.4/lib', '-Wl,-rpath,/opt/homebrew/Cellar/glib/2.80.4/lib', '-L/opt/homebrew/opt/gettext/lib', '-Wl,-rpath,/opt/homebrew/opt/gettext/lib', '-lgio-2.0', '-lgirepository-2.0', '-lglib-2.0', '-lintl', '-lgobject-2.0', '-lgio-2.0', '-lgmodule-2.0', '-lz', '-lresolv', '-lffi', '-liconv', '-lm', '-lpcre2-8', '-lgirepository-1.0', '-lgobject-2.0', '-lglib-2.0', '-lintl', '-L/Users/user/dev/glib/_build/gmodule', '-L/Users/user/dev/glib/_build/gio', '-L/Users/user/dev/glib/_build/gobject', '-L/Users/user/dev/glib/_build/glib', '-L/Users/user/dev/glib/_build/subprojects/proxy-libintl', '-lgmodule-2.0', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0', '-lintl']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.


Hi @Roshan-R,

I wonder if this is a Meson issue, seeing that there are issues with rpath. The build process may be mixing built artifacts with GLib binaries found in PATH (/opt/homebrew/…). Could you upload the meson.log file?

GOSXNetworkMonitor has been introduced very recently, specifically in GOsxNetworkMonitor: Add network monitor backend for OS X (!3744) · Merge requests · GNOME / GLib · GitLab. Some things you can try:

As you suggested, I checked out commit fc72d920 and now the code complies with no problem

here’s the meson log by the way

The Meson build system
Version: 1.5.0
Source dir: /Users/user/dev/glib
Build dir: /Users/user/dev/glib/_build
Build type: native build
Project name: glib
Project version: 2.81.0
C compiler for the host machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
C linker for the host machine: cc ld64 1015.7
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -std=c89: YES 
Compiler for C supports arguments -std=c99: YES 
Compiler for C supports arguments -std=c11: YES 
Compiler for C supports arguments -std=c17: YES 
C++ compiler for the host machine: ccache c++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
C++ linker for the host machine: c++ ld64 1015.7
Compiler for C++ supports arguments -std=c++98: YES 
Compiler for C++ supports arguments -std=c++03: YES 
Compiler for C++ supports arguments -std=c++11: YES 
Compiler for C++ supports arguments -std=c++14: YES 
Compiler for C++ supports arguments -std=c++17: YES 
Compiler for C++ supports arguments -std=c++20: YES 
Compiler for C++ supports arguments -std=c++2b: YES 
Compiler for C++ supports arguments -std=c++latest: NO 
Checking if "building for iOS" compiles: NO 
Program ./.gitlab-ci/thorough-test-wrapper.sh found: YES (/bin/bash /Users/user/dev/glib/./.gitlab-ci/thorough-test-wrapper.sh)
Program valgrind found: NO
Compiler for C supports arguments -fno-strict-aliasing: YES 
Message: Disabling cast checks
Has header "alloca.h" : YES 
Has header "afunix.h" : NO 
Has header "crt_externs.h" : YES 
Has header "dirent.h" : YES 
Has header "float.h" : YES 
Has header "fstab.h" : YES 
Has header "ftw.h" : YES 
Has header "grp.h" : YES 
Has header "inttypes.h" : YES 
Has header "libproc.h" : YES 
Has header "limits.h" : YES 
Has header "locale.h" : YES 
Has header "mach/mach_time.h" : YES 
Has header "memory.h" : YES 
Has header "mntent.h" : NO 
Has header "poll.h" : YES 
Has header "pwd.h" : YES 
Has header "sched.h" : YES 
Has header "spawn.h" : YES 
Has header "stdatomic.h" : YES 
Has header "stdint.h" : YES 
Has header "stdlib.h" : YES 
Has header "string.h" : YES 
Has header "strings.h" : YES 
Has header "sys/auxv.h" : NO 
Has header "sys/event.h" : YES 
Has header "sys/filio.h" : YES 
Has header "sys/inotify.h" : NO 
Has header "sys/mkdev.h" : NO 
Has header "sys/mntctl.h" : NO 
Has header "sys/mnttab.h" : NO 
Has header "sys/mount.h" : YES 
Has header "sys/param.h" : YES 
Has header "sys/prctl.h" : NO 
Has header "sys/resource.h" : YES 
Has header "sys/select.h" : YES 
Has header "sys/statfs.h" : NO 
Has header "sys/stat.h" : YES 
Has header "sys/statvfs.h" : YES 
Has header "sys/sysctl.h" : YES 
Has header "sys/time.h" : YES 
Has header "sys/times.h" : YES 
Has header "sys/types.h" : YES 
Has header "sys/uio.h" : YES 
Has header "sys/vfs.h" : NO 
Has header "sys/vfstab.h" : NO 
Has header "sys/vmount.h" : NO 
Has header "sys/wait.h" : YES 
Has header "syslog.h" : YES 
Has header "termios.h" : YES 
Has header "unistd.h" : YES 
Has header "values.h" : NO 
Has header "wchar.h" : YES 
Has header "xlocale.h" : YES 
Check usable header "malloc.h" : NO 
Check usable header "linux/netlink.h" : NO 
Checking if "statx() test" compiles: NO 
Header "locale.h" has symbol "LC_MESSAGES" : YES 
Checking if "type "struct stat" has member "st_mtimensec"" compiles: NO 
Checking if "type "struct stat" has member "st_mtim.tv_nsec"" compiles: NO 
Checking if "type "struct stat" has member "st_atimensec"" compiles: NO 
Checking if "type "struct stat" has member "st_atim.tv_nsec"" compiles: NO 
Checking if "type "struct stat" has member "st_ctimensec"" compiles: NO 
Checking if "type "struct stat" has member "st_ctim.tv_nsec"" compiles: NO 
Checking if "type "struct stat" has member "st_birthtime"" compiles: YES 
Checking if "type "struct stat" has member "st_birthtimensec"" compiles: NO 
Checking if "type "struct stat" has member "st_birthtim"" compiles: NO 
Checking if "type "struct stat" has member "st_birthtim.tv_nsec"" compiles: NO 
Checking if "type "struct stat" has member "st_blksize"" compiles: YES 
Checking if "type "struct stat" has member "st_blocks"" compiles: YES 
Checking if "type "struct statfs" has member "f_fstypename"" compiles: YES 
Checking if "type "struct statfs" has member "f_bavail"" compiles: YES 
Checking if "type "struct dirent" has member "d_type"" compiles: YES 
Checking if "type "struct statvfs" has member "f_basetype"" compiles: NO 
Checking if "type "struct statvfs" has member "f_fstypename"" compiles: NO 
Checking if "type "struct statvfs" has member "f_type"" compiles: NO 
Checking if "type "struct tm" has member "tm_gmtoff"" compiles: YES 
Checking if "type "struct tm" has member "__tm_gmtoff"" compiles: NO 
Compiler for C supports arguments -Wduplicated-branches: NO 
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Compiler for C supports arguments -Wmisleading-indentation: YES 
Compiler for C supports arguments -Wmissing-field-initializers: YES 
Compiler for C supports arguments -Wnonnull: YES 
Compiler for C supports arguments -Wnull-dereference: YES 
Compiler for C supports arguments -Wunused: YES 
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wno-cast-function-type: YES 
Compiler for C supports arguments -Wno-pedantic: YES 
Compiler for C supports arguments -Wno-format-zero-length: YES 
Compiler for C supports arguments -Wno-variadic-macros: YES 
Compiler for C supports arguments -Werror=format=2: YES 
Compiler for C supports arguments -Werror=init-self: YES 
Compiler for C supports arguments -Werror=missing-include-dirs: YES 
Compiler for C supports arguments -Werror=pointer-arith: YES 
Compiler for C supports arguments -Werror=unused-result: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wno-bad-function-cast: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Compiler for C supports arguments -Werror=pointer-sign: YES 
Compiler for C supports arguments -Wno-string-plus-int: YES 
Compiler for C supports arguments -Wno-typedef-redefinition: YES 
Compiler for C++ supports arguments -Wduplicated-branches: NO 
Compiler for C++ supports arguments -Wimplicit-fallthrough: YES 
Compiler for C++ supports arguments -Wmisleading-indentation: YES 
Compiler for C++ supports arguments -Wmissing-field-initializers: YES 
Compiler for C++ supports arguments -Wnonnull: YES 
Compiler for C++ supports arguments -Wnull-dereference: YES 
Compiler for C++ supports arguments -Wunused: YES 
Compiler for C++ supports arguments -Wno-unused-parameter: YES 
Compiler for C++ supports arguments -Wno-cast-function-type: YES 
Compiler for C++ supports arguments -Wno-pedantic: YES 
Compiler for C++ supports arguments -Wno-format-zero-length: YES 
Compiler for C++ supports arguments -Wno-variadic-macros: YES 
Compiler for C++ supports arguments -Werror=format=2: YES 
Compiler for C++ supports arguments -Werror=init-self: YES 
Compiler for C++ supports arguments -Werror=missing-include-dirs: YES 
Compiler for C++ supports arguments -Werror=pointer-arith: YES 
Compiler for C++ supports arguments -Werror=unused-result: YES 
Compiler for C supports link arguments -Wl,-z,nodelete: NO 
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: NO 
Checking for function "accept4" : NO 
Checking for function "close_range" : NO 
Checking for function "copy_file_range" : NO 
Checking for function "endmntent" : NO 
Checking for function "endservent" : YES 
Checking for function "epoll_create" : NO 
Checking for function "fallocate" : NO 
Checking for function "fchmod" : YES 
Checking for function "fchown" : YES 
Checking for function "fdwalk" : NO 
Checking for function "free_aligned_sized" : NO 
Checking for function "free_sized" : NO 
Checking for function "fsync" : YES 
Checking for function "ftruncate64" : NO 
Checking for function "getauxval" : NO 
Checking for function "getc_unlocked" : YES 
Checking for function "getfsstat" : YES 
Checking for function "getgrgid_r" : YES 
Checking for function "getmntent_r" : NO 
Checking for function "getpwuid_r" : YES 
Checking for function "getresuid" : NO 
Checking for function "getvfsstat" : NO 
Checking for function "gmtime_r" : YES 
Checking for function "hasmntopt" : NO 
Checking for function "inotify_init1" : NO 
Checking for function "issetugid" : YES 
Checking for function "kevent" : YES 
Checking for function "kqueue" : YES 
Checking for function "lchmod" : YES 
Checking for function "lchown" : YES 
Checking for function "link" : YES 
Checking for function "localtime_r" : YES 
Checking for function "lstat" : YES 
Checking for function "mbrtowc" : YES 
Checking for function "memalign" : NO 
Checking for function "mmap" : YES 
Checking for function "newlocale" : YES 
Checking for function "pipe2" : NO 
Checking for function "poll" : YES 
Checking for function "prlimit" : NO 
Checking for function "readlink" : YES 
Checking for function "recvmmsg" : NO 
Checking for function "sendmmsg" : NO 
Checking for function "setenv" : YES 
Checking for function "setmntent" : NO 
Checking for function "strerror_r" : YES 
Checking for function "strnlen" : YES 
Checking for function "strsignal" : YES 
Checking for function "strtod_l" : YES 
Checking for function "strtoll_l" : YES 
Checking for function "strtoull_l" : YES 
Checking for function "symlink" : YES 
Checking for function "timegm" : YES 
Checking for function "unsetenv" : YES 
Checking for function "uselocale" : YES 
Checking for function "utimes" : YES 
Checking for function "utimensat" : YES 
Checking for function "valloc" : YES 
Checking for function "vasprintf" : YES 
Checking for function "vsnprintf" : YES 
Checking for function "wcrtomb" : YES 
Checking for function "wcslen" : YES 
Checking for function "wcsnlen" : YES 
Checking for function "sysctlbyname" : YES 
Checking for function "_NSGetEnviron" : YES 
Checking for function "statvfs" : YES 
Checking for function "statfs" : YES 
Checking for function "if_indextoname" : YES 
Checking for function "if_nametoindex" : YES 
Checking for function "splice" : NO 
Checking for function "stpcpy" : YES 
Checking for function "memalign" : NO 
Checking if "getservbyname_r()" compiles: NO 
Checking for function "_aligned_malloc" : NO 
Checking for function "aligned_alloc" : YES 
Checking for function "posix_memalign" : YES 
Checking for function "posix_spawn" : YES 
Checking if "strerror_r() returns char *" compiles: NO 
Checking for function "snprintf" : YES 
Checking for function "strcasecmp" : YES 
Checking for function "strncasecmp" : YES 
Header "sys/sysmacros.h" has symbol "major" : NO 
Header "sys/mkdev.h" has symbol "major" : NO 
Header "sys/types.h" has symbol "major" : YES 
Header "dlfcn.h" has symbol "RTLD_LAZY" : YES 
Header "dlfcn.h" has symbol "RTLD_NOW" : YES 
Header "dlfcn.h" has symbol "RTLD_GLOBAL" : YES 
Header "dlfcn.h" has symbol "RTLD_NEXT" : YES 
Checking for type "loff_t" : NO 
Message: Checking whether to use statfs or statvfs .. statfs
Objective-C compiler for the host machine: ccache clang (clang 15.0.0)
Objective-C linker for the host machine: clang ld64 1015.7
Compiler for Objective-C supports arguments -Wduplicated-branches: NO 
Compiler for Objective-C supports arguments -Wimplicit-fallthrough: YES 
Compiler for Objective-C supports arguments -Wmisleading-indentation: YES 
Compiler for Objective-C supports arguments -Wmissing-field-initializers: YES 
Compiler for Objective-C supports arguments -Wnonnull: YES 
Compiler for Objective-C supports arguments -Wnull-dereference: YES 
Compiler for Objective-C supports arguments -Wunused: YES 
Compiler for Objective-C supports arguments -Wno-unused-parameter: YES 
Compiler for Objective-C supports arguments -Wno-cast-function-type: YES 
Compiler for Objective-C supports arguments -Wno-pedantic: YES 
Compiler for Objective-C supports arguments -Wno-format-zero-length: YES 
Compiler for Objective-C supports arguments -Wno-variadic-macros: YES 
Compiler for Objective-C supports arguments -Werror=format=2: YES 
Compiler for Objective-C supports arguments -Werror=init-self: YES 
Compiler for Objective-C supports arguments -Werror=missing-include-dirs: YES 
Compiler for Objective-C supports arguments -Werror=pointer-arith: YES 
Compiler for Objective-C supports arguments -Werror=unused-result: YES 
Compiler for Objective-C supports arguments -Wstrict-prototypes: YES 
Compiler for Objective-C supports arguments -Wno-bad-function-cast: YES 
Compiler for Objective-C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for Objective-C supports arguments -Werror=missing-prototypes: YES 
Compiler for Objective-C supports arguments -Werror=pointer-sign: YES 
Compiler for Objective-C supports arguments -Wno-string-plus-int: YES 
Compiler for Objective-C supports arguments -Wno-typedef-redefinition: YES 
Checking if "Mac OS X Carbon support" compiles: YES 
Checking if "OS X 9 or later" compiles: YES 
Checking if "Mac OS X Cocoa support" compiles: YES 
Checking if "futex(2) system call" compiles: NO 
Checking if "futex_time64(2) system call" compiles: NO 
Checking if "eventfd(2) system call" : links: NO 
Checking if "ppoll(2) system call" : links: NO 
Checking if "pidfd_open(2) system call" : links: NO 
Checking if "__uint128_t available" compiles: YES 
Checking if "clock_gettime" : links: YES 
Checking if "dlopen() and dlsym() in system libraries" : links: YES 
Checking if "number of arguments to statfs() (n=2)" compiles: YES 
Checking if "open() option O_DIRECTORY" compiles: YES 
Checking if "fcntl() option F_FULLFSYNC" compiles: YES 
Checking if "C99 vsnprintf" runs: YES
Checking if "C99 snprintf" runs: YES
Checking if "Unix98 printf positional parameters" runs: YES
Checking if "nl_langinfo and CODESET" : links: YES 
Checking if "nl_langinfo (PM_STR)" : links: YES 
Checking if "nl_langinfo (ERA)" : links: NO 
Checking if "nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" : links: NO 
Checking if "nl_langinfo (ALTMON_n)" : links: NO 
Checking if "nl_langinfo (_NL_ABALTMON_n)" : links: NO 
Checking if "nl_langinfo and _NL_TIME_CODESET" : links: NO 
Checking if "signed" compiles: YES 
Header "stddef.h" has symbol "ptrdiff_t" : YES 
Checking if "sig_atomic_t" : links: YES 
Checking if "long long" compiles: YES 
Checking if "long double" compiles: YES 
Header "stddef.h" has symbol "wchar_t" : YES 
Header "wchar.h" has symbol "wint_t" : YES 
Checking if "uintmax_t in inttypes.h" compiles: YES 
Checking if "uintmax_t in stdint.h" compiles: YES 
Checking for size of "char" : 1 
Checking for size of "short" : 2 
Checking for size of "int" : 4 
Checking for size of "void*" : 8 
Checking for size of "long" : 8 
Checking for size of "long long" : 8 
Checking for size of "size_t" : 8 
Checking for size of "ssize_t" : 8 
Checking if "int64_t is long" compiles: NO 
Checking if "int64_t is long long" compiles: YES 
Checking for alignment of "char" : 1 
Checking for alignment of "short" : 2 
Checking for alignment of "int" : 4 
Checking for alignment of "void*" : 8 
Checking for alignment of "long" : 8 
Checking for alignment of "long long" : 8 
Checking for alignment of "size_t" : 8 
Checking for size of "wchar_t" : 4 
Checking if "GCC size_t typedef is long" compiles: YES 
Checking if "GCC size_t typedef is long long" compiles: NO 
Checking if "va_lists can be copied as values" runs: YES
Checking if "ISO C99 varargs macros in C" compiles: YES 
Checking if "ISO C99 varargs macros in C++" compiles: YES 
Checking if "GNUC varargs macros" compiles: YES 
Has header "alloca.h" : YES (cached)
Has header "sys/poll.h" : YES 
Has header "sys/types.h" : YES (cached)
Has header "winsock2.h" : NO 
Computing int of "POLLIN" : 1
Computing int of "POLLOUT" : 4
Computing int of "POLLPRI" : 2
Computing int of "POLLERR" : 8
Computing int of "POLLHUP" : 16
Computing int of "POLLNVAL" : 32
Computing int of "AF_UNIX" : 1
Computing int of "AF_INET" : 2
Computing int of "AF_INET6" : 30
Computing int of "MSG_OOB" : 1
Computing int of "MSG_PEEK" : 2
Computing int of "MSG_DONTROUTE" : 4
Checking for type "struct in6_addr" : YES 
Checking if "atomic ops" : links: YES 
Checking if "sync swap" : links: YES 
Run-time dependency threads found: YES
Header "pthread.h" has symbol "pthread_attr_setstacksize" : YES 
Header "pthread.h" has symbol "pthread_attr_setinheritsched" : YES 
Header "pthread.h" has symbol "pthread_condattr_setclock" : NO 
Header "pthread.h" has symbol "pthread_cond_timedwait_relative_np" : YES 
Header "pthread.h" has symbol "pthread_getname_np" : YES 
Header "pthread.h" has symbol "pthread_getaffinity_np" : NO 
Checking if "pthread_setname_np(const char*)" with dependency threads: links: YES 
Checking if "stack grows check" runs: NO (1)
Run-time dependency iconv found: YES
Found pkg-config: YES (/opt/homebrew/bin/pkg-config) 0.29.2
Run-time dependency libpcre2-8 found: YES 10.44

Executing subproject gvdb 

gvdb| Project name: gvdb
gvdb| Project version: 0.0
gvdb| C compiler for the host machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
gvdb| C linker for the host machine: cc ld64 1015.7
gvdb| Build targets in project: 0
gvdb| Subproject gvdb finished.

Dependency gvdb found: YES 0.0 (overridden)
Library m found: YES
Run-time dependency libffi found: YES 3.4-rc1
Run-time dependency zlib found: YES 1.2.11
Checking if "check for -latomic" : links: NO 
Run-time dependency intl found: NO (tried builtin and system)
Run-time dependency intl found: NO (tried builtin and system)
Looking for a fallback subproject for the dependency intl

Executing subproject proxy-libintl 

proxy-libintl| Project name: proxy-libintl
proxy-libintl| Project version: 1
proxy-libintl| C compiler for the host machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
proxy-libintl| C linker for the host machine: cc ld64 1015.7
proxy-libintl| subprojects/proxy-libintl/meson.build:14: WARNING: Project targets '>= 0.46.0' but uses feature introduced in '0.48.0': darwin_versions arg in library.
proxy-libintl| Build targets in project: 1
proxy-libintl| WARNING: Project specifies a minimum meson_version '>= 0.46.0' but uses features which were added in newer versions:
proxy-libintl| * 0.48.0: {'darwin_versions arg in library'}
proxy-libintl| Subproject proxy-libintl finished.

Dependency intl from subproject subprojects/proxy-libintl found: YES 1
Checking for function "getxattr" : YES 
Has header "sys/xattr.h" : YES 
Checking if "XATTR_NOFOLLOW" compiles: YES 
Checking for function "strlcpy" : YES 
Checking if "OpenBSD strlcpy/strlcat" runs: YES
Checking if "/proc/self/cmdline" runs: NO (1)
Program python3 found: YES (/opt/homebrew/opt/python@3.12/bin/python3.12)
Program bash found: YES (/bin/bash)
Found CMake: /opt/homebrew/bin/cmake (3.30.0)
Run-time dependency bash-completion found: NO (tried pkgconfig, framework and cmake)
Program sh found: YES (/bin/sh)
Program pkg-config found: YES (/opt/homebrew/bin/pkg-config)
Program env found: YES (/usr/bin/env)
Header "sys/ptrace.h" has symbol "PTRACE_O_EXITKILL" : NO 
Program g-ir-scanner found: YES (/opt/homebrew/bin/g-ir-scanner)
Configuring glib-gettextize using configuration
Program gen-visibility-macros.py found: YES (/Users/user/dev/glib/tools/gen-visibility-macros.py)
Configuring glibconfig.h using configuration
Run-time dependency sysprof-capture-4 found: NO (tried pkgconfig, framework and cmake)
Looking for a fallback subproject for the dependency sysprof-capture-4

Executing subproject sysprof 

sysprof| Project name: sysprof
sysprof| Project version: 3.45.0
sysprof| C compiler for the host machine: ccache cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.0.40.1)")
sysprof| C linker for the host machine: cc ld64 1015.7
sysprof| Compiler for C supports arguments -fvisibility=hidden: YES
sysprof| Has header "execinfo.h" : YES
sysprof| Checking for function "strlcpy" : YES
sysprof| Checking for function "reallocarray" : NO
sysprof| Run-time dependency polkit-agent-1 found: NO (tried pkgconfig, framework and cmake)
sysprof| Run-time dependency polkit-gobject-1 found: NO (tried pkgconfig, framework and cmake)
sysprof| Run-time dependency libunwind-generic found: NO (tried pkgconfig, framework and cmake)

sysprof| subprojects/sysprof/meson.build:87:18: Exception: Dependency "libunwind-generic" not found, tried pkgconfig, framework and cmake

Subproject subprojects/sysprof is buildable: NO (disabling)
Dependency sysprof-capture-4 from subproject sysprof found: NO (subproject failed to configure)
Run-time dependency appleframeworks found: YES (Foundation, CoreFoundation, AppKit)
Run-time dependency appleframeworks found: YES (Carbon)
Configuring gtester-report using configuration
Configuring libglib-2.0.so.0.8100.0-gdb.py using configuration
Program xmllint found: YES (/usr/bin/xmllint)
Configuring glib-genmarshal using configuration
Program glib-genmarshal found: YES (/Users/user/dev/glib/_build/gobject/glib-genmarshal)
Configuring glib-mkenums using configuration
Program glib-mkenums found: YES (/Users/user/dev/glib/_build/gobject/glib-mkenums)
Configuring libgobject-2.0.so.0.8100.0-gdb.py using configuration
Compiler for C supports arguments -DG_DISABLE_CAST_CHECKS: YES 
Compiler for C supports arguments -Werror: YES 
Compiler for C supports arguments -Wcast-align=strict: NO 
Checking if "dlsym() preceding underscores" runs: YES
Checking for function "dlerror" : YES 
Configuring gmoduleconf.h using configuration
Checking if "C_IN in public headers (no arpa/nameser_compat.h needed)" compiles: NO 
Checking if "arpa/nameser_compat.h needed for C_IN" compiles: YES 
Checking if "res_query()" : links: NO 
Checking if "res_query() in -lresolv" : links: YES 
Library resolv found: YES
Checking if "socket()" : links: YES 
Checking if "dn_comp()" : links: YES 
Checking if "res_nclose()" : links: YES 
Checking if "res_ndestroy()" : links: YES 
Checking if "res_ninit()" : links: YES 
Checking if "res_nquery()" : links: YES 
Checking for type "struct ip_mreqn" : YES 
Checking if "ioctl with request SIOCGIFADDR" compiles: YES 
Configuring gnetworking.h using configuration
Configuring gdbus-codegen using configuration
Program gdbus-codegen found: YES (/Users/user/dev/glib/_build/gio/gdbus-2.0/codegen/gdbus-codegen)
Configuring config.py using configuration
Dependency appleframeworks (modules: Foundation, CoreFoundation, AppKit) found: YES unknown (cached)
Message: Found bash-completion but the .pc file did not set 'completionsdir', fallback to a predefined path
Run-time dependency libelf found: NO (tried pkgconfig, framework and cmake)
Library elf found: NO
gio/tests/meson.build:10: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof..
Has header "pty.h" : NO 
Program gengiotypefuncs.py found: YES (/opt/homebrew/opt/python@3.12/bin/python3.12 /Users/user/dev/glib/gio/tests/gengiotypefuncs.py)
Run-time dependency dbus-1 found: YES 1.14.10
Program dbus-daemon found: YES (/opt/homebrew/bin/dbus-daemon)
Program msgfmt found: YES (/opt/homebrew/bin/msgfmt)
Configuring appinfo-test-gnome.desktop using configuration
Configuring appinfo-test-notgnome.desktop using configuration
Configuring appinfo-test-path.desktop using configuration
Configuring appinfo-test.desktop using configuration
Configuring appinfo-test2.desktop using configuration
Program objcopy found: NO
Program ld found: YES (/usr/bin/ld)
Configuring org.freedesktop.portal.Documents.service using configuration
Configuring org.gtk.GDBus.FakeService.service using configuration
Compiler for C supports arguments -Wno-implicit-fallthrough: YES 
Compiler for C supports arguments -Wno-old-style-definition: YES 
Compiler for C supports arguments -Wno-suggest-attribute=noreturn: NO 
Compiler for C supports arguments -Wno-type-limits: YES 
Compiler for C supports arguments -Wno-undef: YES 
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES 
Compiler for C supports arguments -Wno-unused-function: YES 
Compiler for C supports arguments -Wno-return-type: YES 
Compiler for C supports arguments -Wno-sometimes-uninitialized: YES 
Compiler for C supports arguments -Wno-old-style-definition: YES (cached)
Compiler for C supports arguments -Wno-type-limits: YES (cached)
Compiler for C supports arguments -Wno-old-style-definition: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-duplicated-branches: NO 
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-duplicated-branches: NO (cached)
Compiler for C supports arguments -Wno-type-limits: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wno-old-style-definition: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-duplicated-branches: NO (cached)
Run-time dependency gobject-introspection-1.0 found: YES 1.80.1
Dependency gobject-introspection-1.0 found: YES 1.80.1 (cached)
Program /opt/homebrew/Cellar/gobject-introspection/1.80.1/bin/g-ir-scanner found: YES (/opt/homebrew/Cellar/gobject-introspection/1.80.1/bin/g-ir-scanner)
girepository/introspection/meson.build:252: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof..
girepository/introspection/meson.build:311: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof..
Compiler for C supports arguments -Wno-old-style-definition: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-duplicated-branches: NO (cached)
Compiler for C supports arguments -Wno-old-style-definition: YES (cached)
Compiler for C supports arguments -Wno-cast-align: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-duplicated-branches: NO (cached)
Compiler for C supports arguments -Werror=unused-function: YES 
Library FuzzingEngine skipped: feature oss_fuzz disabled
Program xgettext found: YES (/opt/homebrew/bin/xgettext)
Program msgfmt found: YES (/opt/homebrew/bin/msgfmt)
Program msginit found: YES (/opt/homebrew/bin/msginit)
Program msgmerge found: YES (/opt/homebrew/bin/msgmerge)
Program xgettext found: YES (/opt/homebrew/bin/xgettext)
Configuring config.h using configuration
Program rst2man.py found: YES (/opt/homebrew/bin/rst2man.py)
Program rst2html5.py found: YES (/opt/homebrew/bin/rst2html5.py)
Build targets in project: 609
WARNING: Broken features used:
 * 1.3.0: {'str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.'}

glib 2.81.0

  Build environment
    host cpu           : aarch64
    host endian        : little
    host system        : darwin
    C Compiler         : clang
    C++ Compiler       : clang
    shared build       : true
    static build       : false

  Directories
    prefix             : /opt/homebrew
    bindir             : /opt/homebrew/bin
    libexecdir         : /opt/homebrew/libexec
    pkgdatadir         : /opt/homebrew/share/glib-2.0
    datadir            : /opt/homebrew/share
    includedir         : /opt/homebrew/include/glib-2.0
    giomodulesdir      : /opt/homebrew/lib/gio/modules
    localstatedir      : /opt/homebrew/var
    runstatedir        : /run

  Options
    xattr              : false
    man-pages          : auto
    dtrace             : false
    systemtap          : false
    sysprof            : false
    documentation      : false
    bsymbolic_functions: true
    force_posix_threads: false
    tests              : true
    installed_tests    : false
    nls                : auto
    oss_fuzz           : disabled
    glib_debug         : auto
    glib_assert        : true
    glib_checks        : true
    libelf             : auto
    multiarch          : false
    introspection      : true

  Subprojects
    gvdb               : YES
    proxy-libintl      : YES 2 warnings
    sysprof            : NO
                         Dependency "libunwind-generic" not found, tried pkgconfig, framework and cmake

Found ninja-1.12.1 at /opt/homebrew/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.