Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641058 - dev-qt/qt-creator-4.4.1: relocation error: /usr/lib64/qt5/bin/qdoc: symbol qt_qhash_seed, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
Summary: dev-qt/qt-creator-4.4.1: relocation error: /usr/lib64/qt5/bin/qdoc: symbol qt...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Low minor (vote)
Assignee: Davide Pesavento (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 21:29 UTC by Alexey Min
Modified: 2017-12-27 09:07 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge_info.txt,5.73 KB, text/plain)
2017-12-14 21:29 UTC, Alexey Min
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Min 2017-12-14 21:29:17 UTC
Created attachment 510054 [details]
emerge --info

=dev-qt/qt-creator-4.4.1::gentoo fails at install phase while trying to install docs. Relevant part of build log:

...
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/share/qtcreator'
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/share'
make -j6 docs 
/var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/qdoc_wrapper.sh -outputdir /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc/qtcreator /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc/qtcreator.qdocconf -indexdir /usr/share/doc/qt-5.9.3 -indexdir /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc && /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/qdoc_wrapper.sh -outputdir /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc/qtcreator-dev /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc/api/qtcreator-dev.qdocconf -indexdir /usr/share/doc/qt-5.9.3 -indexdir /var/tmp/portage/dev-qt/qt-creator-4.4.1/work/qt-creator-opensource-src-4.4.1/doc
/usr/lib64/qt5/bin/qdoc: relocation error: /usr/lib64/qt5/bin/qdoc: symbol qt_qhash_seed, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
make: *** [Makefile:561: html_docs] Error 127
 * ERROR: dev-qt/qt-creator-4.4.1::gentoo failed (install phase):
 *   emake failed

Full build log:   https://paste.pound-python.org/show/s5GZuXK1nUH7c4u5So3z/
Comment 1 Alexey Min 2017-12-14 21:47:29 UTC
P.S. builds fine with USE="-doc" emerge -v =dev-qt/qt-creator-4.4.1 ...
Comment 2 Jonas Stein gentoo-dev 2017-12-16 13:30:11 UTC
Thank you for the report. Please *attach* the logfiles,
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2017-12-19 01:53:11 UTC
Do you have mismatched versions of qdoc and qtcore?
Comment 4 Alexey Min 2017-12-23 21:06:39 UTC
(In reply to Davide Pesavento from comment #3)
> Do you have mismatched versions of qdoc and qtcore?

Hm, yes, qtcore from 5.9, qdoc from 5.7.. somehow  was missed by deep world update, is it not required for anything? :/

However, I installed qt-creator-9999, which went fine, and forgot about this bug for 4.4.1.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2017-12-25 04:38:10 UTC
(In reply to Alexey Min from comment #4)
> (In reply to Davide Pesavento from comment #3)
> > Do you have mismatched versions of qdoc and qtcore?
> 
> Hm, yes, qtcore from 5.9, qdoc from 5.7.. somehow  was missed by deep world
> update, is it not required for anything? :/

That's impossible if your depgraph is consistent. qdoc depends on ~dev-qt/qtcore-${PV}.
If nothing on your system depends on qdoc, emerge --depclean should offer to remove it.
Comment 6 Alexey Min 2017-12-25 08:01:30 UTC
(In reply to Davide Pesavento from comment #5)
> (In reply to Alexey Min from comment #4)
> > (In reply to Davide Pesavento from comment #3)
> > > Do you have mismatched versions of qdoc and qtcore?
> > 
> > Hm, yes, qtcore from 5.9, qdoc from 5.7.. somehow  was missed by deep world
> > update, is it not required for anything? :/
> 
> That's impossible if your depgraph is consistent. qdoc depends on
> ~dev-qt/qtcore-${PV}.
> If nothing on your system depends on qdoc, emerge --depclean should offer to
> remove it.

Yes, but qtcore had higher version number in my case, qdoc lower; upgrading qtcore does not upgrade qdoc :(

> nothing on your system depends on qdoc
I checked with emerge --depclean qdoc, it suggested to remove only qdoc :(
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2017-12-26 02:19:11 UTC
(In reply to Alexey Min from comment #6)
> (In reply to Davide Pesavento from comment #5)
> > (In reply to Alexey Min from comment #4)
> > > (In reply to Davide Pesavento from comment #3)
> > > > Do you have mismatched versions of qdoc and qtcore?
> > > 
> > > Hm, yes, qtcore from 5.9, qdoc from 5.7.. somehow  was missed by deep world
> > > update, is it not required for anything? :/
> > 
> > That's impossible if your depgraph is consistent. qdoc depends on
> > ~dev-qt/qtcore-${PV}.
> > If nothing on your system depends on qdoc, emerge --depclean should offer to
> > remove it.
> 
> Yes, but qtcore had higher version number in my case, qdoc lower; upgrading
> qtcore does not upgrade qdoc :(

Because qdoc isn't required by any other package and is not in the world set, as demonstrated by the fact that --depclean would remove it.

> > nothing on your system depends on qdoc
> I checked with emerge --depclean qdoc, it suggested to remove only qdoc :(

As expected.
Comment 8 Alexey Min 2017-12-26 08:37:54 UTC
> If nothing on your system depends on qdoc ...
> Because qdoc isn't required by any other package and is not in the world set ...

What I wanted to ask is: maybe qt-creator[doc] can depend on qdoc then?
Comment 9 Alexey Min 2017-12-26 08:50:43 UTC
It does, my bad. So what should be done to prevent this? To keep qdoc version the same as qtcore? Have qdoc in world file?
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2017-12-26 23:30:36 UTC
Oh so you have USE=doc enabled... that's interesting.

dev-qt/qt-creator-4.4.1[doc] DEPENDs on >=dev-qt/qdoc-5.6.2:5, which DEPENDs and RDEPENDs on ~dev-qt/qtcore-${PV}. qtcore was updated from 5.7.1 to 5.9.3, but qdoc was not (presumably because nothing depended on it at that time, i.e. it would have been removed by --depclean). At this point qdoc dependencies are broken, because qtcore-5.7.1 is no longer installed, but I guess it's fine if nothing depends on it and it's not in @world. Then you emerge qt-creator[doc], but qdoc is *not* updated to 5.9.3 to fix its RDEPEND, therefore it doesn't run correctly.

@dev-portage, is this possible?
Comment 11 Zac Medico gentoo-dev 2017-12-26 23:47:45 UTC
The default emerge behavior is to only check if qdoc is installed. You have to use emerge --deep if you want it to check qdoc dependencies.

In order to avoid issues like this, emerge suggests to run emerge --depclean to remove broken packages after a world update (bug 354787).
Comment 12 Alexey Min 2017-12-27 09:07:10 UTC
Yes, I probably had qdoc installed using --oneshot (or as dependency for previously installed qt-creator some time ago), that's why I am here now annoying you with all these emails ;) Davide, this situation happened exactly as you described, so I guess it cannot be fixed in qt-creator.

If emerge --deep qt-creator would help, then I blame myself and this bug can be closed.

P.S. I usually update @world with --deep and --with-bdeps=y, but qdoc slipped somehow, probably was not unkeyworded ~amd64, while other qt packages were.