[Bug find-debuginfo/33135] find-debuginfo test regressions in 5.2

mark at klomp dot org sourceware-bugzilla@sourceware.org
Tue Jul 8 10:08:30 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33135

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
If your gcc isn't configured to produce build-ids by default (it really
should!) then the following forcing build-id generation in the test cases might
fix the tests for you:

diff --git a/tests/find-debuginfo.at b/tests/find-debuginfo.at
index dd5937492978..1d7ad579bbbb 100644
--- a/tests/find-debuginfo.at
+++ b/tests/find-debuginfo.at
@@ -93,9 +93,9 @@ cp "${abs_srcdir}"/data/SOURCES/baz.c subdir_build
 cd subdir_build
 # Three almost identical binaries
 # so dwz has something to put into the alt file
-$CC $CFLAGS -g3 -I. -o foo foo.c bar.c baz.c
-$CC $CFLAGS -g3 -I. -o bar bar.c baz.c foo.c
-$CC $CFLAGS -g3 -I. -o baz baz.c foo.c bar.c
+$CC $CFLAGS -Wl,--build-id -g3 -I. -o foo foo.c bar.c baz.c
+$CC $CFLAGS -Wl,--build-id -g3 -I. -o bar bar.c baz.c foo.c
+$CC $CFLAGS -Wl,--build-id -g3 -I. -o baz baz.c foo.c bar.c
 cd ..
 ]])

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list