GnuTLS <= 3.6.12, including our GnuTL 3.6.8, does not compile on
the latest macOS (10.15 Catalina).
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ERROR: GnuTLS build failed
This is reported upstream at https://gitlab.com/gnutls/gnutls/-/issues/966
and also in Homebrew (package manager for macOS) at
https://github.com/Homebrew/homebrew-core/issues/52348.
The recommended that Homebrew used for their pakcage is to unset LDFLAGS=
which GnuTLS otherwise would set to -no_weak_imports, which caused the
problem. Upstream has not yet fixed this in their own code yet, but I guess
we can do the same for now.
Homebrew's package for GnuTLS also disables the Guile integration.
We did not do that yet, but it seems on macOS 10.15 problems with that
are also finally exposed to us:
ice-9/boot-9.scm:752:25: In procedure dispatch-exception: In procedure dynamic-link: file: "0ad/libraries/osx/gnutls/gnutls-3.6.13/guile/src/guile-gnutls-v-2", message: "file not found" make[2]: *** [modules/gnutls.go] Error 1 ERROR: GnuTLS build failed