From patchwork Tue Feb 21 05:53:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 59767 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1693173wrn; Mon, 20 Feb 2023 21:53:16 -0800 (PST) X-Google-Smtp-Source: AK7set/vKTlHpdsh1H09Iv1UbDqwSzIE0HvTefIFVSChUqA47g3REpj0BzyJBzFHI8rKpkAKYmXY X-Received: by 2002:a17:906:d979:b0:8af:2107:6ce5 with SMTP id rp25-20020a170906d97900b008af21076ce5mr9652652ejb.35.1676958795882; Mon, 20 Feb 2023 21:53:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676958795; cv=none; d=google.com; s=arc-20160816; b=kOQQchzIueZMB420lGAZ1IZZ9JFRqSYtDMK5uNo7YPzwTARyg8hZtZk0Pz3ABvW1d9 a5OC/JOIitaqIiiITOKun8QKE9x4Z2IPE5Ve+sghMhh1d/8PjS4Jwv5CysDE9WFTWjkF CtVy8HNlYe5MOYMwa8vpO/UNvwDd50i6qzHAEvoP9CwK7060iWEeNEijTDO2/V7tbeX0 cHWuqGL3WIMI80/goBZpeH1+2QPc/M9npKLItrnfDKrT/Z+IxF691bUxJ6VeWlcakcG1 rjT1X6vpLS2HsrX5gTFpfFvpZqO4x3ndgaukCUPkO0h4EQj6u41k1JvISS87TI0OnJAR LKvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=nAUvRGy6dglQTMFyfvJxlYDTW/eXiJesCt2FXxdP86A=; b=kA+NNTPV2foP2Q63bYo1CYz0nJPOE4VGJNJw5D9SlyrDlHGqvSZoVDp+inzbhb29mp Wedrwd36GvAwNO2QKM5ZhmbSWvsNk5iw7V5DkT6hFvTV6P9Hr/n6FaxmnlwvYx2RaIiq zTAr/dc+9hh9WU/4xkwiXfOcY0oVNtNhowgVFBijV8mp8iFVNbS3516P8BP+8DZ16fYy w5rRwYjMDqU0UkeoUwMkbSFpujbs+J17EyGH7zUryZp9O2TZnUaRGBXqrazXs1bq6lXz rVTRiyrQsdgSrCL7qpL1fR4HUY9Hm32u1n3aPhfY/aynmWKbcuYCijKKHOOOiFHftRRs lyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=r1KbEdiP; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id uk41-20020a170907ca2900b008cd9a471156si7141805ejc.377.2023.02.20.21.53.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 21:53:15 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=r1KbEdiP; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA38B3858C74 for ; Tue, 21 Feb 2023 05:53:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA38B3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676958794; bh=nAUvRGy6dglQTMFyfvJxlYDTW/eXiJesCt2FXxdP86A=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=r1KbEdiPADFLSkuvwhZjSUrt2ay+90uWCFBY2Xah8k1ElyBWVBEirHN+fUZ+iyKU7 mEHFT3we6z8cMB4K9cYvpysFTZXC3CAQJ9rgZpWPNDezLAU3xQxDAcBizFWIxOmPfr JPD0ptzo7wIgS4jPO9VLWTJ73gPFnIFcybBh/x7Y= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 783D33858D1E for ; Tue, 21 Feb 2023 05:53:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 783D33858D1E Received: by mail-pl1-x62d.google.com with SMTP id s5so3753875plg.0 for ; Mon, 20 Feb 2023 21:53:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nAUvRGy6dglQTMFyfvJxlYDTW/eXiJesCt2FXxdP86A=; b=ltpA41WnJcw2yQUGVYAhC6ePSF03UckxUpqnr6tVXujnFfRuOYL6Cfp1kePn0g2h9k yvi83Vw9m48Mn4viIan+D8zYPxBBdK/5475DlKMV725FGe7EUBhNYJT5PF5yMs+P05HL Aa/+YKhKTEdJY/fH59bWJCE84IO+rjfW3ZeBnSwY36UTvjKMcF7cQMBEuMYdJ0dJHo9x TBTE7odYULhvlwt7rwRpDr92ueMLQmFiVLlmgBdzIZSFJX5EUBOPyhDkC52hdjr1ndKR 6JQpm6YFPDGXp7cEgTnGpZC7tlZsPf323dGwjXXYmgxOIERwYkWaryYNwwyN/NV/BGd1 EopQ== X-Gm-Message-State: AO0yUKUCfNwRhRNVlO6sWserRT70yXnQfATWHEFnnD9Hs4+jI5G1Bg+P GPsalVYpxKKS13bADDM7ewTh160y290= X-Received: by 2002:a17:903:7c3:b0:19a:821b:482 with SMTP id ko3-20020a17090307c300b0019a821b0482mr3713451plb.52.1676958785908; Mon, 20 Feb 2023 21:53:05 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:c69:786c:79e2:e82e]) by smtp.gmail.com with ESMTPSA id x5-20020a170902820500b00198ac2769aesm2557761pln.135.2023.02.20.21.53.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 21:53:05 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 0DEC31142769; Tue, 21 Feb 2023 16:23:03 +1030 (ACDT) Date: Tue, 21 Feb 2023 16:23:03 +1030 To: binutils@sourceware.org Subject: alpha-*-vms missing libraries Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758418746643190430?= X-GMAIL-MSGID: =?utf-8?q?1758418746643190430?= 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. 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]