From 294540ac96418b437f529107b33394bf4bf39311 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 21 Feb 2023 09:57:49 +1030 Subject: [PATCH] alpha-*-vms missing libraries For this: ./ld-new: cannot find -limagelib: No such file or directory ./ld-new: cannot find -lstarlet: No such file or directory ./ld-new: cannot find -lsys$public_vectors: No such file or directory the logs showed creating dummy tmpdir/libimagelib: creating dummy No creating dummy such etc. So rubbish instead of tmpdir/libimagelib.a and the other required libs. * testsuite/config/default.exp: Correct regex detecting missing libraries automatically searched by alpha-dec-vms-ld. --- ld/testsuite/config/default.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 257fd4ba985..59a45e34d1d 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -471,7 +471,7 @@ if { [istarget alpha*-*-*vms*] } { close $f if { [ld_assemble $as $src tmpdir/empty.o] && ![ld_link $LD tmpdir/empty tmpdir/empty.o] - && [regsub -all {[^\n]*: cannot find -l([^\n]*)} $exec_output {tmpdir/lib\1.a } missing_libs] } { + && [regsub -all {[^\n]*: cannot find -l([^\n :]*)[^\n]*} $exec_output {tmpdir/lib\1.a } missing_libs] } { regsub -all {\$} $missing_libs {\\\$} missing_libs for { set i 0 } { $i < [llength $missing_libs] } { incr i } { set f [lindex $missing_libs $i] -- 2.30.2