from /var/tmp/portage/app-office/ledger-3.2.1/work/ledger-3.2.1/src/global.h:42, from /var/tmp/portage/app-office/ledger-3.2.1/work/ledger-3.2.1/src/main.cc:34: /var/tmp/portage/app-office/ledger-3.2.1/work/ledger-3.2.1/src/format.h:68:5: error: ‘scoped_ptr’ does not name a type; did you mean ‘scope_t’? 68 | scoped_ptr<struct element_t> next; | ^~~~~~~~~~ | scope_t /var/tmp/portage/app-office/ledger-3.2.1/work/ledger-3.2.1/src/format.h:106:3: error: ‘scoped_ptr’ does not name a type; did you mean ‘scope_t’? ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j2-20210510-163136 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-9.3.1 [3] 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.8.10 Available Rust versions: [1] rust-bin-1.52.1 [2] rust-1.52.1 * 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 [1] php7.3 [2] php7.4 [3] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Fri May 14 09:05:31 UTC 2021 emerge -qpvO app-office/ledger [ebuild N ] app-office/ledger-3.2.1 USE="-debug -doc -python" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"
Created attachment 708432 [details] emerge-info.txt
Created attachment 708435 [details] app-office:ledger-3.2.1:20210514-092032.log
Created attachment 708438 [details] emerge-history.txt
Created attachment 708441 [details] environment
Created attachment 708444 [details] etc.portage.tar.bz2
Created attachment 708447 [details] logs.tar.bz2
Created attachment 708450 [details] temp.tar.bz2
Same error here.
Seems to be this upstream bug: https://github.com/ledger/ledger/issues/2030
Created attachment 711138 [details, diff] ledger-3.2.1-add-boost-1.76-compatibility.patch Here is a patch that fixes compilation for me. It is a "reduced" version of this one here: https://github.com/carlocab/homebrew-core/commit/c4d9834d23ded06a43a334c0f2632228a8a62ae3
Not GCC11-related. I’m running 10.2.0-r5 and hit this.
Same for me on gcc 10.3.0 The patch fixed it for me.
Same problem for me with gcc-10.3.0. Patch also fixed it for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068d3cff008f530abe5a6c8d7daeabdc9b805387 commit 068d3cff008f530abe5a6c8d7daeabdc9b805387 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-06-14 12:46:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-14 12:46:50 +0000 app-office/ledger: fix build with Boost 1.76 Closes: https://bugs.gentoo.org/790176 Signed-off-by: Sam James <sam@gentoo.org> .../files/ledger-3.2.1-fix-build-boost-1-76.patch | 28 ++++++++++++++++++++++ app-office/ledger/ledger-3.2.1.ebuild | 4 ++++ 2 files changed, 32 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d28d5506f06d3a894361d6b345f5a7298c941e0 commit 0d28d5506f06d3a894361d6b345f5a7298c941e0 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-06-14 13:10:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-14 13:10:37 +0000 app-office/ledger: add bug reference / upstream PR to patch Bug: https://bugs.gentoo.org/790176 Signed-off-by: Sam James <sam@gentoo.org> app-office/ledger/files/ledger-3.2.1-fix-build-boost-1-76.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)