=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for gprolog-1.4.5.tar.gz
=> Checksum RMD160 OK for gprolog-1.4.5.tar.gz
=> Checksum SHA512 OK for gprolog-1.4.5.tar.gz
===> Installing dependencies for gprolog-1.4.5
=> Tool dependency bsdtar-[0-9]*: found bsdtar-3.4.3
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for gprolog-1.4.5
===> Extracting for gprolog-1.4.5
===> Patching for gprolog-1.4.5
=> Applying pkgsrc patches for gprolog-1.4.5
=> Verifying /tree/pkgsrc/lang/gprolog/patches/patch-src_EnginePl_dl__malloc.c
=> Applying pkgsrc patch /tree/pkgsrc/lang/gprolog/patches/patch-src_EnginePl_dl__malloc.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_EnginePl_dl__malloc.c,v 1.1 2019/06/14 17:30:13 maya Exp $
|
|(from editors/emacs20):
|Work around bug in gcc 5.x that makes calloc into a call to itself,
|resulting in an infinite loop.
|
|--- src/EnginePl/dl_malloc.c.orig	2013-04-15 07:24:10.000000000 +0000
|+++ src/EnginePl/dl_malloc.c
--------------------------
Patching file src/EnginePl/dl_malloc.c using Plan A...
Hunk #1 succeeded at 4773.
done
=> Verifying /tree/pkgsrc/lang/gprolog/patches/patch-src_Ma2Asm_powerpc__any.c
=> Applying pkgsrc patch /tree/pkgsrc/lang/gprolog/patches/patch-src_Ma2Asm_powerpc__any.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_Ma2Asm_powerpc__any.c,v 1.1 2020/12/12 02:01:57 gutteridge Exp $
|
|Fix PowerPC build.
|
|--- src/Ma2Asm/powerpc_any.c.orig	2015-01-13 18:00:19.000000000 +0000
|+++ src/Ma2Asm/powerpc_any.c
--------------------------
Patching file src/Ma2Asm/powerpc_any.c using Plan A...
Hunk #1 succeeded at 1011.
done
===> Creating toolchain wrappers for gprolog-1.4.5
===> Configuring for gprolog-1.4.5
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for armv7--netbsdelf-eabihf-gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... armv7--netbsdelf-eabihf
checking host system type... armv7--netbsdelf-eabihf
checking for armv7--netbsdelf-eabihf-as... no
checking for as... as
checking for armv7--netbsdelf-eabihf-ranlib... no
checking for ranlib... ranlib
checking for armv7--netbsdelf-eabihf-windres... no
checking for windres... no
checking for armv7--netbsdelf-eabihf-ar... no
checking for ar... ar
checking for armv7--netbsdelf-eabihf-strip... no
checking for strip... strip
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c -o pbulk -g users
checking whether ln -s works... yes
configure: error: unsupported architecture armv7--netbsdelf-eabihf
*** Error code 1

Stop.
make[1]: stopped in /tree/pkgsrc/lang/gprolog
*** Error code 1

Stop.
make: stopped in /tree/pkgsrc/lang/gprolog