Closed Bug 1832337 Opened 2 years ago Closed 2 years ago

WSL PGO fails with undefined symbol: __llvm_profile_instrument_memop

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alexboy94, Unassigned)

Details

Attachments

(2 files)

Attached file build.log

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.

Attached file .mozconfig

Build configuration used.

Component: Untriaged → General
Product: Firefox → Firefox Build System

What is the content of the directory pointed by the output of /home/build/llvm/bin/clang-cl /clang:--print-runtime-dir?

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

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.

Flags: needinfo?(alexboy94)
Severity: -- → S3
Priority: -- → P3

Sorry for the delayed response, I updated my toolchain and the issue is no more!

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(alexboy94)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: