=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for swi-prolog/swipl-8.0.2.tar.gz
=> Checksum RMD160 OK for swi-prolog/swipl-8.0.2.tar.gz
=> Checksum SHA512 OK for swi-prolog/swipl-8.0.2.tar.gz
===> Installing dependencies for swi-prolog-jpl-8.0.2
==========================================================================
The following variables will affect the build process of this package,
swi-prolog-jpl-8.0.2.  Their current value is shown below:

        * CURSES_DEFAULT = curses
        * PKG_JVM_DEFAULT (defined)

Based on these variables, the following variables have been set:

        * CURSES_TYPE = curses
        * JAVA_BINPREFIX = /usr/pkg/bin/openjdk11
        * PKG_JAVA_HOME = /usr/pkg/java/openjdk11
        * PKG_JVM = openjdk11

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.19.7
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.7.3
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency swi-prolog-lite>=8.0.1: found swi-prolog-lite-8.0.2nb2
=> Full dependency openjdk11>=1.11.0.5.8: found openjdk11-1.11.0.10.9nb1
=> Full dependency gmp>=5.0.1: found gmp-6.2.1
===> 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 swi-prolog-jpl-8.0.2
===> Extracting for swi-prolog-jpl-8.0.2
===> Patching for swi-prolog-jpl-8.0.2
=> Applying pkgsrc patches for swi-prolog-jpl-8.0.2
=> Verifying /tree/pkgsrc/lang/swi-prolog-jpl/../../lang/swi-prolog-lite/patches/patch-packages_clib_sha1_brg_endian.h
=> Applying pkgsrc patch /tree/pkgsrc/lang/swi-prolog-jpl/../../lang/swi-prolog-lite/patches/patch-packages_clib_sha1_brg_endian.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-packages_clib_sha1_brg_endian.h,v 1.3 2015/12/29 23:34:56 dholland Exp $
|
|Support Dragonfly and Bitrig.
|
|--- packages/clib/sha1/brg_endian.h.orig	2014-04-13 08:40:33.000000000 +0000
|+++ packages/clib/sha1/brg_endian.h
--------------------------
Patching file packages/clib/sha1/brg_endian.h using Plan A...
Hunk #1 succeeded at 39.
done
===> Creating toolchain wrappers for swi-prolog-jpl-8.0.2
===> Configuring for swi-prolog-jpl-8.0.2
cd /scratch/work/lang/swi-prolog-jpl/work/swipl-8.0.2 && /bin/mkdir -p build
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /scratch/work/lang/swi-prolog-jpl/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /scratch/work/lang/swi-prolog-jpl/work/.cwrapper/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring SWI-Prolog-8.0.2
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Check floating point format
-- Check floating point format - IEEE-754, little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.10") 
-- Found GMP: /usr/pkg/lib/libgmp.so  
-- Found Curses: /usr/lib/libcurses.so  
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for alloca.h
-- Looking for alloca.h - not found
-- Looking for curses.h
-- Looking for curses.h - found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for dl.h
-- Looking for dl.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for dmalloc.h
-- Looking for dmalloc.h - not found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for floatingpoint.h
-- Looking for floatingpoint.h - not found
-- Looking for ieeefp.h
-- Looking for ieeefp.h - found
-- Looking for ieee754.h
-- Looking for ieee754.h - not found
-- Looking for libloaderapi.h
-- Looking for libloaderapi.h - not found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for ncurses/curses.h
-- Looking for ncurses/curses.h - not found
-- Looking for ncurses/term.h
-- Looking for ncurses/term.h - not found
-- Looking for poll.h
-- Looking for poll.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for shlobj.h
-- Looking for shlobj.h - not found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for sys/file.h
-- Looking for sys/file.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/ndir.h
-- Looking for sys/ndir.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for sys/termio.h
-- Looking for sys/termio.h - not found
-- Looking for sys/termios.h
-- Looking for sys/termios.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for term.h
-- Looking for term.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for mach/thread_act.h
-- Looking for mach/thread_act.h - not found
-- Looking for sys/stropts.h
-- Looking for sys/stropts.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for sin in m
-- Looking for sin in m - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of void *
-- Check size of void * - done
-- Check size of long long
-- Check size of long long - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Check size of mp_bitcnt_t
-- Check size of mp_bitcnt_t - done
-- Check alignment of INT64_T: 8
-- Check alignment of DOUBLE: 8
-- Check alignment of VOIDP: 4
-- Looking for mmap
-- Looking for mmap - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for poll
-- Looking for poll - found
-- Looking for popen
-- Looking for popen - found
-- Looking for getpwnam
-- Looking for getpwnam - found
-- Looking for fork
-- Looking for fork - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for qsort_r
-- Looking for qsort_r - not found
-- Looking for qsort_s
-- Looking for qsort_s - not found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for access
-- Looking for access - found
-- Looking for chmod
-- Looking for chmod - found
-- Looking for fchmod
-- Looking for fchmod - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for fstat
-- Looking for fstat - found
-- Looking for ftruncate
-- Looking for ftruncate - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for getwd
-- Looking for getwd - found
-- Looking for opendir
-- Looking for opendir - found
-- Looking for readlink
-- Looking for readlink - found
-- Looking for remove
-- Looking for remove - found
-- Looking for rename
-- Looking for rename - found
-- Looking for stat
-- Looking for stat - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strlwr
-- Looking for strlwr - not found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for mbsnrtowcs
-- Looking for mbsnrtowcs - found
-- Looking for mbcasescoll
-- Looking for mbcasescoll - not found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for wcsdup
-- Looking for wcsdup - found
-- Looking for wcsxfrm
-- Looking for wcsxfrm - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for waitpid
-- Looking for waitpid - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for confstr
-- Looking for confstr - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for shl_load
-- Looking for shl_load - not found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for signal
-- Looking for signal - found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for sigsetmask
-- Looking for sigsetmask - found
-- Looking for siggetmask
-- Looking for siggetmask - not found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigset
-- Looking for sigset - found
-- Looking for sigblock
-- Looking for sigblock - found
-- Looking for kill
-- Looking for kill - found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Looking for mtrace
-- Looking for mtrace - not found
-- Looking for tgetent
-- Looking for tgetent - found
-- Looking for tcsetattr
-- Looking for tcsetattr - found
-- Looking for grantpt
-- Looking for grantpt - found
-- Looking for sgttyb
-- Looking for sgttyb - not found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for ceil
-- Looking for ceil - found
-- Looking for floor
-- Looking for floor - found
-- Looking for srand
-- Looking for srand - found
-- Looking for srandom
-- Looking for srandom - found
-- Looking for random
-- Looking for random - found
-- Looking for rint
-- Looking for rint - found
-- Looking for fpclass
-- Looking for fpclass - not found
-- Looking for fpresetsticky
-- Looking for fpresetsticky - not found
-- Looking for fpsetmask
-- Looking for fpsetmask - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for ftime
-- Looking for ftime - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for localtime_s
-- Looking for localtime_s - not found
-- Looking for ctime_r
-- Looking for ctime_r - found
-- Looking for asctime_r
-- Looking for asctime_r - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for sleep
-- Looking for sleep - found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for select
-- Looking for select - found
-- Looking for clock
-- Looking for clock - found
-- Looking for times
-- Looking for times - found
-- Looking for delay
-- Looking for delay - not found
-- Looking for dossleep
-- Looking for dossleep - not found
-- Looking for pthread_attr_setaffinity_np
-- Looking for pthread_attr_setaffinity_np - not found
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_getw32threadhandle_np
-- Looking for pthread_getw32threadhandle_np - not found
-- Looking for pthread_kill
-- Looking for pthread_kill - found
-- Looking for pthread_mutexattr_setkind_np
-- Looking for pthread_mutexattr_setkind_np - not found
-- Looking for pthread_mutexattr_settype
-- Looking for pthread_mutexattr_settype - found
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for pthread_setconcurrency
-- Looking for pthread_setconcurrency - not found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_sigmask
-- Looking for pthread_sigmask - found
-- Looking for pthread_timedjoin_np
-- Looking for pthread_timedjoin_np - not found
-- Looking for pthread_getcpuclockid
-- Looking for pthread_getcpuclockid - found
-- Looking for pthread_attr_setstacksize
-- Looking for pthread_attr_setstacksize - found
-- Looking for sched_setaffinity
-- Looking for sched_setaffinity - not found
-- Looking for sema_init
-- Looking for sema_init - not found
-- Looking for sem_init
-- Looking for sem_init - found
-- Checking for recursive mutex support
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE - Success
-- Checking for recursive mutex support -- found
-- Performing Test HAVE_PTHREAD_SETNAME_NP_WITH_TID
-- Performing Test HAVE_PTHREAD_SETNAME_NP_WITH_TID - Failed
-- Performing Test HAVE_PTHREAD_SETNAME_NP_WITH_TID_AND_ARG
-- Performing Test HAVE_PTHREAD_SETNAME_NP_WITH_TID_AND_ARG - Success
-- Performing Test HAVE_GETTID_MACRO
-- Performing Test HAVE_GETTID_MACRO - Failed
-- Performing Test HAVE_GETTID_SYSCALL
-- Performing Test HAVE_GETTID_SYSCALL - Failed
-- Looking for WSAPoll
-- Looking for WSAPoll - not found
-- Looking for WinExec
-- Looking for WinExec - not found
-- Looking for F_SETLKW
-- Looking for F_SETLKW - found
-- Looking for timezone
-- Looking for timezone - found
-- Looking for SIGPROF
-- Looking for SIGPROF - found
-- Performing Test HAVE_STRUCT_TIME_TM_GMTOFF
-- Performing Test HAVE_STRUCT_TIME_TM_GMTOFF - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM - Success
-- Performing Test HAVE_RU_IDRSS
-- Performing Test HAVE_RU_IDRSS - Success
-- Performing Test HAVE_GMP_RANDINIT_MT
-- Performing Test HAVE_GMP_RANDINIT_MT - Success
-- Performing Test HAVE__BUILTIN_CLZ
-- Performing Test HAVE__BUILTIN_CLZ - Success
-- Performing Test HAVE__BUILTIN_POPCOUNT
-- Performing Test HAVE__BUILTIN_POPCOUNT - Success
-- Performing Test HAVE__SYNC_SYNCHRONIZE
-- Performing Test HAVE__SYNC_SYNCHRONIZE - Success
-- Performing Test HAVE___SYNC_ADD_AND_FETCH_8
-- Performing Test HAVE___SYNC_ADD_AND_FETCH_8 - Failed
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___THREAD
-- Performing Test HAVE___THREAD - Success
-- Performing Test HAVE_VOLATILE
-- Performing Test HAVE_VOLATILE - Success
-- Performing Test HAVE_INLINE
-- Performing Test HAVE_INLINE - Success
-- Performing Test O_LABEL_ADDRESSES
-- Performing Test O_LABEL_ADDRESSES - Success
-- Performing Test HAVE_VISIBILITY_ATTRIBUTE
-- Performing Test HAVE_VISIBILITY_ATTRIBUTE - Success
-- Performing Test HAVE_ALLOCA
-- Performing Test HAVE_ALLOCA - Success
-- Performing Test HAVE_SIGNBIT
-- Performing Test HAVE_SIGNBIT - Success
-- Check for signal return type in <signal.h>
-- Check for signal handler return type type void  - found
-- sysconf() support for _SC_NPROCESSORS_CONF
-- sysconf() supports _SC_NPROCESSORS_CONF  - found
-- Performing Test TIME_WITH_SYS_TIME
-- Performing Test TIME_WITH_SYS_TIME - Success
-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH2) 
-- Found Java: /usr/pkg/java/openjdk11/bin/java (found version "11.0.10") found components: Development 
-- Finding default package generator
-- Found both apt and dnf.  Setting DEB generator
-- Setup for packaging with DEB
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_MANDIR
    INSTALL_PACKAGES


-- Build files have been written to: /scratch/work/lang/swi-prolog-jpl/work/swipl-8.0.2/build
=> Rewrite cmake Dependencies files