Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929227 - dev-debug/sysdig-0.29.3-r2 - /.../scap_open_exception.h: error: int32_t does not name a type
Summary: dev-debug/sysdig-0.29.3-r2 - /.../scap_open_exception.h: error: int32_t does ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 929907
Blocks:
  Show dependency tree
 
Reported: 2024-04-12 16:49 UTC by Toralf Förster
Modified: 2024-05-20 16:32 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.65 KB, text/plain)
2024-04-12 16:49 UTC, Toralf Förster
Details
dev-debug:sysdig-0.29.3-r2:20240412-155401.log (dev-debug:sysdig-0.29.3-r2:20240412-155401.log,167.39 KB, text/plain)
2024-04-12 16:49 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,77.70 KB, application/x-xz)
2024-04-12 16:49 UTC, Toralf Förster
Details
environment (environment,115.66 KB, text/plain)
2024-04-12 16:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,992 bytes, application/x-xz)
2024-04-12 16:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,50.27 KB, application/x-xz)
2024-04-12 16:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,76.59 KB, application/x-xz)
2024-04-12 16:49 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.30 KB, application/x-xz)
2024-04-12 16:49 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 2024-04-12 16:49:39 UTC
too long lines were shrinked:

[44/127] /usr/bin/x86_64-pc-linux-musl-g++ -DHAS_CAPTURE -DHAVE_STRLCPY -DPLATFORM_NAME=\"Linux\" -I/usr/include/tbb -I/usr/include/jsoncpp -I/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/. -I/var/tmp/portage/dev-debug/sysdig-0.29.3
[45/127] /usr/bin/x86_64-pc-linux-musl-g++ -DHAS_CAPTURE -DHAVE_STRLCPY -DPLATFORM_NAME=\"Linux\" -I/usr/include/tbb -I/usr/include/jsoncpp -I/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/. -I/var/tmp/portage/dev-debug/sysdig-0.29.3
[46/127] /usr/bin/x86_64-pc-linux-musl-g++ -DHAS_CAPTURE -DHAVE_STRLCPY -DPLATFORM_NAME=\"Linux\" -I/usr/include/tbb -I/usr/include/jsoncpp -I/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/. -I/var/tmp/portage/dev-debug/sysdig-0.29.3
FAILED: libsinsp/CMakeFiles/sinsp.dir/sinsp.cpp.o 
/usr/bin/x86_64-pc-linux-musl-g++ -DHAS_CAPTURE -DHAVE_STRLCPY -DPLATFORM_NAME=\"Linux\" -I/usr/include/tbb -I/usr/include/jsoncpp -I/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/. -I/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/
In file included from /var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/sinsp.cpp:29:
/var/tmp/portage/dev-debug/sysdig-0.29.3-r2/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a/userspace/libsinsp/scap_open_exception.h:28:65: error: 'int32_t' does not name a type
   28 |         scap_open_exception(const std::string& error_str, const int32_t scap_rc):
      |                                                                 ^~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240406-125502

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-musl-13 *
clang/llvm (if any):
clang version 18.1.3
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.3
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.22.2 linux/amd64

  HEAD of ::gentoo
commit de3b750d9e00f17b64f81bcb844a9607bd23b2e0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Apr 12 14:34:10 2024 +0000

    2024-04-12 14:34:10 UTC

emerge -qpvO dev-debug/sysdig
[ebuild  N    ] dev-debug/sysdig-0.29.3-r2  USE="modules" LUA_SINGLE_TARGET="luajit"
Comment 1 Toralf Förster gentoo-dev 2024-04-12 16:49:40 UTC
Created attachment 890516 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-12 16:49:42 UTC
Created attachment 890517 [details]
dev-debug:sysdig-0.29.3-r2:20240412-155401.log
Comment 3 Toralf Förster gentoo-dev 2024-04-12 16:49:43 UTC
Created attachment 890518 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-04-12 16:49:44 UTC
Created attachment 890519 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-12 16:49:45 UTC
Created attachment 890520 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-12 16:49:46 UTC
Created attachment 890521 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-12 16:49:47 UTC
Created attachment 890522 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-12 16:49:48 UTC
Created attachment 890523 [details]
temp.tar.xz
Comment 9 Holger Hoffstätte 2024-04-13 12:55:58 UTC
I successfully recreated the problem in a gcc-musl chroot but found a related problem with the stage3 tarball: https://bugs.gentoo.org/929907

I'll provide a PR with the compile fix, but the missing libanl needs to be addressed as well to fully fix the problem.
Comment 10 Holger Hoffstätte 2024-04-13 14:29:12 UTC
(In reply to Holger Hoffstätte from comment #9)
> I successfully recreated the problem in a gcc-musl chroot but found a
> related problem with the stage3 tarball: https://bugs.gentoo.org/929907
> 
> I'll provide a PR with the compile fix, but the missing libanl needs to be
> addressed as well to fully fix the problem.

The libanl problem has been addresed in the ebuild with a musl-conditional patch.
Comment 11 Larry the Git Cow gentoo-dev 2024-05-20 15:53:18 UTC
The bug has been referenced in the following commit(s):

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

commit 844fbd1e96beda0fb94ea06aba8f2618bfdad1f7
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-04-13 13:58:37 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-20 15:52:38 +0000

    dev-debug/sysdig: don't try to link against libanl on musl
    
    libanl is an empty stub library since glibc-2.34 and does not exist
    on musl. Since sysdig uses c-ares and therefore does not even need
    glibc's async name lookups, we can safely remove it when building
    on musl.
    
    Bug: https://bugs.gentoo.org/929227
    Bug: https://bugs.gentoo.org/929907
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/36237
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-debug/sysdig/files/0.29.3-libs-no-libanl.patch | 16 ++++++++++++++++
 dev-debug/sysdig/sysdig-0.29.3-r2.ebuild           | 12 +++++++++---
 2 files changed, 25 insertions(+), 3 deletions(-)

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

commit 637ef57e26304673bd422589a7892988e9312b78
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-04-13 13:24:16 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-20 15:52:38 +0000

    dev-debug/sysdig: add a missed <cstdint> include on musl
    
    Bug: https://bugs.gentoo.org/929227
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-debug/sysdig/files/0.29.3-libs-gcc13.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)