Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670952 - app-backup/snapper-0.5.6 : /.../stl_pair.h:419:21: error: macro swap requires 2 arguments, but only 1 given
Summary: app-backup/snapper-0.5.6 : /.../stl_pair.h:419:21: error: macro swap requires...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Dainius Masiliūnas
URL: https://github.com/openSUSE/snapper/c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 19:10 UTC by Toralf Förster
Modified: 2018-12-17 07:38 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.41 KB, text/plain)
2018-11-11 19:11 UTC, Toralf Förster
Details
app-backup:snapper-0.5.6:20181111-190312.log (app-backup:snapper-0.5.6:20181111-190312.log,190.30 KB, text/plain)
2018-11-11 19:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,452.21 KB, text/plain)
2018-11-11 19:11 UTC, Toralf Förster
Details
environment (environment,54.67 KB, text/plain)
2018-11-11 19:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.68 KB, application/x-bzip)
2018-11-11 19:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.40 KB, application/x-bzip)
2018-11-11 19:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.49 KB, application/x-bzip)
2018-11-11 19:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-11 19:10:59 UTC
                 from /usr/include/boost/thread.hpp:13,
                 from Btrfs.cc:45:
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/stl_pair.h:419:21: error: macro "swap" requires 2 arguments, but only 1 given
       swap(pair& __p)
                     ^
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/stl_pair.h:490:50: error: macro "swap" passed 4 arguments, but takes just 2

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-hardened_libressl_20181030-220646

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems) *
  [3]   ruby25 (with Rubygems)
java-config:
The following VMs are available for generation-2:


emerge -qpvO app-backup/snapper
[ebuild  N    ] app-backup/snapper-0.5.6  USE="pam xattr -lvm"
Comment 1 Toralf Förster gentoo-dev 2018-11-11 19:11:02 UTC
Created attachment 554916 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-11 19:11:05 UTC
Created attachment 554918 [details]
app-backup:snapper-0.5.6:20181111-190312.log
Comment 3 Toralf Förster gentoo-dev 2018-11-11 19:11:08 UTC
Created attachment 554920 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-11-11 19:11:11 UTC
Created attachment 554922 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-11-11 19:11:14 UTC
Created attachment 554924 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-11 19:11:17 UTC
Created attachment 554926 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-11-11 19:11:20 UTC
Created attachment 554928 [details]
temp.tbz2
Comment 8 Dainius Masiliūnas 2018-11-11 19:46:41 UTC
Sounds like an issue with either Boost or GCC8...
Comment 9 Yixun Lan archtester gentoo-dev 2018-11-20 02:05:29 UTC
I believe it's the problem with recent boost..

to @cpp team, do you see any similar issues, any idea to cope with this?
Comment 10 Kenton Groombridge gentoo-dev 2018-12-07 19:26:03 UTC
Any update on this? On my local machine I have also tried to build snapper with boost-1.63.0 and I get the same error.
Comment 11 khalid.aleem8 2018-12-15 21:26:03 UTC
Updates? Also tried building snapper on my machine with boost-1.63.0 and have the same error
Comment 12 Dainius Masiliūnas 2018-12-16 07:12:43 UTC
I reported it upstream, let's see if they have any ideas about this. It's been a while since the last release anyway.
Comment 13 A Blamey 2018-12-16 12:30:20 UTC
This patch:
https://github.com/openSUSE/snapper/commit/1fd449b96684411409b0eda7007282073bb29d87
as a diff:
https://github.com/openSUSE/snapper/commit/1fd449b96684411409b0eda7007282073bb29d87.diff
from the upstream bug report:
https://github.com/openSUSE/snapper/issues/459
that your report was dup'd to fixes the problem for me.

I'm running ~amd64 with snapper-0.5.6, boost-1.65.0, btrfs-progs-4.19.1, gcc-8.2.0-r5, glibc-2.28-r2

Thanks
Comment 14 Yixun Lan archtester gentoo-dev 2018-12-17 06:52:22 UTC
(In reply to A Blamey from comment #13)
> This patch:
> https://github.com/openSUSE/snapper/commit/
> 1fd449b96684411409b0eda7007282073bb29d87
> as a diff:
> https://github.com/openSUSE/snapper/commit/
> 1fd449b96684411409b0eda7007282073bb29d87.diff
> from the upstream bug report:
> https://github.com/openSUSE/snapper/issues/459
> that your report was dup'd to fixes the problem for me.
> 
> I'm running ~amd64 with snapper-0.5.6, boost-1.65.0, btrfs-progs-4.19.1,
> gcc-8.2.0-r5, glibc-2.28-r2
> 
> Thanks

great, thanks all you guys for pushing this!
Comment 15 Larry the Git Cow gentoo-dev 2018-12-17 07:38:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a4af11e412a75cdf3240970b836b4850c9896d

commit 50a4af11e412a75cdf3240970b836b4850c9896d
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2018-12-17 07:18:19 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2018-12-17 07:38:48 +0000

    app-backup/snapper: fix swap() err
    
    workaround swap() err with btrfs-4.19
    
    Closes: https://bugs.gentoo.org/670952
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-backup/snapper/files/snapper-0.5.6-swap.patch | 36 +++++++++++
 app-backup/snapper/snapper-0.5.6-r1.ebuild        | 78 +++++++++++++++++++++++
 2 files changed, 114 insertions(+)