/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libsigrokdecode.so: undefined reference to `PyTuple_SetItem' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libsigrokdecode.so: undefined reference to `Py_InitializeEx' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libsigrokdecode.so: undefined reference to `PyLong_AsLong' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libsigrokdecode.so: undefined reference to `PyDict_GetItemString' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libsigrokdecode.so: undefined reference to `_Py_TrueStruct' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_systemd-j3-20210705-210016 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.9.6 Available Ruby profiles: [1] ruby26 (with Rubygems) * Available Rust versions: [1] rust-bin-1.53.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 HEAD of ::gentoo commit 6b149668e42ab9273b0a6ff0a4342a30ae3a8491 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Jul 8 06:51:24 2021 +0000 2021-07-08 06:51:23 UTC emerge -qpvO sci-electronics/sigrok-cli [ebuild N ] sci-electronics/sigrok-cli-0.7.2 USE="decode" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Created attachment 722689 [details] emerge-info.txt
Created attachment 722692 [details] emerge-history.txt
Created attachment 722695 [details] environment
Created attachment 722698 [details] etc.portage.tar.bz2
Created attachment 722701 [details] logs.tar.bz2
Created attachment 722704 [details] sci-electronics:sigrok-cli-0.7.2:20210708-100405.log
Created attachment 722707 [details] temp.tar.bz2
I had this same problem recently. It is actually a problem with libsigrokdecode's autoconf script and python 3.9. There is a patch at https://github.com/sigrokproject/libsigrokdecode/commit/9b0ad5177bd692f7556a4756bdbd2da81d9c34ce that fixes it. I've incorporated it locally and it works fine for me so far.
Created pull request https://github.com/gentoo/gentoo/pull/21578 which should solve the issue.
(In reply to Jordan Yelloz from comment #9) > Created pull request https://github.com/gentoo/gentoo/pull/21578 which > should solve the issue. Hey, I left a comment on it a little while ago. Should be sorted by bug 799614's resolution anyway.