FreeBSD Bugzilla – Attachment 222959 Details for
Bug 254001
13.0-BETA llvm fails to link with -fprofile-instr-generate -fcoverage-mapping
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
source code and its error output
typescript.txt (text/plain), 3.70 KB, created by
ota
on 2021-03-04 03:43:27 UTC
(
hide
)
Description:
source code and its error output
Filename:
MIME Type:
Creator:
ota
Created:
2021-03-04 03:43:27 UTC
Size:
3.70 KB
patch
obsolete
>Script started on Thu Apr 29 00:28:11 2021 >% cat coverage.c >// cc -fprofile-instr-generate -fcoverage-mapping coverage.c >int main() >{ > int i = 0; >} >% cc -fprofile-instr-generate -fcoverage-mapping coverage.c >ld: error: undefined hidden symbol: __llvm_profile_counter_bias >>>> referenced by InstrProfilingFile.c:966 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:966) >>>> InstrProfilingFile.o:(__llvm_profile_initialize_file) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfilingFile.c:966 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:966) >>>> InstrProfilingFile.o:(__llvm_profile_initialize) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfilingFile.c:540 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:540) >>>> InstrProfilingFile.o:(relocateCounters) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a > >ld: error: undefined symbol: lprofSetRuntimeCounterRelocation >>>> referenced by InstrProfilingFile.c:967 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:967) >>>> InstrProfilingFile.o:(__llvm_profile_initialize_file) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfilingFile.c:967 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:967) >>>> InstrProfilingFile.o:(__llvm_profile_initialize) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a > >ld: error: undefined symbol: lprofRuntimeCounterRelocation >>>> referenced by InstrProfilingFile.c:812 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:812) >>>> InstrProfilingFile.o:(parseAndSetFilename) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfilingFile.c:481 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:481) >>>> InstrProfilingFile.o:(relocateCounters) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfilingBuffer.c:66 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingBuffer.c:66) >>>> InstrProfilingBuffer.o:(__llvm_profile_get_size_for_buffer_internal) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced 1 more times > >ld: error: undefined symbol: lprofProfileDumped >>>> referenced by InstrProfilingFile.c:1018 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:1018) >>>> InstrProfilingFile.o:(__llvm_profile_write_file) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a > >ld: error: undefined symbol: lprofSetProfileDumped >>>> referenced by InstrProfilingFile.c:1065 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c:1065) >>>> InstrProfilingFile.o:(__llvm_profile_dump) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfiling.c:29 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfiling.c:29) >>>> InstrProfiling.o:(__llvm_profile_set_dumped) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >>>> referenced by InstrProfiling.c:73 (/usr/src/contrib/llvm-project/compiler-rt/lib/profile/InstrProfiling.c:73) >>>> InstrProfiling.o:(__llvm_profile_reset_counters) in archive /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a >cc: error: linker command failed with exit code 1 (use -v to see invocation) >% exit > >Script done on Thu Apr 29 00:28:17 2021
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 254001
: 222959