Compiling from source via git on m1 macbook pro macOS venture failed with long error message. It is the first time for me to see such failure
for recent several months.
Fetching submodule packages/clib
From github:SWI-Prolog/packages-clib
c4b7a20..95f7449 master -> origin/master
Updating b60eea9c4..98eca3f5e
Fast-forward
man/threads.doc | 2 +-
packages/clib | 2 +-
src/pl-gmp.c | 15 ++++++++-------
src/pl-gmp.h | 11 ++++++++---
4 files changed, 18 insertions(+), 12 deletions(-)
Submodule path 'packages/clib': checked out '95f74499e5364251b352f734cabc1a3399b17e9d'
[623/2489] Building C object packages/...Files/plugin_socket.dir/nonblockio.c.o
FAILED: packages/clib/CMakeFiles/plugin_socket.dir/nonblockio.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -Dplugin_socket_EXPORTS -I/Users/cantor/src/swipl-devel/build/packages/clib -I/Users/cantor/src/swipl-devel/src/os -I/Users/cantor/src/swipl-devel/src -O2 -g -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fPIC -Wall -D__SWI_PROLOG__ -MD -MT packages/clib/CMakeFiles/plugin_socket.dir/nonblockio.c.o -MF packages/clib/CMakeFiles/plugin_socket.dir/nonblockio.c.o.d -o packages/clib/CMakeFiles/plugin_socket.dir/nonblockio.c.o -c /Users/cantor/src/swipl-devel/packages/clib/nonblockio.c
/Users/cantor/src/swipl-devel/packages/clib/nonblockio.c:1248:13: error: no member named 's6_addr16' in 'struct in6_addr'
{ ip->s6_addr16[i-1] = htons(ia);
~~ ^