Debian Bug report logs -
#811885
brainparty: FTBFS with GCC 6: template argument X is invalid
Reported by: Martin Michlmayr <tbm@hpe.com>
Date: Wed, 20 Jan 2016 03:00:05 UTC
Severity: serious
Tags: sid, stretch
Found in version brainparty/0.61+dfsg-2
Fixed in version brainparty/0.61+dfsg-3
Done: James Cowgill <jcowgill@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#811885; Package brainparty.
(Wed, 20 Jan 2016 03:00:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Martin Michlmayr <tbm@hpe.com>:
New Bug report received and forwarded. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Wed, 20 Jan 2016 03:00:09 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: brainparty
Version: 0.61+dfsg-2
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-invalid-template-argument
This package fails to build with GCC 6. GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.
Note that only the first error is reported; there might be more. You
can find a snapshot of GCC 6 in experimental. To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.
You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o flashcounting.o flashcounting.cpp
> In file included from wordsmash.h:22:0,
> from wordsmash.cpp:18:
> WordList.h:38:39: error: template argument 2 is invalid
> typedef hash_set<string, hash<string> > string_hash_set;
> ^
>
> WordList.h: In constructor 'WordList::WordList(const char*)':
> WordList.h:55:11: error: request for member 'insert' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> Words.insert(word);
> ^~~~~~
>
> WordList.h: In destructor 'WordList::~WordList()':
> WordList.h:64:9: error: request for member 'clear' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> Words.clear();
> ^~~~~
>
> WordList.h: In member function 'bool WordList::Contains(std::__cxx11::string)':
> WordList.h:68:35: error: qualified-id in declaration before 'it'
> string_hash_set::const_iterator it = Words.find(string);
> ^~
>
> WordList.h:70:7: error: 'it' was not declared in this scope
> if (it != Words.end()) {
> ^~
>
> WordList.h:70:19: error: request for member 'end' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> if (it != Words.end()) {
> ^~~
>
> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o jeweljam.o jeweljam.cpp
> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o BPPoint.o BPPoint.cpp
> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o BPGame.o BPGame.cpp
> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o Minigame.o Minigame.cpp
> WordList.h: In constructor 'WordList::WordList(const char*)':
> WordList.h:52:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
> fgets(filebuffer, 255, fp);
> ^
>
> Makefile:29: recipe for target 'wordsmash.o' failed
> make[1]: *** [wordsmash.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> In file included from wordsmash.h:22:0,
> from BPGame.cpp:61:
> WordList.h:38:39: error: template argument 2 is invalid
> typedef hash_set<string, hash<string> > string_hash_set;
> ^
>
> WordList.h: In constructor 'WordList::WordList(const char*)':
> WordList.h:55:11: error: request for member 'insert' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> Words.insert(word);
> ^~~~~~
>
> WordList.h: In destructor 'WordList::~WordList()':
> WordList.h:64:9: error: request for member 'clear' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> Words.clear();
> ^~~~~
>
> WordList.h: In member function 'bool WordList::Contains(std::__cxx11::string)':
> WordList.h:68:35: error: qualified-id in declaration before 'it'
> string_hash_set::const_iterator it = Words.find(string);
> ^~
>
> WordList.h:70:7: error: 'it' was not declared in this scope
> if (it != Words.end()) {
> ^~
>
> WordList.h:70:19: error: request for member 'end' in '((WordList*)this)->WordList::Words', which is of non-class type 'string_hash_set {aka int}'
> if (it != Words.end()) {
> ^~~
>
> BPGame.cpp: In member function 'void BPGame::DrawLine(int, int, int, int, Colour*, float)':
> BPGame.cpp:1506:48: warning: narrowing conversion of 'fromx' from 'int' to 'GLfloat {aka float}' inside { } [-Wnarrowing]
> GLfloat vertices[] = { fromx, fromy, tox, toy };
> ^
>
> BPGame.cpp:1506:48: warning: narrowing conversion of 'fromy' from 'int' to 'GLfloat {aka float}' inside { } [-Wnarrowing]
> BPGame.cpp:1506:48: warning: narrowing conversion of 'tox' from 'int' to 'GLfloat {aka float}' inside { } [-Wnarrowing]
> BPGame.cpp:1506:48: warning: narrowing conversion of 'toy' from 'int' to 'GLfloat {aka float}' inside { } [-Wnarrowing]
> Makefile:29: recipe for target 'BPGame.o' failed
> make[1]: *** [BPGame.o] Error 1
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
Severity set to 'serious' from 'important'
Request was from Matthias Klose <doko@debian.org>
to control@bugs.debian.org.
(Wed, 29 Jun 2016 13:12:07 GMT) (full text, mbox, link).
Added tag(s) help.
Request was from Dmitry Smirnov <onlyjob@debian.org>
to control@bugs.debian.org.
(Thu, 30 Jun 2016 06:18:08 GMT) (full text, mbox, link).
Added tag(s) stretch and sid.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Fri, 01 Jul 2016 00:18:37 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#811885; Package brainparty.
(Sat, 02 Jul 2016 19:48:10 GMT) (full text, mbox, link).
Acknowledgement sent
to James Cowgill <jcowgill@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Sat, 02 Jul 2016 19:48:10 GMT) (full text, mbox, link).
Message #16 received at 811885@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 - help
On Tue, 19 Jan 2016 18:57:11 -0800 Martin Michlmayr <tbm@hpe.com> wrote:
> > sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
> ...
> > g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o flashcounting.o flashcounting.cpp
> > In file included from wordsmash.h:22:0,
> > from wordsmash.cpp:18:
> > WordList.h:38:39: error: template argument 2 is invalid
> > typedef hash_set<string, hash<string> > string_hash_set;
> > ^
I'm on this. Replacing hash_set with unordered_set is probably the best
solution for this bug.
James
[signature.asc (application/pgp-signature, inline)]
Removed tag(s) help.
Request was from James Cowgill <jcowgill@debian.org>
to 811885-submit@bugs.debian.org.
(Sat, 02 Jul 2016 19:48:10 GMT) (full text, mbox, link).
Added tag(s) pending.
Request was from James Cowgill <james410@cowgill.org.uk>
to control@bugs.debian.org.
(Sat, 02 Jul 2016 20:03:13 GMT) (full text, mbox, link).
Message sent on
to Martin Michlmayr <tbm@hpe.com>:
Bug#811885.
(Sat, 02 Jul 2016 20:03:29 GMT) (full text, mbox, link).
Message #23 received at 811885-submitter@bugs.debian.org (full text, mbox, reply):
tag 811885 pending
--
We believe that the bug #811885 you reported has been fixed in the Git
repository. You can see the commit message below and/or inspect the
commit contents at:
http://anonscm.debian.org/cgit/pkg-games/brainparty.git/diff/?id=9fe6753
(This message was generated automatically by
'git-post-receive-tag-pending-commitmsg' hook).
---
commit 9fe67535389687d894fccdb86c2eb4756568ad67
Author: James Cowgill <james410@cowgill.org.uk>
Date: Sat Jul 2 21:43:28 2016 +0200
Fix FTBFS with GCC 6.
Closes: #811885
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#811885; Package brainparty.
(Sat, 02 Jul 2016 22:39:13 GMT) (full text, mbox, link).
Acknowledgement sent
to Markus Koschany <apo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Sat, 02 Jul 2016 22:39:13 GMT) (full text, mbox, link).
Message #28 received at 811885@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On 02.07.2016 21:45, James Cowgill wrote:
> Control: tags -1 - help
>
> On Tue, 19 Jan 2016 18:57:11 -0800 Martin Michlmayr <tbm@hpe.com> wrote:
>>> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
>> ...
>>> g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -c -Wno-deprecated `sdl-config --cflags` -I/usr/X11R6/include -o flashcounting.o flashcounting.cpp
>>> In file included from wordsmash.h:22:0,
>>> from wordsmash.cpp:18:
>>> WordList.h:38:39: error: template argument 2 is invalid
>>> typedef hash_set<string, hash<string> > string_hash_set;
>>> ^
>
> I'm on this. Replacing hash_set with unordered_set is probably the best
> solution for this bug.
>
Thanks for taking care of this James.
Cheers,
Markus
[signature.asc (application/pgp-signature, attachment)]
Reply sent
to James Cowgill <jcowgill@debian.org>:
You have taken responsibility.
(Sat, 02 Jul 2016 23:00:09 GMT) (full text, mbox, link).
Notification sent
to Martin Michlmayr <tbm@hpe.com>:
Bug acknowledged by developer.
(Sat, 02 Jul 2016 23:00:09 GMT) (full text, mbox, link).
Message #33 received at 811885-close@bugs.debian.org (full text, mbox, reply):
Source: brainparty
Source-Version: 0.61+dfsg-3
We believe that the bug you reported is fixed in the latest version of
brainparty, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 811885@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
James Cowgill <jcowgill@debian.org> (supplier of updated brainparty package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 02 Jul 2016 22:00:16 +0200
Source: brainparty
Binary: brainparty brainparty-data
Architecture: source
Version: 0.61+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: James Cowgill <jcowgill@debian.org>
Description:
brainparty - 36 puzzle games for all the family
brainparty-data - 36 puzzle games for all the family -- game data
Closes: 811885 826408
Changes:
brainparty (0.61+dfsg-3) unstable; urgency=medium
.
* Team upload
.
[ James Cowgill ]
* Fix FTBFS with GCC 6. (Closes: #811885)
.
[ Markus Koschany ]
* Declare compliance with Debian Policy 3.9.8.
* Update my e-mail address.
* Update copyright years.
* Vcs fields: Use https.
* Add reproducible-build.patch and make the build reproducible.
Thanks to Reiner Herrmann for the report and patch. (Closes: #826408)
Checksums-Sha1:
a490854876ca3f991f6ccd3f6cc88519a5f15eb5 2160 brainparty_0.61+dfsg-3.dsc
36e057461f608a88d7cf06790161c727bd9067bf 103680 brainparty_0.61+dfsg-3.debian.tar.xz
Checksums-Sha256:
5dc2cf2a8ffa058c4b10b7bd3a4d14d4c1fa89693e990852cf4e6277c190f55e 2160 brainparty_0.61+dfsg-3.dsc
d33184846616a049875dc9a88e226774cd57548780929ba3055b8ddbff434321 103680 brainparty_0.61+dfsg-3.debian.tar.xz
Files:
ec0f3eaf9b3317d0d900edbfa699b12d 2160 games optional brainparty_0.61+dfsg-3.dsc
c4f6964d15ab289e6a0ad0e3f03db265 103680 games optional brainparty_0.61+dfsg-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJXeB2dAAoJEMfxZ23qLQHv0egP/2UYzV54MU4avRBnF4cittkf
78LaQOe56ophBCSrWINUqv1qI/wd+GR5vAKC1s2qsKBNQd6BLh+ekl69R5SYlIQm
ZT+5n4vDop/prMMzYfy7XyQWwMohyOGj5Fh87IBHcxuYjQ0zuExLyINygTSwlQJC
B4u9mo9Y/0iE2+XdYWDT1tZvTd9sgf7Eb2H+YORAcJcfkfruW36bLo8YHb19bFba
w34cXeoUESwt41Ehd/5cE9kVagrynz8YkdQiqwBPuHM01zQ7UpxGuVjyeI5RY74S
ystaSRNrgTfI7ML9rP29OYikak6OfMAwVI8CRYRYJcVGciXgNlJWHTRTLoaXZBdu
bQ3YQVXgxl60izE3W4eW/PonH/W+4AfPse8yo35GvoSp6dff+MJVVH5ikVouwGGP
OqhgI/6LhOOa4KmJsmmTbJfXsQdhP4uiYoBfV1WPBOt8X1Up3VHtid+UhPnyFvHq
ZGwe2eTllH4mdokYksnl7ejwF765iTslojq2F9UikKp38EsupmWfAlbS3Zd+gFA9
kA03eTwQGJcpeD9W7EzSXD2aE1s8x2UhqKjrF+mz8pZFL3ccTJrcJKxfd5y/tv3B
ZDFWAo+a8vGZgISpue5Vh3Qa7KJGhH4mRJoS3Xzzx4tShoq2eJNtRKDrd2ob4n47
+8rTgHEfeNyGkXul0kJt
=u3qQ
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#811885; Package brainparty.
(Sun, 03 Jul 2016 00:33:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Dmitry Smirnov <onlyjob@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Sun, 03 Jul 2016 00:33:07 GMT) (full text, mbox, link).
Message #38 received at 811885@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi James, Markus,
Thank you very much for the fix, James.
Thank you for uploading, Markus.
Great to have you around. :)
--
Best wishes,
Dmitry Smirnov.
---
In individuals, insanity is rare; but in groups, parties, nations and
epochs, it is the rule.
-- Friedrich Nietzsche
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 05 Aug 2016 07:44:55 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 11:20:53 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.