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

Bug 786264

Summary: app-accessibility/epos-2.5.37-r3 - /.../stl_iterator.h: error: macro container requires 2 arguments, but only 1 given
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Accessibility Team <accessibility>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
app-accessibility:epos-2.5.37-r3:20210428-032946.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-04-28 07:11:14 UTC
                 from xmltempl.h:10,
                 from xmltempl.cc:55:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_iterator.h:646:40: error: macro "container" requires 2 arguments, but only 1 given
  646 |       : container(std::__addressof(__x)) { }
      |                                        ^
xmltempl.cc:25: note: macro "container" defined here
   25 | #define container(x,tag) retval->AddChild (*xml_print_container (x,tag));

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20210423-202814

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.3.0
 [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 Glorious Glasgow Haskell Compilation System, version 8.10.4

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

emerge -qpvO app-accessibility/epos
[ebuild  N    ] app-accessibility/epos-2.5.37-r3
Comment 1 Toralf Förster gentoo-dev 2021-04-28 07:11:15 UTC
Created attachment 702939 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-28 07:11:16 UTC
Created attachment 702942 [details]
app-accessibility:epos-2.5.37-r3:20210428-032946.log
Comment 3 Toralf Förster gentoo-dev 2021-04-28 07:11:18 UTC
Created attachment 702945 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-04-28 07:11:19 UTC
Created attachment 702948 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-04-28 07:11:20 UTC
Created attachment 702951 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-04-28 07:11:21 UTC
Created attachment 702954 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-04-28 07:11:23 UTC
Created attachment 702957 [details]
temp.tar.bz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-10 07:28:54 UTC
Probably a `conotainer` macros clash with c++ standard library:

```
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:67,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/math.h:36,
                 from perceptron.h:12,
                 from xmltempl.h:10,
                 from xmltempl.cc:55:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_iterator.h:646:40: error: macro "container" requires 2 arguments, but only 1 given
  646 |       : container(std::__addressof(__x)) { }
      |                                        ^
xmltempl.cc:25: note: macro "container" defined here
   25 | #define container(x,tag) retval->AddChild (*xml_print_container (x,tag));
```
Comment 9 Larry the Git Cow gentoo-dev 2021-05-10 07:42:31 UTC
The bug has been closed via the following commit(s):

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

commit bd67edfb7ed3fec66643226d05641b9455f0a52f
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-10 07:42:09 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-10 07:42:28 +0000

    app-accessibility/epos: tweak for gcc-11
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/786264
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 app-accessibility/epos/epos-2.5.37-r3.ebuild       |  7 +-
 .../epos/files/epos-2.5.37-gcc-11.patch            | 81 ++++++++++++++++++++++
 2 files changed, 86 insertions(+), 2 deletions(-)