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"
Created attachment 763593 [details] emerge-info.txt
Created attachment 763594 [details] dev-util:sysdig-0.27.1-r100:20220125-103814.log
Created attachment 763595 [details] emerge-history.txt
Created attachment 763596 [details] environment
Created attachment 763597 [details] etc.portage.tar.bz2
Created attachment 763598 [details] logs.tar.bz2
Created attachment 763599 [details] temp.tar.bz2
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.
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.