=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for mercury-14.01.1nb10 cd /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1 && /usr/bin/env USETOOLS=no READLINE_PREFIX=/usr/pkg CC=gcc CFLAGS=-O2\ -fomit-frame-pointer\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include CPPFLAGS=-I/usr/pkg/include\ -I/usr/include CXX=c++ CXXFLAGS=-O2\ -fomit-frame-pointer\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/tmp/pkgbuild/lang/mercury/work.aarch64/.cwrapper/bin:/tmp/pkgbuild/lang/mercury/work.aarch64/.buildlink/bin:/tmp/pkgbuild/lang/mercury/work.aarch64/.distcc/bin:/tmp/pkgbuild/lang/mercury/work.aarch64/.gcc/bin:/tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=cpp HOME=/tmp/pkgbuild/lang/mercury/work.aarch64/.home CWRAPPERS_CONFIG_DIR=/tmp/pkgbuild/lang/mercury/work.aarch64/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ users\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulk\ -g\ users\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ pbulk\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ users\ -m\ 775 INSTALL_INFO=/tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install-info MAKEINFO=/tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/makeinfo FLEX=/tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/flex BISON=/tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/bison PKG_CONFIG= PKG_CONFIG_LIBDIR=/tmp/pkgbuild/lang/mercury/work.aarch64/.buildlink/lib/pkgconfig:/tmp/pkgbuild/lang/mercury/work.aarch64/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/tmp/pkgbuild/lang/mercury/work.aarch64/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/tmp/pkgbuild/lang/mercury/work.aarch64/.cwrapper/config /usr/pkg/bin/gmake -j4 INSTALL_PREFIX=/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/tmp INSTALL_INFO_DIR=/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/tmp/info INSTALL_MAN_DIR=/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/tmp/man MERCURY_COMPILER=/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/tmp/bin/mercury_compile PARALLEL=-j4 -f Makefile install MMAKE_DIR=`pwd`/scripts scripts/mmake MMAKEFLAGS=-j4 DESTDIR= install gmake[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. gmake[1]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1' cd scripts && PATH=../scripts:../util:../mfilterjavac:../../mfilterjavac:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake -j4 gmake[2]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/scripts' gmake[2]: Nothing to be done for 'default_target'. gmake[2]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/scripts' cd util && PATH=../scripts:../util:../mfilterjavac:../../mfilterjavac:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake -j4 mfiltercc gmake[2]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/util' ../scripts/mgnuc --no-mercury-stdlib-dir \ --grade hlc.gc.pregen --no-filter-cc -- -I../runtime -O0 -o mfiltercc mfiltercc.c gmake[2]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/util' gc_grade=`scripts/ml --grade hlc.gc.pregen --print-gc-grade`; \ cd boehm_gc && PATH=../scripts:../util:../mfilterjavac:../../mfilterjavac:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake -j4 GC_GRADE=$gc_grade gmake[2]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc' cp Makefile.direct Makefile MAKEFLAGS=""; export MAKEFLAGS; \ PATH=../util:$PATH gmake -j4 -j1 \ GRADE=hlc.gc.pregen GC_GRADE=gc \ AR=ar RANLIB=ranlib \ libgc.a libgc.so \ FINAL_INSTALL_MERC_GC_LIB_DIR=/usr/pkg/lib/mercury/lib \ so gmake[3]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc' CC="/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir" AR="ar" RANLIB="ranlib" MAKE=gmake DESTDIR= \ ./build_atomic_ops.sh --host=aarch64--netbsd configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... aarch64-unknown-netbsd9.0 checking host system type... aarch64--netbsd checking target system type... aarch64--netbsd checking for a BSD-compatible install... /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c checking whether build environment is sane... yes checking for aarch64--netbsd-strip... no checking for strip... strip checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether gmake sets $(MAKE)... yes checking for aarch64--netbsd-ranlib... ranlib checking for style of include used by gmake... GNU checking for aarch64--netbsd-gcc... /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir accepts -g... yes checking for /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir option to accept ISO C89... none needed checking dependency style of /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir... gcc3 checking whether /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir and cc understand -c and -o together... yes checking dependency style of /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir... gcc3 checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/grep checking for egrep... /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for ANSI C header files... (cached) yes checking for PIC compiler flag... -fPIC checking whether gcc -fPIC causes __PIC__ definition... yes checking for pthread_self in -lpthread... yes configure: creating ./config.status config.status: creating Makefile config.status: creating pkgconfig/atomic_ops.pc config.status: creating pkgconfig/atomic_ops-uninstalled.pc config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating src/atomic_ops/Makefile config.status: creating src/atomic_ops/sysdeps/Makefile config.status: creating tests/Makefile config.status: creating src/config.h config.status: executing depfiles commands config.status: executing default commands gmake[4]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops' Making install in src gmake[5]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src' Making install in atomic_ops gmake[6]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' Making install in sysdeps gmake[7]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops/sysdeps' gmake[8]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops/sysdeps' gmake[8]: Nothing to be done for 'install-exec-am'. test -z "/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps" || ../../.././install-sh -c -d "/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps" ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/gcc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 gcc/alpha.h gcc/arm.h gcc/avr32.h gcc/cris.h gcc/hexagon.h gcc/hppa.h gcc/ia64.h gcc/m68k.h gcc/mips.h gcc/powerpc.h gcc/s390.h gcc/sh.h gcc/sparc.h gcc/x86.h gcc/x86_64.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/gcc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/sunc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 sunc/sparc.h sunc/x86.h sunc/x86_64.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/sunc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/ibmc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 ibmc/powerpc.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/ibmc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/hpc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 hpc/hppa.h hpc/ia64.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/hpc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/msftc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 msftc/arm.h msftc/common32_defs.h msftc/x86.h msftc/x86_64.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/msftc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/icc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 icc/ia64.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/icc' ../../.././install-sh -c -d '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/armcc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 armcc/arm_v6.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/armcc' /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 generic_pthread.h atomic_load_store.h aligned_atomic_load_store.h acquire_release_volatile.h char_acquire_release_volatile.h char_atomic_load_store.h short_acquire_release_volatile.h short_aligned_atomic_load_store.h short_atomic_load_store.h int_acquire_release_volatile.h int_aligned_atomic_load_store.h int_atomic_load_store.h all_acquire_release_volatile.h all_aligned_atomic_load_store.h all_atomic_load_store.h read_ordered.h ordered_except_wr.h ordered.h ao_t_is_int.h test_and_set_t_is_ao_t.h test_and_set_t_is_char.h emul_cas.h standard_ao_double_t.h README '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/sysdeps/.' gmake[8]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops/sysdeps' gmake[7]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops/sysdeps' gmake[7]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' gmake[8]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' gmake[8]: Nothing to be done for 'install-exec-am'. test -z "/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/" || ../.././install-sh -c -d "/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/" /tmp/pkgbuild/lang/mercury/work.aarch64/.tools/bin/install -c -m 644 generalize.h generalize-small.h '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops-install/include/atomic_ops/' gmake[8]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' gmake[7]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' gmake[6]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src/atomic_ops' gmake[6]: Entering directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src' /tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/../scripts/mgnuc --grade hlc.gc.pregen --no-ansi --no-check --no-mercury-stdlib-dir -DHAVE_CONFIG_H -I. -I../src -I../src -I/usr/pkg/include -I/usr/include -fPIC -I./include -I./libatomic_ops-install/include -DNO_EXECUTE_PERMISSION -DLARGE_CONFIG -fpic -DMR_PIC -DNO_DEBUGGING -DNDEBUG -MT atomic_ops.o -MD -MP -MF .deps/atomic_ops.Tpo -c -o atomic_ops.o atomic_ops.c distcc[29990] ERROR: compile atomic_ops.c on 10.0.20.122:3640 failed distcc[29990] (dcc_build_somewhere) Warning: remote compilation of 'atomic_ops.c' failed, retrying locally distcc[29990] Warning: failed to distribute atomic_ops.c to 10.0.20.122:3640, running locally instead atomic_ops.c:97:1: error: unknown type name 'AO_TS_t'; did you mean 'AO_TS_T'? AO_TS_t AO_locks[AO_HASH_SIZE] = { ^~~~~~~ AO_TS_T In file included from atomic_ops.c:69:0: atomic_ops.h:147:33: error: 'AO_TS_CLEAR' undeclared here (not in a function); did you mean 'AO_TS_VAL'? #define AO_TS_INITIALIZER (AO_t)AO_TS_CLEAR ^ atomic_ops.c:98:3: note: in expansion of macro 'AO_TS_INITIALIZER' AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, ^~~~~~~~~~~~~~~~~ atomic_ops.c: In function 'AO_spin': atomic_ops.c:110:12: warning: implicit declaration of function 'AO_load'; did you mean 'AO_nop'? [-Wimplicit-function-declaration] AO_T j = AO_load(&dummy); ^~~~~~~ AO_nop atomic_ops.c:117:3: warning: implicit declaration of function 'AO_store'; did you mean 'AO_spin'? [-Wimplicit-function-declaration] AO_store(&dummy, j); ^~~~~~~~ AO_spin atomic_ops.c: At top level: atomic_ops.c:143:31: error: unknown type name 'AO_TS_t' static void lock_ool(volatile AO_TS_t *l) ^~~~~~~ atomic_ops.c: In function 'lock_ool': atomic_ops.c:147:10: warning: implicit declaration of function 'AO_test_and_set_acquire' [-Wimplicit-function-declaration] while (AO_test_and_set_acquire(l) == AO_TS_SET) ^~~~~~~~~~~~~~~~~~~~~~~ atomic_ops.c:147:40: error: 'AO_TS_SET' undeclared (first use in this function); did you mean 'AO_TS_T'? while (AO_test_and_set_acquire(l) == AO_TS_SET) ^~~~~~~~~ AO_TS_T atomic_ops.c:147:40: note: each undeclared identifier is reported only once for each function it appears in atomic_ops.c: At top level: atomic_ops.c:151:30: error: unknown type name 'AO_TS_t' AO_INLINE void lock(volatile AO_TS_t *l) ^~~~~~~ atomic_ops.c: In function 'lock': atomic_ops.c:153:37: error: 'AO_TS_SET' undeclared (first use in this function); did you mean 'AO_TS_T'? if (AO_test_and_set_acquire(l) == AO_TS_SET) ^~~~~~~~~ AO_TS_T atomic_ops.c: At top level: atomic_ops.c:157:32: error: unknown type name 'AO_TS_t' AO_INLINE void unlock(volatile AO_TS_t *l) ^~~~~~~ atomic_ops.c: In function 'unlock': atomic_ops.c:159:3: warning: implicit declaration of function 'AO_CLEAR'; did you mean 'FD_CLR'? [-Wimplicit-function-declaration] AO_CLEAR(l); ^~~~~~~~ FD_CLR atomic_ops.c: At top level: atomic_ops.c:165:19: error: unknown type name 'AO_TS_t' static volatile AO_TS_t init_lock = AO_TS_INITIALIZER; ^~~~~~~ atomic_ops.c: In function 'AO_compare_and_swap_emulation': atomic_ops.c:171:3: error: unknown type name 'AO_TS_t'; did you mean 'AO_TS_T'? AO_TS_t *my_lock = AO_locks + AO_HASH(addr); ^~~~~~~ AO_TS_T atomic_ops.c:176:10: warning: implicit declaration of function 'AO_load_acquire' [-Wimplicit-function-declaration] if (!AO_load_acquire(&initialized)) ^~~~~~~~~~~~~~~ atomic_ops.c:181:7: warning: implicit declaration of function 'AO_store_release'; did you mean '__sync_lock_release'? [-Wimplicit-function-declaration] AO_store_release(&initialized, 1); ^~~~~~~~~~~~~~~~ __sync_lock_release atomic_ops.c: In function 'AO_compare_double_and_swap_double_emulation': atomic_ops.c:211:3: error: unknown type name 'AO_TS_t'; did you mean 'AO_TS_T'? AO_TS_t *my_lock = AO_locks + AO_HASH(addr); ^~~~~~~ AO_TS_T atomic_ops.c: In function 'AO_store_full_emulation': atomic_ops.c:250:3: error: unknown type name 'AO_TS_t'; did you mean 'AO_TS_T'? AO_TS_t *my_lock = AO_locks + AO_HASH(addr); ^~~~~~~ AO_TS_T distcc[29990] ERROR: compile atomic_ops.c on localhost failed gmake[6]: *** [Makefile:374: atomic_ops.o] Error 1 gmake[6]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src' gmake[5]: *** [Makefile:414: install-recursive] Error 1 gmake[5]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops/src' gmake[4]: *** [Makefile:309: install-recursive] Error 1 gmake[4]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc/libatomic_ops' gmake[3]: *** [Makefile:237: libatomic_ops-install] Error 2 gmake[3]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc' gmake[2]: *** [/tmp/mmake.xZ9HRM:864: submake] Error 2 gmake[2]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1/boehm_gc' gmake[1]: *** [/tmp/mmake.Bwmgck:1032: boehm_gc] Error 2 gmake[1]: Leaving directory '/tmp/pkgbuild/lang/mercury/work.aarch64/mercury-srcdist-14.01.1' gmake: *** [Makefile:37: install] Error 2 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/lang/mercury *** Error code 1 Stop. make: stopped in /usr/pkgsrc/lang/mercury