WSL PGO fails with undefined symbol: __llvm_profile_instrument_memop
Categories
(Firefox Build System :: General, defect, P3)
Tracking
(Not tracked)
People
(Reporter: alexboy94, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0 Waterfox/102.11
Steps to reproduce:
Cross-compile from Ubuntu 22.04 WSL, targetting Windows, with PGO enabled.
Actual results:
Build fails, similar to Bug 1718171 and Bug 1827095, with lld-link spitting out an undefined symbol: __llvm_profile_instrument_memop error.
Reporter | ||
Comment 1•2 years ago
|
||
Build configuration used.
Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
What is the content of the directory pointed by the output of /home/build/llvm/bin/clang-cl /clang:--print-runtime-dir
?
Reporter | ||
Comment 3•2 years ago
|
||
It points to lib/clang/16/lib/windows
:
clang_rt.asan-i386.lib
clang_rt.asan-preinit-i386.lib
clang_rt.asan-preinit-x86_64.lib
clang_rt.asan-x86_64.lib
clang_rt.asan_cxx-i386.lib
clang_rt.asan_cxx-x86_64.lib
clang_rt.asan_dll_thunk-i386.lib
clang_rt.asan_dll_thunk-x86_64.lib
clang_rt.asan_dynamic-i386.dll
clang_rt.asan_dynamic-i386.lib
clang_rt.asan_dynamic-i386.pdb
clang_rt.asan_dynamic-x86_64.dll
clang_rt.asan_dynamic-x86_64.lib
clang_rt.asan_dynamic-x86_64.pdb
clang_rt.asan_dynamic_runtime_thunk-i386.lib
clang_rt.asan_dynamic_runtime_thunk-x86_64.lib
clang_rt.asan_static-i386.lib
clang_rt.asan_static-x86_64.lib
clang_rt.builtins-i386.lib
clang_rt.builtins-x86_64.lib
clang_rt.fuzzer-i386.lib
clang_rt.fuzzer-x86_64.lib
clang_rt.fuzzer_interceptors-i386.lib
clang_rt.fuzzer_interceptors-x86_64.lib
clang_rt.fuzzer_no_main-i386.lib
clang_rt.fuzzer_no_main-x86_64.lib
clang_rt.profile-i386.lib
clang_rt.profile-x86_64.lib
clang_rt.stats-i386.lib
clang_rt.stats-x86_64.lib
clang_rt.stats_client-i386.lib
clang_rt.stats_client-x86_64.lib
clang_rt.ubsan_standalone-i386.lib
clang_rt.ubsan_standalone-x86_64.lib
clang_rt.ubsan_standalone_cxx-i386.lib
clang_rt.ubsan_standalone_cxx-x86_64.lib
Comment 4•2 years ago
|
||
Can you add export LDFLAGS=-verbose
to your mozconfig, then run the following commands:
./mach configure
./mach build -v -C . pre-export export mozglue/build/target
Then please attach the full output of those commands.
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 5•2 years ago
|
||
Sorry for the delayed response, I updated my toolchain and the issue is no more!
Description
•