[Bug libc/28153] New: [test] gmon/tst-gmon-gprof* may have a f3 line when built with ld.lld
i at maskray dot me
sourceware-bugzilla@sourceware.org
Wed Jul 28 21:10:32 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=28153
Bug ID: 28153
Summary: [test] gmon/tst-gmon-gprof* may have a f3 line when
built with ld.lld
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Extracted from
https://sourceware.org/pipermail/libc-alpha/2021-July/129450.html
To build LLD 13.0.0:
# https://github.com/llvm/llvm-project/ origin/release/13.x
cmake -H. -Bout/release -G Ninja -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_PROJECTS='clang;lld'
ninja -C out/release lld
I use
sudo ln -sf out/release/bin/lld /usr/local/bin/ld
to ensure the glibc build system definitely picks ld => lld
(messing around with LDFLAGS=-fuse-ld=lld may work as well)
For gmon/tst-gmon-gprof*, ld.lld linked tst-gmon-gprof has a f3 line, which is
considered a failure by the test. However, having the f3 line appears more
correct to me. I am unclear why ld.bfd tst-gmon-gpro doesn't have f3.
% cat gmon/tst-gmon-gprof.out
--- expected
+++ actual
@@ -1,2 +1,3 @@
f1 2000
f2 1000
+f3 1
FAIL
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list