Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919462 - net-analyzer/zmap-2.1.1-r5 - /.../sh:line <snip>: -I/.../json-c: No such file or directory
Summary: net-analyzer/zmap-2.1.1-r5 - /.../sh:line <snip>: -I/.../json-c: No such file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-08 13:37 UTC by Toralf Förster
Modified: 2024-06-18 18:13 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,21.14 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,125.73 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
environment (environment,103.73 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,57.52 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
net-analyzer:zmap-2.1.1-r5:20231208-120353.log (net-analyzer:zmap-2.1.1-r5:20231208-120353.log,11.76 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,118.13 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.72 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-08 13:37:10 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2023-12-08 13:37:11 UTC
Created attachment 878335 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-08 13:37:13 UTC
Created attachment 878336 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-08 13:37:14 UTC
Created attachment 878337 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-08 13:37:14 UTC
Created attachment 878338 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-08 13:37:15 UTC
Created attachment 878339 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-08 13:37:16 UTC
Created attachment 878340 [details]
net-analyzer:zmap-2.1.1-r5:20231208-120353.log
Comment 7 Toralf Förster gentoo-dev 2023-12-08 13:37:18 UTC
Created attachment 878341 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-08 13:37:19 UTC
Created attachment 878342 [details]
temp.tar.xz
Comment 9 Jakov Smolić archtester gentoo-dev 2024-03-03 04:36:51 UTC
*** Bug 926049 has been marked as a duplicate of this bug. ***
Comment 10 Wolfram Schlich 2024-04-07 18:37:06 UTC
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"
Comment 11 Wolfram Schlich 2024-04-07 19:38:11 UTC
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/