oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.76k stars 220 forks source link

Build on OpenBSD -current (7.2) fails with undefined pthread symbols #2000

Open vl-ms opened 1 year ago

vl-ms commented 1 year ago

Hello. I attempted to build lokinet on x86_64 OpenBSD, with 12 GBs of RAM and 4 cores/8 threads (though OpenBSD disables hyperthreading). Following the initial Linux instructions, I installed all of the required packages, configured with cmake, and executed make. Here's the output.

$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&
CMake Warning at cmake/enable_lto.cmake:12 (message):
  LTO not supported by compiler: Change Dir:
  /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

  Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
  directory

  Generator: execution of make failed.  Make command was: /usr/bin/gmake -f
  Makefile &&

Call Stack (most recent call first):
  CMakeLists.txt:67 (include)

-- we have std::optional
-- No extra link flag needed for std::filesystem
-- we have std::filesystem
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_2bc48/fast &&
-- Checking for module 'libsystemd'
--
-- Checking submodules
-- Submodule 'external/nlohmann' is up-to-date
-- Submodule 'external/cxxopts' is up-to-date
-- Submodule 'external/ghc-filesystem' is up-to-date
-- Submodule 'external/oxen-logging' is up-to-date
-- Submodule 'external/pybind11' is up-to-date
-- Submodule 'external/sqlite_orm' is up-to-date
-- Submodule 'external/oxen-mq' is up-to-date
-- Submodule 'external/oxen-encoding' is up-to-date
-- Submodule 'external/uvw' is up-to-date
-- Submodule 'external/cpr' is up-to-date
-- Submodule 'external/ngtcp2' is up-to-date
-- Checking for module 'liboxenc>=1.0.3'
--
-- using oxenc submodule
-- oxenc v1.0.3
-- Checking for module 'liboxenmq>=1.2.12'
--
-- using oxenmq submodule
-- oxenmq v1.2.12
-- using pre-existing oxenc::oxenc target
-- libzmq >= 4.3 not found or static build requested, building bundled version
https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command)
  external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add)
  external/oxen-mq/CMakeLists.txt:128 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'nlohmann_json>=3.7.0'
--
-- using nlohmann_json submodule
-- Using the single-header code from /home/unix/soft/lokinet/external/nlohmann/single_include/
-- Did not find suitable fmt; using submodule
-- Did not find suitable spdlog; using submodule
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: Release
-- CXX_STANDARD: 17
-- Required features: cxx_variadic_templates
-- Build spdlog: 1.10.0
-- Build type: Release
-- Stripping source root /home/unix/soft/lokinet from log paths
-- cxxopts version 2.2.0
-- Checking for module 'jemalloc'
--
-- jemalloc not found, not linking to jemalloc
-- Building libntrup with runtime AVX2/FMA support
-- Found Git: /usr/local/bin/git
-- Checking for module 'libcrypt'
--
-- not building gui
-- Configuring incomplete, errors occurred!
See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeOutput.log".
See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeError.log".
daybreak$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF > out.txt
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&
CMake Warning at cmake/enable_lto.cmake:12 (message):
  LTO not supported by compiler: Change Dir:
  /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

  Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
  directory

  Generator: execution of make failed.  Make command was: /usr/bin/gmake -f
  Makefile &&

Call Stack (most recent call first):
  CMakeLists.txt:67 (include)

CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_33504/fast &&
https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command)
  external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add)
  external/oxen-mq/CMakeLists.txt:128 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
$ make
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&
CMake Warning at cmake/enable_lto.cmake:12 (message):
  LTO not supported by compiler: Change Dir:
  /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

  Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
  directory

  Generator: execution of make failed.  Make command was: /usr/bin/gmake -f
  Makefile &&

Call Stack (most recent call first):
  CMakeLists.txt:67 (include)

-- we have std::optional
-- No extra link flag needed for std::filesystem
-- we have std::filesystem
CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_f4f04/fast &&
-- Checking for module 'libsystemd'
--
-- Checking submodules
-- Submodule 'external/nlohmann' is up-to-date
-- Submodule 'external/cxxopts' is up-to-date
-- Submodule 'external/ghc-filesystem' is up-to-date
-- Submodule 'external/oxen-logging' is up-to-date
-- Submodule 'external/pybind11' is up-to-date
-- Submodule 'external/sqlite_orm' is up-to-date
-- Submodule 'external/oxen-mq' is up-to-date
-- Submodule 'external/oxen-encoding' is up-to-date
-- Submodule 'external/uvw' is up-to-date
-- Submodule 'external/cpr' is up-to-date
-- Submodule 'external/ngtcp2' is up-to-date
-- Checking for module 'liboxenc>=1.0.3'
--
-- using oxenc submodule
-- oxenc v1.0.3
-- Checking for module 'liboxenmq>=1.2.12'
--
-- using oxenmq submodule
-- oxenmq v1.2.12
-- using pre-existing oxenc::oxenc target
-- libzmq >= 4.3 not found or static build requested, building bundled version
https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz
CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command)
  external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add)
  external/oxen-mq/CMakeLists.txt:128 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'nlohmann_json>=3.7.0'
--
-- using nlohmann_json submodule
-- Using the single-header code from /home/unix/soft/lokinet/external/nlohmann/single_include/
-- Did not find suitable fmt; using submodule
-- Did not find suitable spdlog; using submodule
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: Release
-- CXX_STANDARD: 17
-- Required features: cxx_variadic_templates
-- Build spdlog: 1.10.0
-- Build type: Release
-- Stripping source root /home/unix/soft/lokinet from log paths
-- cxxopts version 2.2.0
-- Checking for module 'jemalloc'
--
-- jemalloc not found, not linking to jemalloc
-- Building libntrup with runtime AVX2/FMA support
-- Found Git: /usr/local/bin/git
-- Checking for module 'libcrypt'
--
-- not building gui
-- Configuring incomplete, errors occurred!
See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeOutput.log".
See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeError.log".
*** Error 1 in /home/unix/soft/lokinet/build (Makefile:943 'cmake_check_build_system': /usr/local/bin/cmake -S/home/unix/soft/lokinet -B/hom...)

Here's a CMakeOutput.log and CMakeError.log. It says that the pthread symbols are undefined.

$ cat CMakeFiles/CMakeOutput.log
The system is: OpenBSD - 7.2 - amd64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: 
Id flags:  

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is Clang, found in "/home/unix/soft/lokinet/build/CMakeFiles/3.24.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is Clang, found in "/home/unix/soft/lokinet/build/CMakeFiles/3.24.2/CompilerIdCXX/a.out"

Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_e0d2c/fast && /usr/bin/make  -f CMakeFiles/cmTC_e0d2c.dir/build.make CMakeFiles/cmTC_e0d2c.dir/build
Building C object CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o
/usr/bin/cc   -v -MD -MT CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin
 (in-process)
 "/usr/bin/cc" -cc1 -triple amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -resource-dir /usr/lib/clang/13.0.0 -dependency-file CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -sys-header-deps -internal-isystem /usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -x c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target amd64-unknown-openbsd7.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/clang/13.0.0/include
 /usr/include
End of search list.
Linking C executable cmTC_e0d2c
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e0d2c.dir/link.txt --verbose=1
/usr/bin/cc  -v CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -o cmTC_e0d2c  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin
 "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_e0d2c /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -rpath-link /usr/X11R6/lib:/usr/local/lib -lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o

Parsed C implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/usr/lib/clang/13.0.0/include]
    add: [/usr/include]
  end of search list found
  collapse include dir [/usr/lib/clang/13.0.0/include] ==> [/usr/lib/clang/13.0.0/include]
  collapse include dir [/usr/include] ==> [/usr/include]
  implicit include dirs: [/usr/lib/clang/13.0.0/include;/usr/include]

Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/usr/bin/make -f Makefile cmTC_e0d2c/fast && /usr/bin/make  -f CMakeFiles/cmTC_e0d2c.dir/build.make CMakeFiles/cmTC_e0d2c.dir/build]
  ignore line: [Building C object CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o]
  ignore line: [/usr/bin/cc   -v -MD -MT CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c]
  ignore line: [OpenBSD clang version 13.0.0]
  ignore line: [Target: amd64-unknown-openbsd7.2]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /usr/bin]
  ignore line: [ (in-process)]
  ignore line: [ "/usr/bin/cc" -cc1 -triple amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -resource-dir /usr/lib/clang/13.0.0 -dependency-file CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -sys-header-deps -internal-isystem /usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -x c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c]
  ignore line: [clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target amd64-unknown-openbsd7.2]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /usr/lib/clang/13.0.0/include]
  ignore line: [ /usr/include]
  ignore line: [End of search list.]
  ignore line: [Linking C executable cmTC_e0d2c]
  ignore line: [/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e0d2c.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/cc  -v CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -o cmTC_e0d2c  -Wl -rpath-link /usr/X11R6/lib:/usr/local/lib ]
  ignore line: [OpenBSD clang version 13.0.0]
  ignore line: [Target: amd64-unknown-openbsd7.2]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /usr/bin]
  link line: [ "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_e0d2c /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -rpath-link /usr/X11R6/lib:/usr/local/lib -lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o]
    arg [/usr/bin/ld] ==> ignore
    arg [-e] ==> ignore
    arg [__start] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-Bdynamic] ==> search dynamic
    arg [-dynamic-linker] ==> ignore
    arg [/usr/libexec/ld.so] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_e0d2c] ==> ignore
    arg [/usr/lib/crt0.o] ==> obj [/usr/lib/crt0.o]
    arg [/usr/lib/crtbegin.o] ==> obj [/usr/lib/crtbegin.o]
    arg [-L/usr/lib] ==> dir [/usr/lib]
    arg [CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o] ==> ignore
    arg [-rpath-link] ==> ignore
    arg [/usr/X11R6/lib:/usr/local/lib] ==> ignore
    arg [-lcompiler_rt] ==> lib [compiler_rt]
    arg [-lc] ==> lib [c]
    arg [-lcompiler_rt] ==> lib [compiler_rt]
    arg [/usr/lib/crtend.o] ==> obj [/usr/lib/crtend.o]
  collapse library dir [/usr/lib] ==> [/usr/lib]
  implicit libs: [compiler_rt;c;compiler_rt]
  implicit objs: [/usr/lib/crt0.o;/usr/lib/crtbegin.o;/usr/lib/crtend.o]
  implicit dirs: [/usr/lib]
  implicit fwks: []

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_df811/fast && /usr/bin/make  -f CMakeFiles/cmTC_df811.dir/build.make CMakeFiles/cmTC_df811.dir/build
Building CXX object CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++   -v -MD -MT CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin
 (in-process)
 "/usr/bin/c++" -cc1 -triple amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -resource-dir /usr/lib/clang/13.0.0 -dependency-file CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -x c++ /usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target amd64-unknown-openbsd7.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/v1
 /usr/lib/clang/13.0.0/include
 /usr/include
End of search list.
Linking CXX executable cmTC_df811
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_df811.dir/link.txt --verbose=1
/usr/bin/c++  -v CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_df811  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin
 "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_df811 /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -rpath-link /usr/X11R6/lib:/usr/local/lib -lc++ -lc++abi -lpthread -lm -lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o

Parsed CXX implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/usr/include/c++/v1]
    add: [/usr/lib/clang/13.0.0/include]
    add: [/usr/include]
  end of search list found
  collapse include dir [/usr/include/c++/v1] ==> [/usr/include/c++/v1]
  collapse include dir [/usr/lib/clang/13.0.0/include] ==> [/usr/lib/clang/13.0.0/include]
  collapse include dir [/usr/include] ==> [/usr/include]
  implicit include dirs: [/usr/include/c++/v1;/usr/lib/clang/13.0.0/include;/usr/include]

Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/usr/bin/make -f Makefile cmTC_df811/fast && /usr/bin/make  -f CMakeFiles/cmTC_df811.dir/build.make CMakeFiles/cmTC_df811.dir/build]
  ignore line: [Building CXX object CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o]
  ignore line: [/usr/bin/c++   -v -MD -MT CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [OpenBSD clang version 13.0.0]
  ignore line: [Target: amd64-unknown-openbsd7.2]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /usr/bin]
  ignore line: [ (in-process)]
  ignore line: [ "/usr/bin/c++" -cc1 -triple amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -resource-dir /usr/lib/clang/13.0.0 -dependency-file CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -x c++ /usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target amd64-unknown-openbsd7.2]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /usr/include/c++/v1]
  ignore line: [ /usr/lib/clang/13.0.0/include]
  ignore line: [ /usr/include]
  ignore line: [End of search list.]
  ignore line: [Linking CXX executable cmTC_df811]
  ignore line: [/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_df811.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/c++  -v CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_df811  -Wl -rpath-link /usr/X11R6/lib:/usr/local/lib ]
  ignore line: [OpenBSD clang version 13.0.0]
  ignore line: [Target: amd64-unknown-openbsd7.2]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /usr/bin]
  link line: [ "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_df811 /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -rpath-link /usr/X11R6/lib:/usr/local/lib -lc++ -lc++abi -lpthread -lm -lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o]
    arg [/usr/bin/ld] ==> ignore
    arg [-e] ==> ignore
    arg [__start] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-Bdynamic] ==> search dynamic
    arg [-dynamic-linker] ==> ignore
    arg [/usr/libexec/ld.so] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_df811] ==> ignore
    arg [/usr/lib/crt0.o] ==> obj [/usr/lib/crt0.o]
    arg [/usr/lib/crtbegin.o] ==> obj [/usr/lib/crtbegin.o]
    arg [-L/usr/lib] ==> dir [/usr/lib]
    arg [CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
    arg [-rpath-link] ==> ignore
    arg [/usr/X11R6/lib:/usr/local/lib] ==> ignore
    arg [-lc++] ==> lib [c++]
    arg [-lc++abi] ==> lib [c++abi]
    arg [-lpthread] ==> lib [pthread]
    arg [-lm] ==> lib [m]
    arg [-lcompiler_rt] ==> lib [compiler_rt]
    arg [-lc] ==> lib [c]
    arg [-lcompiler_rt] ==> lib [compiler_rt]
    arg [/usr/lib/crtend.o] ==> obj [/usr/lib/crtend.o]
  collapse library dir [/usr/lib] ==> [/usr/lib]
  implicit libs: [c++;c++abi;pthread;m;compiler_rt;c;compiler_rt]
  implicit objs: [/usr/lib/crt0.o;/usr/lib/crtbegin.o;/usr/lib/crtend.o]
  implicit dirs: [/usr/lib]
  implicit fwks: []

Performing C++ SOURCE FILE Test was_compiled succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_572eb/fast && /usr/bin/make  -f CMakeFiles/cmTC_572eb.dir/build.make CMakeFiles/cmTC_572eb.dir/build
Building CXX object CMakeFiles/cmTC_572eb.dir/src.cxx.o
/usr/bin/c++ -Dwas_compiled  -fPIE -std=c++17 -MD -MT CMakeFiles/cmTC_572eb.dir/src.cxx.o -MF CMakeFiles/cmTC_572eb.dir/src.cxx.o.d -o CMakeFiles/cmTC_572eb.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_572eb
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_572eb.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_572eb.dir/src.cxx.o -o cmTC_572eb  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
#include <optional>

int main() {
   std::optional<int> maybe;
   maybe = 1;
   return *maybe == 1;
}

Performing C++ SOURCE FILE Test filesystem_compiled succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_dcdad/fast && /usr/bin/make  -f CMakeFiles/cmTC_dcdad.dir/build.make CMakeFiles/cmTC_dcdad.dir/build
Building CXX object CMakeFiles/cmTC_dcdad.dir/src.cxx.o
/usr/bin/c++ -Dfilesystem_compiled  -fPIE -std=c++17 -MD -MT CMakeFiles/cmTC_dcdad.dir/src.cxx.o -MF CMakeFiles/cmTC_dcdad.dir/src.cxx.o.d -o CMakeFiles/cmTC_dcdad.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_dcdad
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dcdad.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_dcdad.dir/src.cxx.o -o cmTC_dcdad  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
#include <filesystem>

int main() {
    auto cwd = std::filesystem::current_path();
    return !cwd.string().empty();
}

Performing C++ SOURCE FILE Test has_std_17_flag succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_f05fb/fast && /usr/bin/make  -f CMakeFiles/cmTC_f05fb.dir/build.make CMakeFiles/cmTC_f05fb.dir/build
Building CXX object CMakeFiles/cmTC_f05fb.dir/src.cxx.o
/usr/bin/c++ -Dhas_std_17_flag  -fPIE   -std=c++17 -std=c++17 -MD -MT CMakeFiles/cmTC_f05fb.dir/src.cxx.o -MF CMakeFiles/cmTC_f05fb.dir/src.cxx.o.d -o CMakeFiles/cmTC_f05fb.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_f05fb
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f05fb.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_f05fb.dir/src.cxx.o -o cmTC_f05fb  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test has_std_1z_flag succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_3d005/fast && /usr/bin/make  -f CMakeFiles/cmTC_3d005.dir/build.make CMakeFiles/cmTC_3d005.dir/build
Building CXX object CMakeFiles/cmTC_3d005.dir/src.cxx.o
/usr/bin/c++ -Dhas_std_1z_flag  -fPIE   -std=c++1z -std=c++17 -MD -MT CMakeFiles/cmTC_3d005.dir/src.cxx.o -MF CMakeFiles/cmTC_3d005.dir/src.cxx.o.d -o CMakeFiles/cmTC_3d005.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_3d005
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3d005.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_3d005.dir/src.cxx.o -o cmTC_3d005  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAS_NULLPTR_WARNING succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_eb2a2/fast && /usr/bin/make  -f CMakeFiles/cmTC_eb2a2.dir/build.make CMakeFiles/cmTC_eb2a2.dir/build
Building CXX object CMakeFiles/cmTC_eb2a2.dir/src.cxx.o
/usr/bin/c++ -DHAS_NULLPTR_WARNING  -fPIE   -Wzero-as-null-pointer-constant -std=c++17 -MD -MT CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -MF CMakeFiles/cmTC_eb2a2.dir/src.cxx.o.d -o CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_eb2a2
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eb2a2.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -o cmTC_eb2a2  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Determining if the include file arpa/inet.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_3089d/fast && /usr/bin/make  -f CMakeFiles/cmTC_3089d.dir/build.make CMakeFiles/cmTC_3089d.dir/build
Building C object CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_3089d
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3089d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -o cmTC_3089d  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file netinet/in.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_94c26/fast && /usr/bin/make  -f CMakeFiles/cmTC_94c26.dir/build.make CMakeFiles/cmTC_94c26.dir/build
Building C object CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_94c26
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_94c26.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -o cmTC_94c26  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stddef.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_d2d8d/fast && /usr/bin/make  -f CMakeFiles/cmTC_d2d8d.dir/build.make CMakeFiles/cmTC_d2d8d.dir/build
Building C object CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_d2d8d
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2d8d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -o cmTC_d2d8d  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stdint.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_27648/fast && /usr/bin/make  -f CMakeFiles/cmTC_27648.dir/build.make CMakeFiles/cmTC_27648.dir/build
Building C object CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_27648
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_27648.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -o cmTC_27648  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stdlib.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_4e5e0/fast && /usr/bin/make  -f CMakeFiles/cmTC_4e5e0.dir/build.make CMakeFiles/cmTC_4e5e0.dir/build
Building C object CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_4e5e0
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4e5e0.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -o cmTC_4e5e0  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file string.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_38fd7/fast && /usr/bin/make  -f CMakeFiles/cmTC_38fd7.dir/build.make CMakeFiles/cmTC_38fd7.dir/build
Building C object CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_38fd7
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_38fd7.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -o cmTC_38fd7  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file unistd.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_6e703/fast && /usr/bin/make  -f CMakeFiles/cmTC_6e703.dir/build.make CMakeFiles/cmTC_6e703.dir/build
Building C object CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_6e703
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6e703.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -o cmTC_6e703  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file sys/endian.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_a6c16/fast && /usr/bin/make  -f CMakeFiles/cmTC_a6c16.dir/build.make CMakeFiles/cmTC_a6c16.dir/build
Building C object CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_a6c16
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a6c16.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -o cmTC_a6c16  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file endian.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_aacf8/fast && /usr/bin/make  -f CMakeFiles/cmTC_aacf8.dir/build.make CMakeFiles/cmTC_aacf8.dir/build
Building C object CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_aacf8
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aacf8.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -o cmTC_aacf8  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file sys/types.h exists passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_28128/fast && /usr/bin/make  -f CMakeFiles/cmTC_28128.dir/build.make CMakeFiles/cmTC_28128.dir/build
Building C object CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_28128
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_28128.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -o cmTC_28128  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining size of ssize_t passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_efce0/fast && /usr/bin/make  -f CMakeFiles/cmTC_efce0.dir/build.make CMakeFiles/cmTC_efce0.dir/build
Building C object CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -MF CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o.d -o CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CheckTypeSize/SIZEOF_SSIZE_T.c
Linking C executable cmTC_efce0
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_efce0.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -o cmTC_efce0  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the be64toh exist passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_7f2ec/fast && /usr/bin/make  -f CMakeFiles/cmTC_7f2ec.dir/build.make CMakeFiles/cmTC_7f2ec.dir/build
Building C object CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_7f2ec
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7f2ec.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -o cmTC_7f2ec  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

File /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <endian.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef be64toh
  return ((int*)(&be64toh))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_AVX2 succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_fe831/fast && /usr/bin/make  -f CMakeFiles/cmTC_fe831.dir/build.make CMakeFiles/cmTC_fe831.dir/build
Building CXX object CMakeFiles/cmTC_fe831.dir/src.cxx.o
/usr/bin/c++ -DCOMPILER_SUPPORTS_AVX2  -fPIE   -mavx2 -std=c++17 -MD -MT CMakeFiles/cmTC_fe831.dir/src.cxx.o -MF CMakeFiles/cmTC_fe831.dir/src.cxx.o.d -o CMakeFiles/cmTC_fe831.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_fe831
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fe831.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_fe831.dir/src.cxx.o -o cmTC_fe831  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_FMA succeeded with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_4bb78/fast && /usr/bin/make  -f CMakeFiles/cmTC_4bb78.dir/build.make CMakeFiles/cmTC_4bb78.dir/build
Building CXX object CMakeFiles/cmTC_4bb78.dir/src.cxx.o
/usr/bin/c++ -DCOMPILER_SUPPORTS_FMA  -fPIE   -mfma -std=c++17 -MD -MT CMakeFiles/cmTC_4bb78.dir/src.cxx.o -MF CMakeFiles/cmTC_4bb78.dir/src.cxx.o.d -o CMakeFiles/cmTC_4bb78.dir/src.cxx.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_4bb78
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4bb78.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_4bb78.dir/src.cxx.o -o cmTC_4bb78  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }

$ cat CMakeFiles/CMakeError.log
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_02aa5/fast && /usr/bin/make  -f CMakeFiles/cmTC_02aa5.dir/build.make CMakeFiles/cmTC_02aa5.dir/build
Building C object CMakeFiles/cmTC_02aa5.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD  -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_02aa5.dir/src.c.o -MF CMakeFiles/cmTC_02aa5.dir/src.c.o.d -o CMakeFiles/cmTC_02aa5.dir/src.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_02aa5
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_02aa5.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_02aa5.dir/src.c.o -o cmTC_02aa5  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 
ld: error: undefined symbol: pthread_create
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_detach
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_cancel
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_join
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error 1 in . (CMakeFiles/cmTC_02aa5.dir/build.make:100 'cmTC_02aa5')
*** Error 2 in /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127 'cmTC_02aa5/fast')

Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the include file byteswap.h exists failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_39c3a/fast && /usr/bin/make  -f CMakeFiles/cmTC_39c3a.dir/build.make CMakeFiles/cmTC_39c3a.dir/build
Building C object CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'byteswap.h' file not found
#include <byteswap.h>
         ^~~~~~~~~~~~
1 error generated.
*** Error 1 in . (CMakeFiles/cmTC_39c3a.dir/build.make:79 'CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o')
*** Error 2 in /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127 'cmTC_39c3a/fast')

Determining if the bswap_64 exist failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_86402/fast && /usr/bin/make  -f CMakeFiles/cmTC_86402.dir/build.make CMakeFiles/cmTC_86402.dir/build
Building C object CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fPIE -std=c99 -MD -MT CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o -c /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'byteswap.h' file not found
#include <byteswap.h>
         ^~~~~~~~~~~~
1 error generated.
*** Error 1 in . (CMakeFiles/cmTC_86402.dir/build.make:79 'CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o')
*** Error 2 in /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127 'cmTC_86402/fast')

File /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <byteswap.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef bswap_64
  return ((int*)(&bswap_64))[argc];
#else
  (void)argc;
  return 0;
#endif
}
CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory
Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && 
majestrate commented 1 year ago

On Sun, 02 Oct 2022 08:23:32 -0700 vl-ms @.***> wrote:

Hello. I attempted to build lokinet on x86_64 OpenBSD, with 12 GBs of RAM and 4 cores/8 threads (though OpenBSD disables hyperthreading). Following the initial Linux instructions, I installed all of the required packages, configured with cmake, and executed make. Here's the output. ``` $ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && CMake Warning at cmake/enable_lto.cmake:12 (message): LTO not supported by compiler: Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory

Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&

Call Stack (most recent call first): CMakeLists.txt:67 (include)

-- we have std::optional -- No extra link flag needed for std::filesystem -- we have std::filesystem CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_2bc48/fast && -- Checking for module 'libsystemd' -- -- Checking submodules -- Submodule 'external/nlohmann' is up-to-date -- Submodule 'external/cxxopts' is up-to-date -- Submodule 'external/ghc-filesystem' is up-to-date -- Submodule 'external/oxen-logging' is up-to-date -- Submodule 'external/pybind11' is up-to-date -- Submodule 'external/sqlite_orm' is up-to-date -- Submodule 'external/oxen-mq' is up-to-date -- Submodule 'external/oxen-encoding' is up-to-date -- Submodule 'external/uvw' is up-to-date -- Submodule 'external/cpr' is up-to-date -- Submodule 'external/ngtcp2' is up-to-date -- Checking for module 'liboxenc>=1.0.3'

-- using oxenc submodule -- oxenc v1.0.3 -- Checking for module 'liboxenmq>=1.2.12'

-- using oxenmq submodule -- oxenmq v1.2.12 -- using pre-existing oxenc::oxenc target -- libzmq >= 4.3 not found or static build requested, building bundled version https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add) external/oxen-mq/CMakeLists.txt:128 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Checking for module 'nlohmann_json>=3.7.0'

-- using nlohmann_json submodule -- Using the single-header code from /home/unix/soft/lokinet/external/nlohmann/single_include/ -- Did not find suitable fmt; using submodule -- Did not find suitable spdlog; using submodule -- Module support is disabled. -- Version: 9.0.0 -- Build type: Release -- CXX_STANDARD: 17 -- Required features: cxx_variadic_templates -- Build spdlog: 1.10.0 -- Build type: Release -- Stripping source root /home/unix/soft/lokinet from log paths -- cxxopts version 2.2.0 -- Checking for module 'jemalloc'

-- jemalloc not found, not linking to jemalloc -- Building libntrup with runtime AVX2/FMA support -- Found Git: /usr/local/bin/git -- Checking for module 'libcrypt'

-- not building gui -- Configuring incomplete, errors occurred! See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeOutput.log". See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeError.log". daybreak$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF

out.txt CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && CMake Warning at cmake/enable_lto.cmake:12 (message): LTO not supported by compiler: Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory

Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&

Call Stack (most recent call first): CMakeLists.txt:67 (include)

CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_33504/fast && https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add) external/oxen-mq/CMakeLists.txt:128 (include) This warning is for project developers. Use -Wno-dev to suppress it. $ make CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile && CMake Warning at cmake/enable_lto.cmake:12 (message): LTO not supported by compiler: Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or directory

Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile &&

Call Stack (most recent call first): CMakeLists.txt:67 (include)

-- we have std::optional -- No extra link flag needed for std::filesystem -- we have std::filesystem CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake -f Makefile cmTC_f4f04/fast && -- Checking for module 'libsystemd' -- -- Checking submodules -- Submodule 'external/nlohmann' is up-to-date -- Submodule 'external/cxxopts' is up-to-date -- Submodule 'external/ghc-filesystem' is up-to-date -- Submodule 'external/oxen-logging' is up-to-date -- Submodule 'external/pybind11' is up-to-date -- Submodule 'external/sqlite_orm' is up-to-date -- Submodule 'external/oxen-mq' is up-to-date -- Submodule 'external/oxen-encoding' is up-to-date -- Submodule 'external/uvw' is up-to-date -- Submodule 'external/cpr' is up-to-date -- Submodule 'external/ngtcp2' is up-to-date -- Checking for module 'liboxenc>=1.0.3'

-- using oxenc submodule -- oxenc v1.0.3 -- Checking for module 'liboxenmq>=1.2.12'

-- using oxenmq submodule -- oxenmq v1.2.12 -- using pre-existing oxenc::oxenc target -- libzmq >= 4.3 not found or static build requested, building bundled version https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.tar.gz CMake Warning (dev) at /usr/local/share/cmake/Modules/ExternalProject.cmake:3074 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /usr/local/share/cmake/Modules/ExternalProject.cmake:4170 (_ep_add_download_command) external/oxen-mq/cmake/local-libzmq/LocalLibzmq.cmake:18 (ExternalProject_Add) external/oxen-mq/CMakeLists.txt:128 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Checking for module 'nlohmann_json>=3.7.0'

-- using nlohmann_json submodule -- Using the single-header code from /home/unix/soft/lokinet/external/nlohmann/single_include/ -- Did not find suitable fmt; using submodule -- Did not find suitable spdlog; using submodule -- Module support is disabled. -- Version: 9.0.0 -- Build type: Release -- CXX_STANDARD: 17 -- Required features: cxx_variadic_templates -- Build spdlog: 1.10.0 -- Build type: Release -- Stripping source root /home/unix/soft/lokinet from log paths -- cxxopts version 2.2.0 -- Checking for module 'jemalloc'

-- jemalloc not found, not linking to jemalloc -- Building libntrup with runtime AVX2/FMA support -- Found Git: /usr/local/bin/git -- Checking for module 'libcrypt'

-- not building gui -- Configuring incomplete, errors occurred! See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeOutput.log". See also "/home/unix/soft/lokinet/build/CMakeFiles/CMakeError.log". *** Error 1 in /home/unix/soft/lokinet/build (Makefile:943 'cmake_check_build_system': /usr/local/bin/cmake -S/home/unix/soft/lokinet -B/hom...)

Here's a CMakeOutput.log and CMakeError.log. It says that the pthread
symbols are undefined. ```
$ cat CMakeFiles/CMakeOutput.log
The system is: OpenBSD - 7.2 - amd64
Compiling the C compiler identification source file
"CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/cc 
Build flags: 
Id flags:  

The output was:
0

Compilation of the C compiler identification source
"CMakeCCompilerId.c" produced "a.out"

The C compiler identification is Clang, found in
"/home/unix/soft/lokinet/build/CMakeFiles/3.24.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
0

Compilation of the CXX compiler identification source
"CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is Clang, found in
"/home/unix/soft/lokinet/build/CMakeFiles/3.24.2/CompilerIdCXX/a.out"

Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_e0d2c/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_e0d2c.dir/build.make
CMakeFiles/cmTC_e0d2c.dir/build Building C object
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o /usr/bin/cc   -v -MD
-MT CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -MF
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -o
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -c
/usr/local/share/cmake/Modules/CMakeCCompilerABI.c OpenBSD clang
version 13.0.0 Target: amd64-unknown-openbsd7.2 Thread model: posix
InstalledDir: /usr/bin (in-process) "/usr/bin/cc" -cc1 -triple
amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
CMakeCCompilerABI.c -mrelocation-model pic -pic-level 1 -pic-is-pie
-mframe-pointer=all -relaxed-aliasing -fno-rounding-math
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-feature +retpoline-indirect-calls -target-feature
+retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb
-v
-fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-resource-dir /usr/lib/clang/13.0.0 -dependency-file
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -MT
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -sys-header-deps
-internal-isystem /usr/lib/clang/13.0.0/include
-internal-externc-isystem /usr/include
-fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector
-fgnuc-version=4.2.1 -fno-builtin-malloc -fno-builtin-calloc
-fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free
-fno-builtin-strdup -fno-builtin-strndup -faddrsig
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -x c
/usr/local/share/cmake/Modules/CMakeCCompilerABI.c clang -cc1 version
13.0.0 based upon LLVM 13.0.0 default target amd64-unknown-openbsd7.2
#include "..." search starts here: #include <...> search starts here:
/usr/lib/clang/13.0.0/include /usr/include End of search list.
Linking C executable cmTC_e0d2c /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_e0d2c.dir/link.txt --verbose=1
/usr/bin/cc  -v CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -o
cmTC_e0d2c  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib OpenBSD
clang version 13.0.0 Target: amd64-unknown-openbsd7.2 Thread model:
posix InstalledDir: /usr/bin "/usr/bin/ld" -e __start --eh-frame-hdr
-Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_e0d2c
/usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -rpath-link
/usr/X11R6/lib:/usr/local/lib -lcompiler_rt -lc -lcompiler_rt
/usr/lib/crtend.o

Parsed C implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/usr/lib/clang/13.0.0/include]
    add: [/usr/include]
  end of search list found
  collapse include dir [/usr/lib/clang/13.0.0/include] ==>
[/usr/lib/clang/13.0.0/include] collapse include dir [/usr/include]
==> [/usr/include] implicit include dirs:
[/usr/lib/clang/13.0.0/include;/usr/include]

Parsed C implicit link information from above output:
  link line regex: [^(
*|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*(
|$)] ignore line: [Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp] ignore line: []
ignore line: [Run Build Command(s):/usr/bin/make -f Makefile
cmTC_e0d2c/fast && /usr/bin/make  -f
CMakeFiles/cmTC_e0d2c.dir/build.make CMakeFiles/cmTC_e0d2c.dir/build]
ignore line: [Building C object
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o] ignore line:
[/usr/bin/cc   -v -MD -MT
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -MF
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -o
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -c
/usr/local/share/cmake/Modules/CMakeCCompilerABI.c] ignore line:
[OpenBSD clang version 13.0.0] ignore line: [Target:
amd64-unknown-openbsd7.2] ignore line: [Thread model: posix] ignore
line: [InstalledDir: /usr/bin] ignore line: [ (in-process)] ignore
line: [ "/usr/bin/cc" -cc1 -triple amd64-unknown-openbsd7.2 -emit-obj
-mrelax-all -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level
1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing
-fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-feature +retpoline-indirect-calls -target-feature
+retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb
-v
-fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-resource-dir /usr/lib/clang/13.0.0 -dependency-file
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o.d -MT
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -sys-header-deps
-internal-isystem /usr/lib/clang/13.0.0/include
-internal-externc-isystem /usr/include
-fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector
-fgnuc-version=4.2.1 -fno-builtin-malloc -fno-builtin-calloc
-fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free
-fno-builtin-strdup -fno-builtin-strndup -faddrsig
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -x c
/usr/local/share/cmake/Modules/CMakeCCompilerABI.c] ignore line:
[clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target
amd64-unknown-openbsd7.2] ignore line: [#include "..." search starts
here:] ignore line: [#include <...> search starts here:] ignore line:
[ /usr/lib/clang/13.0.0/include] ignore line: [ /usr/include] ignore
line: [End of search list.] ignore line: [Linking C executable
cmTC_e0d2c] ignore line: [/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_e0d2c.dir/link.txt --verbose=1] ignore line:
[/usr/bin/cc  -v CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -o
cmTC_e0d2c  -Wl -rpath-link /usr/X11R6/lib:/usr/local/lib ] ignore
line: [OpenBSD clang version 13.0.0] ignore line: [Target:
amd64-unknown-openbsd7.2] ignore line: [Thread model: posix] ignore
line: [InstalledDir: /usr/bin] link line: [ "/usr/bin/ld" -e __start
--eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o
cmTC_e0d2c /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib
CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o -rpath-link
/usr/X11R6/lib:/usr/local/lib -lcompiler_rt -lc -lcompiler_rt
/usr/lib/crtend.o] arg [/usr/bin/ld] ==> ignore arg [-e] ==> ignore
arg [__start] ==> ignore arg [--eh-frame-hdr] ==> ignore arg
[-Bdynamic] ==> search dynamic arg [-dynamic-linker] ==> ignore arg
[/usr/libexec/ld.so] ==> ignore arg [-o] ==> ignore arg [cmTC_e0d2c]
==> ignore arg [/usr/lib/crt0.o] ==> obj [/usr/lib/crt0.o] arg
[/usr/lib/crtbegin.o] ==> obj [/usr/lib/crtbegin.o] arg [-L/usr/lib]
==> dir [/usr/lib] arg
[CMakeFiles/cmTC_e0d2c.dir/CMakeCCompilerABI.c.o] ==> ignore arg
[-rpath-link] ==> ignore arg [/usr/X11R6/lib:/usr/local/lib] ==>
ignore arg [-lcompiler_rt] ==> lib [compiler_rt] arg [-lc] ==> lib
[c] arg [-lcompiler_rt] ==> lib [compiler_rt] arg [/usr/lib/crtend.o]
==> obj [/usr/lib/crtend.o] collapse library dir [/usr/lib] ==>
[/usr/lib] implicit libs: [compiler_rt;c;compiler_rt] implicit objs:
[/usr/lib/crt0.o;/usr/lib/crtbegin.o;/usr/lib/crtend.o] implicit
dirs: [/usr/lib] implicit fwks: []

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_df811/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_df811.dir/build.make
CMakeFiles/cmTC_df811.dir/build Building CXX object
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o /usr/bin/c++   -v
-MD -MT CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -MF
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -o
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -c
/usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp OpenBSD clang
version 13.0.0 Target: amd64-unknown-openbsd7.2 Thread model: posix
InstalledDir: /usr/bin (in-process) "/usr/bin/c++" -cc1 -triple
amd64-unknown-openbsd7.2 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 1
-pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-feature +retpoline-indirect-calls -target-feature
+retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb
-v
-fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-resource-dir /usr/lib/clang/13.0.0 -dependency-file
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -MT
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps
-internal-isystem /usr/include/c++/v1 -internal-isystem
/usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include
-fdeprecated-macro
-fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector
-fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc
-fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup
-fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -x c++
/usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp clang -cc1
version 13.0.0 based upon LLVM 13.0.0 default target
amd64-unknown-openbsd7.2 #include "..." search starts here: #include
<...> search starts here: /usr/include/c++/v1
/usr/lib/clang/13.0.0/include /usr/include End of search list.
Linking CXX executable cmTC_df811 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_df811.dir/link.txt --verbose=1
/usr/bin/c++  -v CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o
-o cmTC_df811  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib OpenBSD
clang version 13.0.0 Target: amd64-unknown-openbsd7.2 Thread model:
posix InstalledDir: /usr/bin "/usr/bin/ld" -e __start --eh-frame-hdr
-Bdynamic -dynamic-linker /usr/libexec/ld.so -o cmTC_df811
/usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -rpath-link
/usr/X11R6/lib:/usr/local/lib -lc++ -lc++abi -lpthread -lm
-lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o

Parsed CXX implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/usr/include/c++/v1]
    add: [/usr/lib/clang/13.0.0/include]
    add: [/usr/include]
  end of search list found
  collapse include dir [/usr/include/c++/v1] ==> [/usr/include/c++/v1]
  collapse include dir [/usr/lib/clang/13.0.0/include] ==>
[/usr/lib/clang/13.0.0/include] collapse include dir [/usr/include]
==> [/usr/include] implicit include dirs:
[/usr/include/c++/v1;/usr/lib/clang/13.0.0/include;/usr/include]

Parsed CXX implicit link information from above output:
  link line regex: [^(
*|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*(
|$)] ignore line: [Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp] ignore line: []
ignore line: [Run Build Command(s):/usr/bin/make -f Makefile
cmTC_df811/fast && /usr/bin/make  -f
CMakeFiles/cmTC_df811.dir/build.make CMakeFiles/cmTC_df811.dir/build]
ignore line: [Building CXX object
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o] ignore line:
[/usr/bin/c++   -v -MD -MT
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -MF
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -o
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -c
/usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp] ignore line:
[OpenBSD clang version 13.0.0] ignore line: [Target:
amd64-unknown-openbsd7.2] ignore line: [Thread model: posix] ignore
line: [InstalledDir: /usr/bin] ignore line: [ (in-process)] ignore
line: [ "/usr/bin/c++" -cc1 -triple amd64-unknown-openbsd7.2
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name CMakeCXXCompilerABI.cpp
-mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all
-relaxed-aliasing -fno-rounding-math -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-feature
+retpoline-indirect-calls -target-feature
+retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb
-v
-fcoverage-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-resource-dir /usr/lib/clang/13.0.0 -dependency-file
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o.d -MT
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps
-internal-isystem /usr/include/c++/v1 -internal-isystem
/usr/lib/clang/13.0.0/include -internal-externc-isystem /usr/include
-fdeprecated-macro
-fdebug-compilation-dir=/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp
-ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector
-fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc
-fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup
-fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -x c++
/usr/local/share/cmake/Modules/CMakeCXXCompilerABI.cpp] ignore line:
[clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target
amd64-unknown-openbsd7.2] ignore line: [#include "..." search starts
here:] ignore line: [#include <...> search starts here:] ignore line:
[ /usr/include/c++/v1] ignore line: [ /usr/lib/clang/13.0.0/include]
ignore line: [ /usr/include] ignore line: [End of search list.]
ignore line: [Linking CXX executable cmTC_df811] ignore line:
[/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_df811.dir/link.txt --verbose=1] ignore line:
[/usr/bin/c++  -v CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o
-o cmTC_df811  -Wl -rpath-link /usr/X11R6/lib:/usr/local/lib ] ignore
line: [OpenBSD clang version 13.0.0] ignore line: [Target:
amd64-unknown-openbsd7.2] ignore line: [Thread model: posix] ignore
line: [InstalledDir: /usr/bin] link line: [ "/usr/bin/ld" -e __start
--eh-frame-hdr -Bdynamic -dynamic-linker /usr/libexec/ld.so -o
cmTC_df811 /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/lib
CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o -rpath-link
/usr/X11R6/lib:/usr/local/lib -lc++ -lc++abi -lpthread -lm
-lcompiler_rt -lc -lcompiler_rt /usr/lib/crtend.o] arg [/usr/bin/ld]
==> ignore arg [-e] ==> ignore arg [__start] ==> ignore arg
[--eh-frame-hdr] ==> ignore arg [-Bdynamic] ==> search dynamic arg
[-dynamic-linker] ==> ignore arg [/usr/libexec/ld.so] ==> ignore arg
[-o] ==> ignore arg [cmTC_df811] ==> ignore arg [/usr/lib/crt0.o] ==>
obj [/usr/lib/crt0.o] arg [/usr/lib/crtbegin.o] ==> obj
[/usr/lib/crtbegin.o] arg [-L/usr/lib] ==> dir [/usr/lib] arg
[CMakeFiles/cmTC_df811.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore arg
[-rpath-link] ==> ignore arg [/usr/X11R6/lib:/usr/local/lib] ==>
ignore arg [-lc++] ==> lib [c++] arg [-lc++abi] ==> lib [c++abi] arg
[-lpthread] ==> lib [pthread] arg [-lm] ==> lib [m] arg
[-lcompiler_rt] ==> lib [compiler_rt] arg [-lc] ==> lib [c] arg
[-lcompiler_rt] ==> lib [compiler_rt] arg [/usr/lib/crtend.o] ==> obj
[/usr/lib/crtend.o] collapse library dir [/usr/lib] ==> [/usr/lib]
implicit libs: [c++;c++abi;pthread;m;compiler_rt;c;compiler_rt]
implicit objs:
[/usr/lib/crt0.o;/usr/lib/crtbegin.o;/usr/lib/crtend.o] implicit
dirs: [/usr/lib] implicit fwks: []

Performing C++ SOURCE FILE Test was_compiled succeeded with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_572eb/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_572eb.dir/build.make
CMakeFiles/cmTC_572eb.dir/build Building CXX object
CMakeFiles/cmTC_572eb.dir/src.cxx.o /usr/bin/c++ -Dwas_compiled
-fPIE -std=c++17 -MD -MT CMakeFiles/cmTC_572eb.dir/src.cxx.o -MF
CMakeFiles/cmTC_572eb.dir/src.cxx.o.d -o
CMakeFiles/cmTC_572eb.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_572eb /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_572eb.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_572eb.dir/src.cxx.o -o cmTC_572eb
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
#include <optional>

int main() {
   std::optional<int> maybe;
   maybe = 1;
   return *maybe == 1;
}

Performing C++ SOURCE FILE Test filesystem_compiled succeeded with
the following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_dcdad/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_dcdad.dir/build.make
CMakeFiles/cmTC_dcdad.dir/build Building CXX object
CMakeFiles/cmTC_dcdad.dir/src.cxx.o /usr/bin/c++
-Dfilesystem_compiled  -fPIE -std=c++17 -MD -MT
CMakeFiles/cmTC_dcdad.dir/src.cxx.o -MF
CMakeFiles/cmTC_dcdad.dir/src.cxx.o.d -o
CMakeFiles/cmTC_dcdad.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_dcdad /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_dcdad.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_dcdad.dir/src.cxx.o -o cmTC_dcdad
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
#include <filesystem>

int main() {
    auto cwd = std::filesystem::current_path();
    return !cwd.string().empty();
}

Performing C++ SOURCE FILE Test has_std_17_flag succeeded with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_f05fb/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_f05fb.dir/build.make
CMakeFiles/cmTC_f05fb.dir/build Building CXX object
CMakeFiles/cmTC_f05fb.dir/src.cxx.o /usr/bin/c++ -Dhas_std_17_flag
-fPIE   -std=c++17 -std=c++17 -MD -MT
CMakeFiles/cmTC_f05fb.dir/src.cxx.o -MF
CMakeFiles/cmTC_f05fb.dir/src.cxx.o.d -o
CMakeFiles/cmTC_f05fb.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_f05fb /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_f05fb.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_f05fb.dir/src.cxx.o -o cmTC_f05fb
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test has_std_1z_flag succeeded with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_3d005/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_3d005.dir/build.make
CMakeFiles/cmTC_3d005.dir/build Building CXX object
CMakeFiles/cmTC_3d005.dir/src.cxx.o /usr/bin/c++ -Dhas_std_1z_flag
-fPIE   -std=c++1z -std=c++17 -MD -MT
CMakeFiles/cmTC_3d005.dir/src.cxx.o -MF
CMakeFiles/cmTC_3d005.dir/src.cxx.o.d -o
CMakeFiles/cmTC_3d005.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_3d005 /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_3d005.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_3d005.dir/src.cxx.o -o cmTC_3d005
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAS_NULLPTR_WARNING succeeded with
the following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_eb2a2/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_eb2a2.dir/build.make
CMakeFiles/cmTC_eb2a2.dir/build Building CXX object
CMakeFiles/cmTC_eb2a2.dir/src.cxx.o /usr/bin/c++
-DHAS_NULLPTR_WARNING  -fPIE   -Wzero-as-null-pointer-constant
-std=c++17 -MD -MT CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -MF
CMakeFiles/cmTC_eb2a2.dir/src.cxx.o.d -o
CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_eb2a2 /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_eb2a2.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_eb2a2.dir/src.cxx.o -o cmTC_eb2a2
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Determining if the include file arpa/inet.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_3089d/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_3089d.dir/build.make
CMakeFiles/cmTC_3089d.dir/build Building C object
CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_3089d /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_3089d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_3089d.dir/CheckIncludeFile.c.o -o
cmTC_3089d  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file netinet/in.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_94c26/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_94c26.dir/build.make
CMakeFiles/cmTC_94c26.dir/build Building C object
CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_94c26 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_94c26.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_94c26.dir/CheckIncludeFile.c.o -o
cmTC_94c26  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stddef.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_d2d8d/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_d2d8d.dir/build.make
CMakeFiles/cmTC_d2d8d.dir/build Building C object
CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_d2d8d /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_d2d8d.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_d2d8d.dir/CheckIncludeFile.c.o -o
cmTC_d2d8d  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stdint.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_27648/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_27648.dir/build.make
CMakeFiles/cmTC_27648.dir/build Building C object
CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_27648 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_27648.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_27648.dir/CheckIncludeFile.c.o -o
cmTC_27648  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file stdlib.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_4e5e0/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_4e5e0.dir/build.make
CMakeFiles/cmTC_4e5e0.dir/build Building C object
CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_4e5e0 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_4e5e0.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_4e5e0.dir/CheckIncludeFile.c.o -o
cmTC_4e5e0  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file string.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_38fd7/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_38fd7.dir/build.make
CMakeFiles/cmTC_38fd7.dir/build Building C object
CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_38fd7 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_38fd7.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_38fd7.dir/CheckIncludeFile.c.o -o
cmTC_38fd7  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file unistd.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_6e703/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_6e703.dir/build.make
CMakeFiles/cmTC_6e703.dir/build Building C object
CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_6e703 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_6e703.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_6e703.dir/CheckIncludeFile.c.o -o
cmTC_6e703  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file sys/endian.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_a6c16/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_a6c16.dir/build.make
CMakeFiles/cmTC_a6c16.dir/build Building C object
CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_a6c16 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_a6c16.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a6c16.dir/CheckIncludeFile.c.o -o
cmTC_a6c16  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file endian.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_aacf8/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_aacf8.dir/build.make
CMakeFiles/cmTC_aacf8.dir/build Building C object
CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_aacf8 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_aacf8.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_aacf8.dir/CheckIncludeFile.c.o -o
cmTC_aacf8  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the include file sys/types.h exists passed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_28128/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_28128.dir/build.make
CMakeFiles/cmTC_28128.dir/build Building C object
CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Linking C executable cmTC_28128 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_28128.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_28128.dir/CheckIncludeFile.c.o -o
cmTC_28128  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining size of ssize_t passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_efce0/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_efce0.dir/build.make
CMakeFiles/cmTC_efce0.dir/build Building C object
CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -MF
CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o.d -o
CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CheckTypeSize/SIZEOF_SSIZE_T.c
Linking C executable cmTC_efce0 /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_efce0.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_efce0.dir/SIZEOF_SSIZE_T.c.o -o
cmTC_efce0  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Determining if the be64toh exist passed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_7f2ec/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_7f2ec.dir/build.make
CMakeFiles/cmTC_7f2ec.dir/build Building C object
CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -MF
CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o.d -o
CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_7f2ec /usr/local/bin/cmake -E
cmake_link_script CMakeFiles/cmTC_7f2ec.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_7f2ec.dir/CheckSymbolExists.c.o -o
cmTC_7f2ec  -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

File
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */ #include <endian.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef be64toh
  return ((int*)(&be64toh))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_AVX2 succeeded with
the following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_fe831/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_fe831.dir/build.make
CMakeFiles/cmTC_fe831.dir/build Building CXX object
CMakeFiles/cmTC_fe831.dir/src.cxx.o /usr/bin/c++
-DCOMPILER_SUPPORTS_AVX2  -fPIE   -mavx2 -std=c++17 -MD -MT
CMakeFiles/cmTC_fe831.dir/src.cxx.o -MF
CMakeFiles/cmTC_fe831.dir/src.cxx.o.d -o
CMakeFiles/cmTC_fe831.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_fe831 /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_fe831.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_fe831.dir/src.cxx.o -o cmTC_fe831
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_FMA succeeded with
the following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_4bb78/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_4bb78.dir/build.make
CMakeFiles/cmTC_4bb78.dir/build Building CXX object
CMakeFiles/cmTC_4bb78.dir/src.cxx.o /usr/bin/c++
-DCOMPILER_SUPPORTS_FMA  -fPIE   -mfma -std=c++17 -MD -MT
CMakeFiles/cmTC_4bb78.dir/src.cxx.o -MF
CMakeFiles/cmTC_4bb78.dir/src.cxx.o.d -o
CMakeFiles/cmTC_4bb78.dir/src.cxx.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX
executable cmTC_4bb78 /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_4bb78.dir/link.txt --verbose=1 /usr/bin/c++
CMakeFiles/cmTC_4bb78.dir/src.cxx.o -o cmTC_4bb78
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 

Source file was:
int main() { return 0; }

$ cat CMakeFiles/CMakeError.log
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_02aa5/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_02aa5.dir/build.make
CMakeFiles/cmTC_02aa5.dir/build Building C object
CMakeFiles/cmTC_02aa5.dir/src.c.o /usr/bin/cc
-DCMAKE_HAVE_LIBC_PTHREAD  -fPIE -std=c99 -MD -MT
CMakeFiles/cmTC_02aa5.dir/src.c.o -MF
CMakeFiles/cmTC_02aa5.dir/src.c.o.d -o
CMakeFiles/cmTC_02aa5.dir/src.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/src.c Linking C
executable cmTC_02aa5 /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_02aa5.dir/link.txt --verbose=1 /usr/bin/cc
CMakeFiles/cmTC_02aa5.dir/src.c.o -o cmTC_02aa5
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib ld: error: undefined
symbol: pthread_create
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_detach
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_cancel
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)

ld: error: undefined symbol: pthread_join
>>> referenced by src.c
>>>               CMakeFiles/cmTC_02aa5.dir/src.c.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see
invocation) *** Error 1 in .
(CMakeFiles/cmTC_02aa5.dir/build.make:100 'cmTC_02aa5') *** Error 2
in /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127
'cmTC_02aa5/fast')

Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the include file byteswap.h exists failed with the
following output: Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_39c3a/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_39c3a.dir/build.make
CMakeFiles/cmTC_39c3a.dir/build Building C object
CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o -MF
CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o.d -o
CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10:
fatal error: 'byteswap.h' file not found #include <byteswap.h>
^~~~~~~~~~~~ 1 error generated. *** Error 1 in .
(CMakeFiles/cmTC_39c3a.dir/build.make:79
'CMakeFiles/cmTC_39c3a.dir/CheckIncludeFile.c.o') *** Error 2 in
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127
'cmTC_39c3a/fast')

Determining if the bswap_64 exist failed with the following output:
Change Dir: /home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_86402/fast &&
/usr/bin/make  -f CMakeFiles/cmTC_86402.dir/build.make
CMakeFiles/cmTC_86402.dir/build Building C object
CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o /usr/bin/cc   -fPIE
-std=c99 -MD -MT CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o -MF
CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o.d -o
CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o -c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10:
fatal error: 'byteswap.h' file not found #include <byteswap.h>
^~~~~~~~~~~~ 1 error generated. *** Error 1 in .
(CMakeFiles/cmTC_86402.dir/build.make:79
'CMakeFiles/cmTC_86402.dir/CheckSymbolExists.c.o') *** Error 2 in
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp (Makefile:127
'cmTC_86402/fast')

File
/home/unix/soft/lokinet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */ #include <byteswap.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef bswap_64
  return ((int*)(&bswap_64))[argc];
#else
  (void)argc;
  return 0;
#endif
}
CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

CXX compiler IPO check failed with the following output:
Change Dir:
/home/unix/soft/lokinet/build/CMakeFiles/_CMakeLTOTest-CXX/bin

Run Build Command(s):/usr/bin/gmake -f Makefile && No such file or
directory Generator: execution of make failed. Make command was:
/usr/bin/gmake -f Makefile && 

I haven't tried building lokinet for freebsd or openbsd for about 1.5 years. I do know it is broken on both as it lacks vpn platform code (amoung a bunch of other things). Adding that back is on the todo list.

Any help on this front would be greatly appreciated.

majestrate commented 1 year ago

1513 is related

vl-ms commented 1 year ago

I'm not (yet) competent enough to help with adding the needed code myself, since I barely understand C++, but I suggest an idea: what if Lokinet used Wireguard as the VPN code? It is supported on Windows, Linux, Android, MacOS, FreeBSD, OpenBSD and in most of these it is even included in the kernel. Not sure about unprivileged userspace API's though, every time I use wg-quick I need to use doas.

majestrate commented 1 year ago

wireguard does not expose the things we need to userland

vl-ms commented 1 year ago

Ok then. So what do you guys need, precisely? I will help with the research no matter what it is

majestrate commented 1 year ago

we need someone to implement the platform specific bits for your flavors of BSD, see https://github.com/oxen-io/lokinet/blob/dev/llarp/vpn/platform.hpp for the interface types in question and https://github.com/oxen-io/lokinet/blob/dev/llarp/vpn/linux.hpp for a (mediocre) example implementation.

these are wired up in https://github.com/oxen-io/lokinet/blob/dev/llarp/vpn/platform.cpp