[Webkit-unassigned] [Bug 224812] New: gtest.a exports symbols, causing link-time warning: direct access in function ... means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 20 06:46:24 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224812
Bug ID: 224812
Summary: gtest.a exports symbols, causing link-time warning:
direct access in function ... means the weak symbol
cannot be overridden at runtime. This was likely
caused by different translation units being compiled
with different visibility settings.
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: kkinnunen at apple.com
gtest.a exports symbols, causing link-time warning: direct access in function ... means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'testing::internal::SuiteApiResolver<testing::internal::(anonymous namespace)::FailureTest>::GetSetUpCaseOrSuite(char const*, int)' from file '/Users/kkinnunen/Build/Debug/libgtest.a(gtest-all.o)' to global weak symbol 'testing::Test::SetUpTestSuite()' from file '/Users/kkinnunen/Build/Debug/libTestWTF.a(AtomString.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
This is due to gtest.a static library is being compiled with dynamic library settings.
This causes the symbols to be marked as default visibility.
This is being worked around by hiding the symbols explicitly via ld flags
This causes ld warning.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210420/8763a217/attachment-0001.htm>
More information about the webkit-unassigned
mailing list