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

Bug 786789

Summary: app-backup/bareos-19.2.9 - /.../sd_reservation.cc: error: sleep_for is not a member of std::this_thread (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal CC: kfm, sam, treecleaner
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.bareos.org/view.php?id=1388
Whiteboard: ~arch only, fixed by 19.2.11?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
app-backup:bareos-19.2.9:20210429-100941.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-04-29 12:12:54 UTC
/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-Release-19.2.9/core/src/tests/sd_reservation.cc: In function ‘void WaitThenUnreserve(std::unique_ptr<TestJob>&)’:
/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-Release-19.2.9/core/src/tests/sd_reservation.cc:147:21: error: ‘sleep_for’ is not a member of ‘std::this_thread’
  147 |   std::this_thread::sleep_for(std::chrono::milliseconds(10));
      |                     ^~~~~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: app-backup/bareos-19.2.9::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20210415-101632

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.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.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
2)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   jamvm 
  [3]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr 28 23:50:13 UTC 2021

emerge -qpvO app-backup/bareos
[ebuild  N    ] app-backup/bareos-19.2.9  USE="X acl director ipv6 postgres readline storage-daemon tcpd xattr -ceph -clientonly -glusterfs -jansson (-libressl) -lmdb -logwatch -mysql -ndmp -scsi-crypto -sqlite -static -systemd -vim-syntax"
Comment 1 Toralf Förster gentoo-dev 2021-04-29 12:12:55 UTC
Created attachment 703812 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-29 12:12:57 UTC
Created attachment 703815 [details]
app-backup:bareos-19.2.9:20210429-100941.log
Comment 3 Toralf Förster gentoo-dev 2021-04-29 12:12:58 UTC
Created attachment 703818 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-04-29 12:13:00 UTC
Created attachment 703821 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-04-29 12:13:01 UTC
Created attachment 703824 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-29 12:13:03 UTC
Created attachment 703827 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-04-29 12:13:04 UTC
Created attachment 703830 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-29 02:15:49 UTC
ping
Comment 9 Larry the Git Cow gentoo-dev 2021-08-05 08:21:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f65fc8909308003cdfe8d933b06b5a054c7715e

commit 0f65fc8909308003cdfe8d933b06b5a054c7715e
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-08-05 08:21:27 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-08-05 08:21:27 +0000

    profiles: last-rite app-backup/bareos
    
    Bug: https://bugs.gentoo.org/631598
    Bug: https://bugs.gentoo.org/690024
    Bug: https://bugs.gentoo.org/735960
    Bug: https://bugs.gentoo.org/749038
    Bug: https://bugs.gentoo.org/761415
    Bug: https://bugs.gentoo.org/761667
    Bug: https://bugs.gentoo.org/778557
    Bug: https://bugs.gentoo.org/786789
    Bug: https://bugs.gentoo.org/799179
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/package.mask | 8 ++++++++
 1 file changed, 8 insertions(+)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-18 09:15:59 UTC
ping
Comment 11 kfm 2021-09-21 13:19:58 UTC
This is addressed by the release of 19.2.11. See https://github.com/bareos/bareos/commit/7a7cb96.

Incidentally, 18.2.10 does not compile because, among other things, it triggers several compiler warnings that are treated as errors. These include "class-memaccess", "unused-variable", "address" and "unused-function". Indeed, I don't see how it could possibly have been able to compile since the release of GCC 8.0, at the very least. Given that the 18.x series is obsolete, I would suggest getting rid of it.
Comment 12 kfm 2021-09-21 13:37:09 UTC
Sorry, I meant to say that the issue of the missing <thread> header was addressed by 19.2.10 (not 19.2.11). However, both 19.2.10 and 19.2.11 fail to build for distinct reasons. In short, this bug is OBSOLETE and a new one is required.
Comment 13 Andreas Sturmlechner gentoo-dev 2021-11-06 21:47:37 UTC
This bug predates dev-libs/boost-1.77.0 version bump.
Comment 14 Marc Schiffbauer gentoo-dev 2021-11-27 20:47:28 UTC
(In reply to Kerin Millar from comment #11)
> This is addressed by the release of 19.2.11. See
> https://github.com/bareos/bareos/commit/7a7cb96.
> 
> Incidentally, 18.2.10 does not compile because, among other things, it
> triggers several compiler warnings that are treated as errors. These include
> "class-memaccess", "unused-variable", "address" and "unused-function".
> Indeed, I don't see how it could possibly have been able to compile since
> the release of GCC 8.0, at the very least. Given that the 18.x series is
> obsolete, I would suggest getting rid of it.

As far as I can tell, 18.2 is still being maintained. 18.2.12 had been released in september.

For me all bareos versions in tree compile with gcc-11.

Are you OK with closing this bug?
Comment 15 kfm 2021-11-27 23:41:54 UTC
(In reply to Marc Schiffbauer from comment #14)
> (In reply to Kerin Millar from comment #11)
> > This is addressed by the release of 19.2.11. See
> > https://github.com/bareos/bareos/commit/7a7cb96.
> > 
> > Incidentally, 18.2.10 does not compile because, among other things, it
> > triggers several compiler warnings that are treated as errors. These include
> > "class-memaccess", "unused-variable", "address" and "unused-function".
> > Indeed, I don't see how it could possibly have been able to compile since
> > the release of GCC 8.0, at the very least. Given that the 18.x series is
> > obsolete, I would suggest getting rid of it.
> 
> As far as I can tell, 18.2 is still being maintained. 18.2.12 had been
> released in september.

I see. Curiously, it still doesn't compile here.

> 
> For me all bareos versions in tree compile with gcc-11.
> 
> Are you OK with closing this bug?

Yes, thanks. I'll look into the issue with 18.2.12 further and file a distinct bug if necessary.
Comment 16 Marc Schiffbauer gentoo-dev 2021-11-28 03:13:58 UTC
Closing as this specific issue seems to be fixed