Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Oct 2023 17:52:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273992] qt-dist.mk: suppress linker version script errors with lld >= 17
Message-ID:  <bug-273992-7788-HmUj676JNH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273992-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273992-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273992

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3D3e5360df35848a1ad8c5edae83a0a9c=
dfd6bb775

commit 3e5360df35848a1ad8c5edae83a0a9cdfd6bb775
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-21 08:40:09 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-10-06 17:48:52 +0000

    qt-dist.mk: suppress linker version script errors with lld >=3D 17

    Qt uses generated linker version scripts which always have a
    qt_version_tag symbol, but that symbol is only defined in the main Qt
    shared library. For other Qt components, this leads to lld >=3D 17
    erroring out due to the symbol being undefined. Suppress these errors
    from qt-dist.mk, so we don't have to patch each individual port.

    This affects at least:
    * devel/qt5-dbus
    * net/qt5-network
    * databases/qt5-sql

    which were the first ones to fall over with a clang+lld 17 poudriere
    bulk run.

    For reference, the error you would see looks like:

      ...
      c++ -Wl,--as-needed -fstack-protector-strong -Wl,--no-undefined
-Wl,--version-script,QtDBus.version -pthread -Wl,-rpath,/usr/local/lib/qt5
-shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5DBus.so.5 -o
libQt5DBus.so.5.15.8 .obj/qdbusconnection.o  .obj/qdbusconnectioninterface.=
o=20
.obj/qdbuserror.o  .obj/qdbusintegrator.o  .obj/qdbusmessage.o=20
.obj/qdbusserver.o  .obj/qdbusabstractinterface.o  .obj/qdbusinterface.o=20
.obj/qdbusxmlparser.o  .obj/qdbusutil.o  .obj/qdbusintrospection.o=20
.obj/qdbusabstractadaptor.o  .obj/qdbusinternalfilters.o=20
.obj/qdbusmetaobject.o  .obj/qdbusxmlgenerator.o  .obj/qdbusmisc.o=20
.obj/qdbusargument.o  .obj/qdbusreply.o  .obj/qdbusmetatype.o=20
.obj/qdbusextratypes.o  .obj/qdbuscontext.o  .obj/qdbuspendingcall.o=20
.obj/qdbuspendingreply.o  .obj/qdbus_symbols.o  .obj/qdbusservicewatcher.o=
=20
.obj/qdbusunixfiledescriptor.o  .obj/qdbusvirtualobject.o=20
.obj/moc_qdbusconnectioninterface.o  .obj/moc_qdbuserror.o=20
.obj/moc_qdbusconnection.o  .obj/moc_qdbusabstracta
 daptor.o  .obj/moc_qdbusvirtualobject.o  .obj/moc_qdbusconnection_p.o=20
.obj/moc_qdbusconnectionmanager_p.o  .obj/moc_qdbuspendingcall_p.o=20
-L/wrkdirs/usr/ports/devel/qt5-dbus/work/kde-qtbase-5.15.8p157/lib
/usr/local/lib/qt5/libQt5Core.so -L/usr/local/lib -ldbus-1
      ld: error: version script assignment of 'Qt_5.15' to symbol
'qt_version_tag' failed: symbol not defined
      c++: error: linker command failed with exit code 1 (use -v to see
invocation)

    PR:             273992
    Approved by:    maintainer timeout (2 weeks)
    MFH:            2023Q4

 Mk/Uses/qt-dist.mk | 6 ++++++
 1 file changed, 6 insertions(+)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273992-7788-HmUj676JNH>