too long lines were shrinked: ninja -v -j4 -l0 [1/56] /usr/bin/x86_64-pc-linux-gnu-gcc -DJSON -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/zmap-2.1.1-r5/work/zmap-2.1.1/lib -O2 -pipe -march=native -fno-diagnostics-color -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1 -O2 -Wall -Wforma FAILED: lib/CMakeFiles/zmaplib.dir/blacklist.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DJSON -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/zmap-2.1.1-r5/work/zmap-2.1.1/lib -O2 -pipe -march=native -fno-diagnostics-color -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1 -O2 -Wall -Wformat=2 -Wn x86_64-pc-linux-gnu-gcc: fatal error: no input files compilation terminated. /bin/sh: line 1: -I/usr/include/json-c: No such file or directory [2/56] /usr/bin/x86_64-pc-linux-gnu-gcc -DJSON -I/usr/include/json-c -I/var/tmp/portage/net-analyzer/zmap-2.1.1-r5/work/zmap-2.1.1/lib -O2 -pipe -march=native -fno-diagnostics-color -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1 -O2 -Wall -Wforma FAILED: lib/CMakeFiles/zmaplib.dir/constraint.c.o ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-20231124-092014 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 17.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.6 Python 3.11.7 Available Rust versions: [1] rust-bin-1.73.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21] 4) Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 [4] openjdk-bin-21 system-vm php cli (if any): go version go1.21.4 linux/amd64 HEAD of ::gentoo commit 51cf20d341e948fd0d53518c0dd20472dbdf13ee Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Dec 8 11:46:55 2023 +0000 2023-12-08 11:46:55 UTC emerge -qpvO net-analyzer/zmap [ebuild N ] net-analyzer/zmap-2.1.1-r5 USE="filecaps -mongo -redis"
Created attachment 878335 [details] emerge-info.txt
Created attachment 878336 [details] emerge-history.txt.xz
Created attachment 878337 [details] environment
Created attachment 878338 [details] etc.clang.tar.xz
Created attachment 878339 [details] etc.portage.tar.xz
Created attachment 878340 [details] net-analyzer:zmap-2.1.1-r5:20231208-120353.log
Created attachment 878341 [details] qlist-info.txt.xz
Created attachment 878342 [details] temp.tar.xz
*** Bug 926049 has been marked as a duplicate of this bug. ***
Same issue here: ninja -v -j4 -l4 [1/59] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -DJSON -DREDIS -I/usr/include/json-c [...] -I/usr/include;-I/usr/include/json-c [...] FAILED: lib/CMakeFiles/zmaplib.dir/blacklist.c.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -DJSON -DREDIS -I/usr/include/json-c [...] -I/usr/include;-I/usr/include/json-c [...] x86_64-pc-linux-gnu-gcc: fatal error: no input files compilation terminated. /bin/sh: line 1: -I/usr/include/json-c: No such file or directory ninja: build stopped: subcommand failed. The problem is the semicolon in this part of the gcc invocation line: "-I/usr/include;-I/usr/include/json-c"
This is how Debian fixed it: https://sources.debian.org/src/zmap/2.1.1-2.1/debian/patches/fix-build-with-json-c-0.14.patch/
https://github.com/gentoo/gentoo/commit/7123f545675b347c9292bd6850ad0e68385cd3ff