Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714910 - dev-util/qbs-1.12.2: error: redefinition of ‘struct std::hash<QString>’
Summary: dev-util/qbs-1.12.2: error: redefinition of ‘struct std::hash<QString>’
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-26 19:00 UTC by Andrew Petelin
Modified: 2021-01-13 07:08 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.bz2,3.34 KB, application/x-bzip)
2020-03-26 19:01 UTC, Andrew Petelin
Details
build.log (build.log.bz2,4.81 KB, application/x-bzip)
2020-03-27 15:32 UTC, Andrew Petelin
Details
Info and build log (logs.zip,7.30 KB, application/zip)
2020-04-03 08:45 UTC, Boris Borisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Petelin 2020-03-26 19:00:26 UTC
qbs-1.12.2 rebuild started failing:

./tools/qttools.h:49:19: error: redefinition of ‘struct std::hash<QString>’
   49 | template<> struct hash<QString> {
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qlist.h:47,
                 from /usr/include/qt5/QtCore/qhash.h:46,
                 from ./language/forward_decls.h:145,
                 from api/internaljobs.h:43,
                 from api/internaljobs.cpp:39:
/usr/include/qt5/QtCore/qhashfunctions.h:204:1: note: previous definition of ‘struct std::hash<QString>’

Looks like due to changes in new Qt version.


$ equery depends qbs
 * These packages depend on qbs:
dev-qt/qt-creator-4.8.2 (qbs ? ~dev-util/qbs-1.12.2)

qbs use-flag was enabled explicitly.

Reproducible: Always
Comment 1 Andrew Petelin 2020-03-26 19:01:46 UTC
Created attachment 626258 [details]
emerge --info
Comment 2 Jonas Stein gentoo-dev 2020-03-26 22:21:13 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs and 
* paste the emerge info 
as described on 
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 3 Andrew Petelin 2020-03-27 15:32:48 UTC
Created attachment 626414 [details]
build.log

Here  is a build.log. emerge --info is already attached to the issue.
Comment 4 Boris Borisov 2020-04-03 08:42:53 UTC
Same failure on my system.
Comment 5 Boris Borisov 2020-04-03 08:45:04 UTC
Created attachment 629326 [details]
Info and build log
Comment 6 Andreas Sturmlechner gentoo-dev 2020-06-07 09:53:09 UTC
(In reply to Andrew Petelin from comment #0)
> Looks like due to changes in new Qt version.
What Qt version would that be?
Comment 7 Chiitoo gentoo-dev 2020-06-07 12:37:02 UTC
Looks like ddfa9a70 [1] at code.qt.io/cgit/qbs/qbs.git fixes this one (it won't apply as is though).

The next unstable version, 1.14.1, seems to have the fix in.

1. https://code.qt.io/cgit/qbs/qbs.git/commit/?id=ddfa9a70ad02bc94d3178912b520b86506f9c08c
Comment 8 Andrew Petelin 2020-06-07 22:34:31 UTC
(In reply to Andreas Sturmlechner from comment #6)
> (In reply to Andrew Petelin from comment #0)
> > Looks like due to changes in new Qt version.
> What Qt version would that be?

dev-qt/qtcore-5.14.2 right now.
Comment 9 Davide Pesavento gentoo-dev 2021-01-13 07:08:10 UTC
qbs-1.12.2 has been removed and later versions are not affected.