Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 832031

Summary: dev-util/sysdig-0.27.1-r100 - /.../cri.pb.h: error: expected unqualified-id before ( token
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Holger Hoffstätte <holger>
Status: RESOLVED WONTFIX    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:sysdig-0.27.1-r100:20220125-103814.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-01-25 10:49:29 UTC
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/include/g++-v11/bits/basic_string.h:6608,
                 from /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/include/g++-v11/string:55,
                 from /var/tmp/portage/dev-util/sysdig-0.27.1-r100/work/sysdig-0.27.1_build/userspace/libsinsp/cri.pb.h:8,
                 from /var/tmp/portage/dev-util/sysdig-0.27.1-r100/work/sysdig-0.27.1_build/userspace/libsinsp/cri.pb.cc:4:
/var/tmp/portage/dev-util/sysdig-0.27.1-r100/work/sysdig-0.27.1_build/userspace/libsinsp/cri.pb.h:26376:30: error: expected unqualified-id before '(' token
26376 | inline bool ContainerConfig::stdin() const {
      |                              ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220122-100746

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang/llvm (if any):
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.58.1 *
php cli:

  HEAD of ::gentoo
commit 94f58a50ef80e26fe13089fa7a04ad1a6564948c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jan 25 09:36:55 2022 +0000

    2022-01-25 09:36:53 UTC

emerge -qpvO dev-util/sysdig
[ebuild  N    ] dev-util/sysdig-0.27.1-r100  USE="modules -test" LUA_SINGLE_TARGET="luajit"
Comment 1 Toralf Förster gentoo-dev 2022-01-25 10:49:30 UTC
Created attachment 763593 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-25 10:49:31 UTC
Created attachment 763594 [details]
dev-util:sysdig-0.27.1-r100:20220125-103814.log
Comment 3 Toralf Förster gentoo-dev 2022-01-25 10:49:33 UTC
Created attachment 763595 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-01-25 10:49:34 UTC
Created attachment 763596 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-01-25 10:49:35 UTC
Created attachment 763597 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-25 10:49:36 UTC
Created attachment 763598 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-01-25 10:49:37 UTC
Created attachment 763599 [details]
temp.tar.bz2
Comment 8 Holger Hoffstätte 2022-03-10 08:01:06 UTC
Workarounds for musl were added to 0.27.1 in this PR:
https://github.com/draios/sysdig/pull/1682

Specifically the build problem with the generated protobuf:
https://github.com/draios/sysdig/pull/1682/commits/6447501397e83a66e0723091f6f21ab8235f1f5a

According to the releases notes:
https://github.com/draios/sysdig/releases/tag/0.27.1
it can be activated via -DMUSL_OPTIMIZED_BUILD=On
but I guess this will implicitly require full static linking of everything.

Not a solution for this bug, just info in case anyone wants to work on it.
Comment 9 Holger Hoffstätte 2022-09-09 19:36:48 UTC
I'd rather not waste time trying to fix this in the obsolete 0.27.x which has been superseded by 0.29.x. Sorry.
If you really need musl support maybe you could try the statically linked prebuilt executable from Github.