Bug 215646 - devel/qt5-core: symbol qt_version_tag has undefined version Qt_5.6
Summary: devel/qt5-core: symbol qt_version_tag has undefined version Qt_5.6
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-29 05:52 UTC by Pavel Minaev
Modified: 2016-12-29 22:34 UTC (History)
2 users (show)

See Also:
groot: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Minaev 2016-12-29 05:52:36 UTC
qt5-core 5.6.2 fails to build on FreeBSD 11-RELEASE. During the linking stage, the following error appears:

    /usr/local/bin/ld.gold: error: symbol qt_version_tag has undefined version Qt_5.6

and is then repeated for all other versions from Qt_5.0 to Qt_5.6 inclusive.

Tried make clean. Tried with both base system clang as well as clang39 from ports. Also tried uninstalling all installed devel/qt5-* packages. Error still repros reliably.
Comment 1 groot 2016-12-29 11:05:07 UTC
 - Fresh 11.0-R installation, i386
 - Installed qt5-core from pkg first, to pull in some dependencies
 - pkg delete qt5-\*
 - Since your error message mentions the gold linker, install devel/binutils from ports
 - Build devel/qt5-core from ports

This builds fine. There's probably some configuration on your system that is important to this problem.
Comment 2 groot 2016-12-29 11:14:50 UTC
(*duh*) Of course, ld.gold doesn't get built on i386, so my test was a little bit useless :( I do recall seeing other problem reports with the gold linker, so it is probably specific to that linker and not the base system.
Comment 3 groot 2016-12-29 14:09:50 UTC
Can't reproduce with a fresh x64-install of 11.0-R, binutils, LD set to ld.gold. I can see -fuse-ld=gold in the compile-log when linking qt5-core.

In your work/ directory, do you have a src/corelib/QtCore.version file? When linking, does that get passed in with -Wl,--version-script,QtCore.version?
Comment 4 Pavel Minaev 2016-12-29 20:42:26 UTC
I cannot repro anymore. The problem originally surfaced while trying to upgrade packages with portmaster (previously, I've been using the ports tree that came on the FreeBSD 11 DVD image). After reporting this bug, I switched to portupgrade (since it continues building on errors).

I have `portupgrade -a` currently in progress, running for several hours now. I suspect that it had upgraded some other package (possibly binutils?) that made a difference. But, either way, it looks like it has successfully built qt5-core already on that same box. And I can manually re-run `make clean && make` in qt5-core, and it rebuilds successfully as well.

Thank you for your help!
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2016-12-29 22:34:48 UTC
Thanks. I'll close this for now. 

Please reopen it, if it should reoccur.