Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active December 16, 2019 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/ce47fe7b3bd4e90faa7a12b59f08d813 to your computer and use it in GitHub Desktop.
Save dlangille/ce47fe7b3bd4e90faa7a12b59f08d813 to your computer and use it in GitHub Desktop.
glewlwyd
root@120amd64-default-master-list:~ # less /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeError.log
Determining if the __GNU_LIBRARY__ exist failed with the following output:
Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/ninja cmTC_69b14 && [1/2] Building C object CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o
FAILED: CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o
/usr/local/libexec/ccache/cc -O2 -pipe -I/usr/local/include/postgresql/server/libpq -I/usr/local/include/postgresql/server -fstack-protector-strong -fno-strict-aliasing -Wall -Werror -o CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c
CheckSymbolExists.c:2:10: fatal error: 'features.h' file not found
#include <features.h>
^~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
File /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <features.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef __GNU_LIBRARY__
return ((int*)(&__GNU_LIBRARY__))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the _GNU_SOURCE exist failed with the following output:
Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/ninja cmTC_c442a && [1/2] Building C object CMakeFiles/cmTC_c442a.dir/CheckSymbolExists.c.o
FAILED: CMakeFiles/cmTC_c442a.dir/CheckSymbolExists.c.o
/usr/local/libexec/ccache/cc -O2 -pipe -I/usr/local/include/postgresql/server/libpq -I/usr/local/include/postgresql/server -fstack-protector-strong -fno-strict-aliasing -Wall -Werror -o CMakeFiles/cmTC_c442a.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c
CheckSymbolExists.c:2:10: fatal error: 'features.h' file not found
#include <features.h>
^~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
File /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <features.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef _GNU_SOURCE
return ((int*)(&_GNU_SOURCE))[argc];
#else
(void)argc;
return 0;
#endif
}
(END)
Which features.h does it need?
# find / -name features.h
/usr/src/sys/xen/features.h
/usr/src/sys/xen/interface/features.h
/usr/local/include/jsoncpp/json/features.h
root@120amd64-default-master-list:~ # less /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeOutput.log
The system is: FreeBSD - 12.0-RELEASE-p12 - amd64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/local/libexec/ccache/cc
Build flags: -O2;-pipe;;-I/usr/local/include/postgresql/server/libpq;-I/usr/local/include/postgresql/server;-fstack-protector-strong;-fno-strict-aliasing
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 "/wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/3.15.5/CompilerIdC/a.out"
Determining if the C compiler works passed with the following output:
Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/ninja cmTC_142a5 && [1/2] Building C object CMakeFiles/cmTC_142a5.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_142a5
Detecting C compiler ABI info compiled with the following output:
Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/ninja cmTC_06576 && [1/2] Building C object CMakeFiles/cmTC_06576.dir/CMakeCCompilerABI.c.o
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
"/usr/bin/cc" -cc1 -triple x86_64-unknown-freebsd12.0 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -coverage-notes-file /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_8fc25.dir/CMakeCCompilerABI.c.gcno -resource-dir /usr/lib/clang/6.0.1 -I /usr/local/include/postgresql/server/libpq -I /usr/local/include/postgresql/server -O2 -fdebug-compilation-dir /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/cmTC_8fc25.dir/CMakeCCompilerABI.c.o -x c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c
clang -cc1 version 6.0.1 based upon LLVM 6.0.1 default target x86_64-unknown-freebsd12.0
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/postgresql/server/libpq
/usr/local/include/postgresql/server
/usr/lib/clang/6.0.1/include
/usr/include
End of search list.
[2/2] Linking C executable cmTC_06576
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
"/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o cmTC_06576 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/usr/lib CMakeFiles/cmTC_06576.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.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/local/include/postgresql/server/libpq]
add: [/usr/local/include/postgresql/server]
add: [/usr/lib/clang/6.0.1/include]
add: [/usr/include]
end of search list found
collapse include dir [/usr/local/include/postgresql/server/libpq] ==> [/usr/local/include/postgresql/server/libpq]
collapse include dir [/usr/local/include/postgresql/server] ==> [/usr/local/include/postgresql/server]
collapse include dir [/usr/lib/clang/6.0.1/include] ==> [/usr/lib/clang/6.0.1/include]
collapse include dir [/usr/include] ==> [/usr/include]
implicit include dirs: [/usr/local/include/postgresql/server/libpq;/usr/local/include/postgresql/server;/usr/lib/clang/6.0.1/include;/usr/include]
Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/local/bin/ninja cmTC_06576 && [1/2] Building C object CMakeFiles/cmTC_06576.dir/CMakeCCompilerABI.c.o]
ignore line: [FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)]
ignore line: [Target: x86_64-unknown-freebsd12.0]
ignore line: [Thread model: posix]
ignore line: [InstalledDir: /usr/bin]
ignore line: [ "/usr/bin/cc" -cc1 -triple x86_64-unknown-freebsd12.0 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -coverage-notes-file /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_8fc25.dir/CMakeCCompilerABI.c.gcno -resource-dir /usr/lib/clang/6.0.1 -I /usr/local/include/postgresql/server/libpq -I /usr/local/include/postgresql/server -O2 -fdebug-compilation-dir /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/cmTC_8fc25.dir/CMakeCCompilerABI.c.o -x c /usr/local/share/cmake/Modules/CMakeCCompilerABI.c]
ignore line: [clang -cc1 version 6.0.1 based upon LLVM 6.0.1 default target x86_64-unknown-freebsd12.0]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ /usr/local/include/postgresql/server/libpq]
ignore line: [ /usr/local/include/postgresql/server]
ignore line: [ /usr/lib/clang/6.0.1/include]
ignore line: [ /usr/include]
ignore line: [End of search list.]
ignore line: [[2/2] Linking C executable cmTC_06576]
ignore line: [FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)]
ignore line: [Target: x86_64-unknown-freebsd12.0]
ignore line: [Thread model: posix]
ignore line: [InstalledDir: /usr/bin]
link line: [ "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o cmTC_06576 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/usr/lib CMakeFiles/cmTC_06576.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o]
arg [/usr/bin/ld] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/libexec/ld-elf.so.1] ==> ignore
arg [--hash-style=both] ==> ignore
arg [--enable-new-dtags] ==> ignore
arg [-o] ==> ignore
arg [cmTC_06576] ==> ignore
arg [/usr/lib/crt1.o] ==> ignore
arg [/usr/lib/crti.o] ==> ignore
arg [/usr/lib/crtbegin.o] ==> ignore
arg [-L/usr/local/lib] ==> dir [/usr/local/lib]
arg [-L/usr/lib] ==> dir [/usr/lib]
arg [CMakeFiles/cmTC_06576.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [-lc] ==> lib [c]
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [/usr/lib/crtend.o] ==> ignore
arg [/usr/lib/crtn.o] ==> ignore
collapse library dir [/usr/local/lib] ==> [/usr/local/lib]
collapse library dir [/usr/lib] ==> [/usr/lib]
implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
implicit dirs: [/usr/local/lib;/usr/lib]
implicit fwks: []
root@120amd64-default-master-list:~ #
When building glewlwyd, this is the list of all packages installed:
root@120amd64-default-master-list:~ # pkg info
ca_root_nss-3.48 Root certificate bundle from the Mozilla Project
ccache-3.7.1 Tool to minimize the compile time of C/C++ programs
cmake-3.15.5 Cross-platform Makefile generator
curl-7.67.0 Command line tool and library for transferring data with URLs
cyrus-sasl-2.1.27 RFC 2222 SASL (Simple Authentication and Security Layer)
expat-2.2.8 XML 1.0 parser written in C
gettext-runtime-0.20.1 GNU gettext runtime libraries and programs
gmp-6.1.2_1 Free library for arbitrary precision arithmetic
gnutls-3.6.11.1 GNU Transport Layer Security library
hoel-1.4.12 Logging library for C applications
indexinfo-0.3.1 Utility to regenerate the GNU info page index
jansson-2.12 C library for encoding, decoding, and manipulating JSON data
jsoncpp-1.8.1_7 JSON reader and writer library for C++
libarchive-3.4.0,1 Library to create and read several streaming archive formats
libcbor-0.5.0 CBOR protocol implementation for C and others
libcjson-1.7.12_1 Ultralightweight JSON parser in ANSI C
libconfig-1.7.2_1 Simple library for manipulating structured configuration files
libedit-3.1.20190324,1 Command line editor library
libevent-2.1.11 API for executing callback functions on events or timeouts
libffi-3.2.1_3 Foreign Function Interface
libgcrypt-1.8.5 General purpose cryptographic library based on the code from GnuPG
libgpg-error-1.36 Common error values for all GnuPG components
libidn2-2.3.0 Implementation of IDNA2008 internationalized domain names
libjwt-1.11.0 JSON Web Token implementation in C
libltdl-2.4.6 System independent dlopen wrapper
liblz4-1.9.2,1 LZ4 compression library, lossless and very fast
libmicrohttpd-0.9.58_2 C library for embedding HTTP server functionality
libnghttp2-1.40.0 HTTP/2.0 C Library
libtasn1-4.15.0 ASN.1 structure parser library
libunistring-0.9.10_1 Unicode string library
libuv-1.34.0 Multi-platform support library with a focus on asynchronous I/O
libxml2-2.9.10 XML parser library for GNOME
libxslt-1.1.34 The XSLT C library for GNOME
lzo2-2.10_1 Portable speedy, lossless data compression library
mysql57-client-5.7.28_2 Multithreaded SQL database (client)
nettle-3.5.1_1 Low-level cryptographic library
ninja-1.9.0,2 Ninja is a small build system closest in spirit to Make
nspr-4.24 Platform-neutral API for system level and libc like functions
nss-3.48 Libraries to support development of security-enabled applications
oath-toolkit-2.6.2 Library, tools, and PAM module for OATH authentication
orcania-2.0.1 Potluck with different functions for different purposes
p11-kit-0.23.18.1 Library for loading and enumerating of PKCS#11 modules
perl5-5.30.1 Practical Extraction and Report Language
pkg-1.12.0 Package manager
postgresql11-client-11.6 PostgreSQL database (client)
protobuf-3.9.2,1 Data interchange format library
python36-3.6.9_3 Interpreted object-oriented programming language
readline-8.0.0 Library for editing command lines as they are typed
rhash-1.3.5 Utility and library for computing and checking of file hashes
sqlite3-3.30.1 SQL database engine in a C library
tpm-emulator-0.7.4_2 Trusted Platform Module (TPM) emulator
trousers-0.3.14_2 Open-source TCG Software Stack
ulfius-2.6.4 Web Framework to build REST APIs, Webservices in C
xmlsec1-1.2.25 XML Security Library
yder-1.4.8 Logging library for C applications
root@120amd64-default-master-list:~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment