Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790176 - app-office/ledger-3.2.1 - /.../format.h: error: scoped_ptr does not name a type (maybe gcc-11 related)
Summary: app-office/ledger-3.2.1 - /.../format.h: error: scoped_ptr does not name a ty...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: boost-1.76
  Show dependency tree
 
Reported: 2021-05-14 10:32 UTC by Toralf Förster
Modified: 2021-06-14 13:11 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.20 KB, text/plain)
2021-05-14 10:32 UTC, Toralf Förster
Details
app-office:ledger-3.2.1:20210514-092032.log (app-office:ledger-3.2.1:20210514-092032.log,15.56 KB, text/plain)
2021-05-14 10:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,263.65 KB, text/plain)
2021-05-14 10:32 UTC, Toralf Förster
Details
environment (environment,132.09 KB, text/plain)
2021-05-14 10:32 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.20 KB, application/x-bzip)
2021-05-14 10:32 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.83 KB, application/x-bzip)
2021-05-14 10:32 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,31.95 KB, application/x-bzip)
2021-05-14 10:32 UTC, Toralf Förster
Details
ledger-3.2.1-add-boost-1.76-compatibility.patch (ledger-3.2.1-add-boost-1.76-compatibility.patch,1.63 KB, patch)
2021-05-25 12:57 UTC, Small_Penguin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-14 10:32:19 UTC
                 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"
Comment 1 Toralf Förster gentoo-dev 2021-05-14 10:32:21 UTC
Created attachment 708432 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-14 10:32:22 UTC
Created attachment 708435 [details]
app-office:ledger-3.2.1:20210514-092032.log
Comment 3 Toralf Förster gentoo-dev 2021-05-14 10:32:23 UTC
Created attachment 708438 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-14 10:32:25 UTC
Created attachment 708441 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-14 10:32:26 UTC
Created attachment 708444 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-14 10:32:27 UTC
Created attachment 708447 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-14 10:32:28 UTC
Created attachment 708450 [details]
temp.tar.bz2
Comment 8 Small_Penguin 2021-05-15 20:49:47 UTC
Same error here.
Comment 9 Small_Penguin 2021-05-17 08:54:18 UTC
Seems to be this upstream bug:
https://github.com/ledger/ledger/issues/2030
Comment 10 Small_Penguin 2021-05-25 12:57:02 UTC
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
Comment 11 Christopher Head 2021-06-02 00:19:25 UTC
Not GCC11-related. I’m running 10.2.0-r5 and hit this.
Comment 12 George Kettleborough 2021-06-08 20:04:00 UTC
Same for me on gcc 10.3.0

The patch fixed it for me.
Comment 13 David Fellows 2021-06-11 23:16:19 UTC
Same problem for me with gcc-10.3.0. Patch also fixed it for me.
Comment 14 Larry the Git Cow gentoo-dev 2021-06-14 12:46:58 UTC
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(+)
Comment 15 Larry the Git Cow gentoo-dev 2021-06-14 13:11:41 UTC
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(-)