summaryrefslogtreecommitdiff
path: root/tcwg_gnu-build.sh
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-06-30 19:19:46 +0200
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-07-04 16:36:39 +0200
commit15deabfebd602cc65f68d49973aae0692f0c1963 (patch)
treeb8a862adf2a82d44e5a8fea1149a5192a9f2d080 /tcwg_gnu-build.sh
parentd9cd66e6f84414d5622c094b0b4bba29df321c39 (diff)
tcwg_gnu-build.sh: Use --prefix /usr for tcwg_gdb_check jobs
On arm builds this fixes a big number of tests because it allows GDB finding the distro's ld.so debug info but it should improve results a bit on aarch64 as well, since a few GDB tests assume presence of libc debug info. Change-Id: I1bad4d984bd98207bb11fd5e355d687975aaafff
Diffstat (limited to 'tcwg_gnu-build.sh')
-rwxr-xr-xtcwg_gnu-build.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/tcwg_gnu-build.sh b/tcwg_gnu-build.sh
index 9aed6344..fbdde27d 100755
--- a/tcwg_gnu-build.sh
+++ b/tcwg_gnu-build.sh
@@ -376,12 +376,24 @@ case "${rr[ci_project]}" in
run_step skip_on_fail 0 true
run_step skip_on_fail 1 build_abe "${rr[components]}"
;;
- tcwg_binutils_check|tcwg_gcc_check|tcwg_gdb_check)
+ tcwg_binutils_check|tcwg_gcc_check)
run_step skip_on_fail -2 build_abe "${rr[components]}"
run_step skip_on_fail -1 build_abe dejagnu
run_step skip_on_fail 0 build_abe "check_${rr[components]}" \
-- "${runtestflags[@]}"
;;
+ tcwg_gdb_check)
+ # GDB's testsuite has a limitation where it can only find debug info
+ # within the installation prefix. To allow it to find the
+ # distro-installed debug info for ld.so, use /usr as the prefix. We
+ # don't need to actually install GDB there though, so disable the
+ # install step.
+ run_step skip_on_fail -2 build_abe "${rr[components]}" \
+ -- --prefix /usr --disable install
+ run_step skip_on_fail -1 build_abe dejagnu
+ run_step skip_on_fail 0 build_abe "check_${rr[components]}" \
+ -- "${runtestflags[@]}"
+ ;;
tcwg_glibc_build)
run_step skip_on_fail 0 init_abe_sysroot
# ABE tries to copy gcc runtime libraries on glibc install, which