Closed Bug 1884053 Opened 7 months ago Closed 7 months ago

ld64.lld: error: undefined symbol: mozilla::baseprofiler::detail::GetThreadRegistrationTime()

Categories

(Core :: Gecko Profiler, defect)

Unspecified
iOS
defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When building gtests with either --enable-project=mobile/ios or --disable-gecko-profiler:

 0:47.01 ld64.lld: error: undefined symbol: mozilla::baseprofiler::detail::GetThreadRegistrationTime()
 0:47.01 >>> referenced by ../../../tools/profiler/tests/gtest/Unified_cpp_tests_gtest0.o:(symbol GeckoProfiler_ThreadRegistrationInfo_Test::TestBody()+0x6b0)
 0:47.01 >>> referenced by ../../../tools/profiler/tests/gtest/Unified_cpp_tests_gtest0.o:(symbol mozilla::profiler::ThreadRegistrationInfo::ThreadRegistrationInfo(char const*)+0xb4)
 0:47.02 >>> referenced by ../../../tools/profiler/tests/gtest/Unified_cpp_tests_gtest0.o:(symbol mozilla::profiler::ThreadRegistrationInfo::ThreadRegistrationInfo(char const*)+0x4c)

On Linux, the build doesn't fail, but it crashes when running gtests because of the same missing symbol.

I'm not sure why the non-gtest libxul doesn't fail to link in the same way on mac.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/b09474764fb5 Don't use baseprofiler::detail::GetThreadRegistrationTime when the profiler is disabled. r=profiler-reviewers,mstange
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: