Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.4, 5.12.6
-
None
-
macOS 10.14.2;
XCode 10.1, Build version 10B61;
-
-
fcd3a20059d0c629d972ba2577694394b438a100 (qt/qtbase/5.15)
Description
When building Qt, LLVM linker issues warnings like this for some of the tools:
ld: warning: direct access in function 'QHash<QString, int>::insert(QString const&, int const&)' from file '/Users/macos/QtBuild/qtbase/lib/libQt5Bootstrap.a(qcommandlineparser.o)' to global weak symbol 'QHash<QString, int>::deleteNode2(QHashData::Node*)' from file '.obj/rcc.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
Warnings are available in the logs in the attachement. Reproduces on 5.12.4 and 5.12.6.
Build commands:
git clone git://code.qt.io/qt/qt5.git
cd qt5/
git checkout 5.12.4
perl init-repository --module-subset=qtbase,qtmacextras,qttools,qttranslations,qtdeclarative
cd ../QtBuild/
../qt5/configure -opensource -confirm-license -shared -nomake tests -nomake examples -silent -debug -platform macx-clang -opengl desktop -no-dbus -no-framework
make
Attachments
Issue Links
- relates to
-
QTBUG-37962 QtUiTools causes "different visibility settings" warnings on Mac OS
- Reported
-
QTBUG-93471 Darwin linker warns about global weak symbols when linking an executable against a static Qt
- Closed
For Gerrit Dashboard: QTBUG-81297 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
287931,2 | macOS build: Fix 'direct access in function...' warning | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |