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.
- 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.
(*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.
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?
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!
Thanks. I'll close this for now. Please reopen it, if it should reoccur.