=> Bootstrap dependency digest>=20010302: found digest-20180917
=> Checksum SHA1 OK for llvm-4.0.1.src.tar.xz
=> Checksum RMD160 OK for llvm-4.0.1.src.tar.xz
=> Checksum SHA512 OK for llvm-4.0.1.src.tar.xz
===> Installing dependencies for libLLVM-4.0.1
==========================================================================
The supported build options for libLLVM are:

	llvm-target-aarch64 llvm-target-amdgpu llvm-target-arm
	llvm-target-bpf llvm-target-hexagon llvm-target-mips
	llvm-target-msp430 llvm-target-nvptx llvm-target-powerpc
	llvm-target-sparc llvm-target-systemz llvm-target-x86
	llvm-target-xcore terminfo

The currently selected options are:

	llvm-target-amdgpu llvm-target-powerpc terminfo

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.llvm (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
libLLVM-4.0.1.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 27
        * TERMINFO_DEFAULT = terminfo

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

        * PYPACKAGE = python27
        * TERMINFO_TYPE = terminfo

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.13.2
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency python27>=2.7.1nb2: found python27-2.7.15nb1
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
===> Overriding tools for libLLVM-4.0.1
===> Extracting for libLLVM-4.0.1
cp ../../mk/gnu-config/config.guess /tmp/pkgbuild/lang/libLLVM/work/llvm-4.0.1.src/cmake/config.guess
cp ../../mk/gnu-config/config.sub /tmp/pkgbuild/lang/libLLVM/work/llvm-4.0.1.src/cmake/config.sub
===> Patching for libLLVM-4.0.1
=> Applying pkgsrc patches for libLLVM-4.0.1
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.1 2016/03/08 21:06:50 tnn Exp $
|
|Put headers in subdirectory to avoid conflict with clang.
|
|--- CMakeLists.txt.orig	2016-01-13 19:03:44.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 917 (offset 189 lines).
Hunk #2 succeeded at 929 (offset 189 lines).
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_AddLLVM.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.6 2017/12/08 02:14:44 gdt Exp $
|
|Disable library install rules. Handled manually.
|Make sure llvm-config goes in libexec/libLLVM to avoid conflict.
|Don't use non-portable -z discard-unused on SunOS.
|
|--- cmake/modules/AddLLVM.cmake.orig	2017-01-17 21:47:58.000000000 +0000
|+++ cmake/modules/AddLLVM.cmake
--------------------------
Patching file cmake/modules/AddLLVM.cmake using Plan A...
Hunk #1 succeeded at 182.
Hunk #2 succeeded at 588.
Hunk #3 succeeded at 625.
Hunk #4 succeeded at 812.
Hunk #5 succeeded at 853.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_modules_CMakeLists.txt,v 1.3 2017/03/17 22:38:18 adam Exp $
|
|Make sure cmake rules go in own directory to avoid conflicts.
|
|--- cmake/modules/CMakeLists.txt.orig	2016-11-08 05:02:18.000000000 +0000
|+++ cmake/modules/CMakeLists.txt
--------------------------
Patching file cmake/modules/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_HandleLLVMOptions.cmake
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_HandleLLVMOptions.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_modules_HandleLLVMOptions.cmake,v 1.1 2016/12/10 22:30:27 maya Exp $
|
|DragonflyBSD support
|
|--- cmake/modules/HandleLLVMOptions.cmake.orig 2016-01-06 19:05:19.000000000 +0000
|+++ cmake/modules/HandleLLVMOptions.cmake
--------------------------
Patching file cmake/modules/HandleLLVMOptions.cmake using Plan A...
Hunk #1 succeeded at 106 (offset -26 lines).
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-cmake_modules_TableGen.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_modules_TableGen.cmake,v 1.3 2017/03/17 22:38:18 adam Exp $
|
|Disable install of llvm-tblgen, provided by lang/llvm.
|
|--- cmake/modules/TableGen.cmake.orig	2016-12-06 17:09:29.000000000 +0000
|+++ cmake/modules/TableGen.cmake
--------------------------
Patching file cmake/modules/TableGen.cmake using Plan A...
Hunk #1 succeeded at 134.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-include_llvm_Support_Host.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_llvm_Support_Host.h,v 1.5 2017/12/08 02:14:44 gdt Exp $
|
|Fix lack of machine/endian.h on solaris
|http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
|
|--- include/llvm/Support/Host.h.orig	2016-10-13 17:43:20.000000000 +0000
|+++ include/llvm/Support/Host.h
--------------------------
Patching file include/llvm/Support/Host.h using Plan A...
Hunk #1 succeeded at 20.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-lib_Support_Unix_Program.inc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_Support_Unix_Program.inc,v 1.3 2017/12/08 02:14:44 gdt Exp $
|
|Remove bogus redefine.
|
|--- lib/Support/Unix/Program.inc.orig	2016-04-05 20:45:04.000000000 +0000
|+++ lib/Support/Unix/Program.inc
--------------------------
Patching file lib/Support/Unix/Program.inc using Plan A...
Hunk #1 succeeded at 40.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-tools_llvm-config_llvm-config.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_llvm-config_llvm-config.cpp,v 1.5 2017/12/08 02:14:44 gdt Exp $
|
|Avoid conflict with lang/clang.
|Use -lLLVM-3.8 instead of -lLLVM-3.8.0 so we don't break unnecessarily
|on patch updates.
|
|--- tools/llvm-config/llvm-config.cpp.orig	2017-01-12 19:47:38.000000000 +0000
|+++ tools/llvm-config/llvm-config.cpp
--------------------------
Patching file tools/llvm-config/llvm-config.cpp using Plan A...
Hunk #1 succeeded at 332.
Hunk #2 succeeded at 370.
Hunk #3 succeeded at 390.
Hunk #4 succeeded at 491.
done
=> Verifying /usr/pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
=> Applying pkgsrc patch /usr/pkgsrc/lang/libLLVM/patches/patch-tools_llvm-shlib_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.5 2017/12/08 02:14:44 gdt Exp $
|
|Use the Linux style linking everywhere except Darwin and SunOS.
|
|--- tools/llvm-shlib/CMakeLists.txt.orig	2016-05-26 04:35:35.000000000 +0000
|+++ tools/llvm-shlib/CMakeLists.txt
--------------------------
Patching file tools/llvm-shlib/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 37.
done
===> Creating toolchain wrappers for libLLVM-4.0.1
===> Configuring for libLLVM-4.0.1
=> Fixing llvm-config paths
=> Replacing Perl interpreter in utils/GenLibDeps.pl utils/UpdateCMakeLists.pl utils/codegen-diff utils/findsym.pl utils/llvm-native-gxx utils/test_debuginfo.pl.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in ./CMakeLists.txt.
=> Checking for portability problems in extracted files
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
  The OLD behavior for policy CMP0051 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- The ASM compiler identification is GNU
-- Found assembler: /tmp/pkgbuild/lang/libLLVM/work/.cwrapper/bin/gcc
-- Check for working C compiler: /tmp/pkgbuild/lang/libLLVM/work/.cwrapper/bin/gcc
-- Check for working C compiler: /tmp/pkgbuild/lang/libLLVM/work/.cwrapper/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /tmp/pkgbuild/lang/libLLVM/work/.cwrapper/bin/g++
-- Check for working CXX compiler: /tmp/pkgbuild/lang/libLLVM/work/.cwrapper/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for dirent.h
CMake Warning (dev) at /usr/pkg/share/cmake-3.13/Modules/CheckIncludeFile.cmake:70 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    m

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  cmake/config-ix.cmake:46 (check_include_file)
  CMakeLists.txt:582 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for link.h
-- Looking for link.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.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/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for termios.h
-- Looking for termios.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 zlib.h
-- Looking for zlib.h - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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  
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Looking for el_init in edit
-- Looking for el_init in edit - found
-- Looking for setupterm in tinfo
-- Looking for setupterm in tinfo - found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Looking for writev
-- Looking for writev - found
-- Looking for lseek64
-- Looking for lseek64 - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mktemp
-- Looking for mktemp - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed
-- Looking for __atomic_load_8 in atomic
-- Looking for __atomic_load_8 in atomic - not found
CMake Error at cmake/modules/CheckAtomic.cmake:74 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  cmake/config-ix.cmake:307 (include)
  CMakeLists.txt:582 (include)


-- Configuring incomplete, errors occurred!
See also "/tmp/pkgbuild/lang/libLLVM/work/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/pkgbuild/lang/libLLVM/work/build/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/libLLVM
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/libLLVM