View Issue Details

IDProjectCategoryView StatusLast Update
0001388bareos-coreregression testingpublic2021-11-29 09:12
Reportermschiff Assigned Tobruno-at-bareos  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
PlatformLinuxOSanyOS Version3
Product Version19.2.11 
Summary0001388: /.../sd_reservation.cc: error: sleep_for is not a member of std::this_thread (maybe gcc-11 related)
DescriptionIt seems like the tests do not build when using gcc-11:


/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.
Additional InformationPlease see: https://bugs.gentoo.org/786789
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2021-09-29 13:58

manager   ~0004288

Would you mind to test with the new 19.2.11 release or even with the not released yet branch-12.2
Building here with gcc-11 under openSUSE Tumbleweed works as expected.
bruno-at-bareos

bruno-at-bareos

2021-11-10 10:05

manager   ~0004328

Hello, did you make any progress on this ?

As 19.2 will be soon obsoleted, did you try to compile version 20 ?
mschiff

mschiff

2021-11-27 12:23

reporter   ~0004368

Hi!

Sorry for the late answer. All current version build fine with gcc-11 here:
 - 18.2.12
 - 19.2.11
 - 20.0.3

Thanks!
bruno-at-bareos

bruno-at-bareos

2021-11-29 09:11

manager   ~0004369

Ok thanks I will close then,
bruno-at-bareos

bruno-at-bareos

2021-11-29 09:12

manager   ~0004370

Gentoo get gcc11 fixed

Issue History

Date Modified Username Field Change
2021-09-20 12:02 mschiff New Issue
2021-09-29 13:58 bruno-at-bareos Note Added: 0004288
2021-09-29 16:46 bruno-at-bareos Assigned To => bruno-at-bareos
2021-09-29 16:46 bruno-at-bareos Status new => assigned
2021-11-10 10:05 bruno-at-bareos Note Added: 0004328
2021-11-27 12:23 mschiff Note Added: 0004368
2021-11-29 09:11 bruno-at-bareos Note Added: 0004369
2021-11-29 09:12 bruno-at-bareos Status assigned => resolved
2021-11-29 09:12 bruno-at-bareos Resolution open => no change required
2021-11-29 09:12 bruno-at-bareos Note Added: 0004370