Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905225 - dev-util/sysdig-0.29.3: build failure with gcc-13 (missing <cstdint>)
Summary: dev-util/sysdig-0.29.3: build failure with gcc-13 (missing <cstdint>)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-04-28 09:27 UTC by Holger Hoffstätte
Modified: 2023-04-29 06:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2023-04-28 09:27:31 UTC
When trying to build sysdig wiht gcc-13:

FAILED: libsinsp/CMakeFiles/sinsp.dir/prefix_search.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DHAS_CAPTURE -DPLATFORM_NAME=\"Linux\" -I/usr/include/tbb -I/usr/include/jsoncpp -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/. -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/../../common -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libscap -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/../async -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/./include -I/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/../chisel -I/usr/include/luajit-2.1 -I/tmp/portage/dev-util/sysdig-0.29.3/work/sysdig-0.29.3_build/libsinsp  -pipe -O2 -march=native -fno-semantic-interposition -Wall    -std=c++0x -pthread -MD -MT libsinsp/CMakeFiles/sinsp.dir/prefix_search.cpp.o -MF libsinsp/CMakeFiles/sinsp.dir/prefix_search.cpp.o.d -o libsinsp/CMakeFiles/sinsp.dir/prefix_search.cpp.o -c /tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/prefix_search.cpp
In file included from /tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/prefix_search.h:27,
                 from /tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/prefix_search.cpp:20:
/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/filter_value.h:30:19: error: 'uint8_t' was not declared in this scope
   30 | typedef std::pair<uint8_t *, uint32_t> filter_value_t;
      |                   ^~~~~~~
/tmp/portage/dev-util/sysdig-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/filter_value.h:22:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   21 | #include <utility>
  +++ |+#include <cstdint>
   22 | 

..more kaboom ad infinitum..

The bug is actually in the falcosecurity/libs dependency.


Reproducible: Always

Steps to Reproduce:
1. use gcc-13.1
2. try to emerge sysdig-0.29.3
3. error
Comment 1 Holger Hoffstätte 2023-04-28 09:28:39 UTC
Apparently already fixed upstream in falcosecurity/libs:
https://github.com/falcosecurity/libs/commit/1406858fa5223d980e66e2a5fb2c1b014c9db5c8

I'll see if I can backport this.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-29 06:44:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d983f3ebed360ac08d153655777912f354f3dd2f

commit d983f3ebed360ac08d153655777912f354f3dd2f
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2023-04-28 14:52:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-29 06:44:07 +0000

    dev-util/sysdig: fix build with gcc-13
    
    Closes: https://bugs.gentoo.org/905225
    
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/30792
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/sysdig/files/0.29.3-libs-gcc13.patch | 28 +++++++++
 dev-util/sysdig/sysdig-0.29.3-r1.ebuild       | 91 +++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)