From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 097753858D20 for ; Wed, 31 May 2023 18:16:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 097753858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5343c3daff0so3774470a12.0 for ; Wed, 31 May 2023 11:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685556985; x=1688148985; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NMUtxnW5IReHNKYSGGtnr8cA2p6Q+2HsRc0+kaJuSGk=; b=xEahaPPvVsXlebkWzHLJlt8NZJ7RJBnIUcnRBe3a6L4dnGMtiGW8djBN60IlVuDfCp PLGKo7hnI6csNoFRqLywoAHO287/T355yfU2aFDg0+b3RGaz+tHOjNzB3HBHqC82wabW nO5uUtcVSNH5K/XKj0PwYfCTjDOYBmEuHBplVvpqCMN1zEtVE9LKm/MhWCuoJ0z9R13T VIOvKJFzHZmxVoH0Z7kz15qFoFBzLiZ6enuJiJI1Eu1VsxMM22+Lqnwst3lSE7RfdXYd gDU7yLhcxV5rUP8gq+0YhR6muzOj3QKnTklrQictdzSNHalP3rMlIYCwXGS1M0HhJbff m6Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685556985; x=1688148985; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NMUtxnW5IReHNKYSGGtnr8cA2p6Q+2HsRc0+kaJuSGk=; b=b35gJ9BZ+yenQQtTSQ8S7DTINNjfCnh+JgCEqzUxqnVjsk4lRdz/JgxOJx8xOtUZmV MmGh789cAuAnuYXnGWKoXMKC/1n5ni/ticpbf9uYl6a2bKI5NWbH2X5N8wuxsKYdePIe 43SHE7QTuA/i8aEGHcyOMZuKbH3TER9N0hgIsf1Zu3TEY0+qdkeI7GjPF39aUL6mx5nm OG5t0w+xeg7V579wYnBW+KcXuLzx04xOXRLGA0Rwq4ebgWz2nTyM2onTUukAOPnroX3Y 5E+6abBzJ5cFQpBmBEAXr942elrsyGO2P/gkkwxVNuYqXRY+GFVubOCVC8A4v6yTdAh/ ahrA== X-Gm-Message-State: AC+VfDxMXydvCOzQupgYqqH7GuUvwuI+HyNSrJfXcQ9u5bSQAyk9P9RC D2VPckq9eU/bx3m7JML2ox3vUA== X-Google-Smtp-Source: ACHHUZ5Nz9hDpCmkLdWUhuLiAt8onJradFD54FqAjz80PahnPVGnxViBLEztsg1MfOKyjjlfsdc/oQ== X-Received: by 2002:a05:6a20:c90b:b0:10b:cb87:f5e with SMTP id gx11-20020a056a20c90b00b0010bcb870f5emr5127666pzb.45.1685556984785; Wed, 31 May 2023 11:16:24 -0700 (PDT) Received: from [192.168.50.116] ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001ae5d21e95csm1715511plf.117.2023.05.31.11.16.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 11:16:24 -0700 (PDT) Message-ID: Date: Wed, 31 May 2023 11:16:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] testsuite: Unbork multilib testing on RISC-V (and any target really) Content-Language: en-US To: Jeff Law , gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Palmer Dabbelt , Philipp Tomsich , Christoph Mullner , gnu-toolchain@rivosinc.com References: <20230531162534.119952-1-vineetg@rivosinc.com> <20230531162534.119952-2-vineetg@rivosinc.com> <3b892afc-44fa-b269-57ed-919346e90ecf@gmail.com> From: Vineet Gupta In-Reply-To: <3b892afc-44fa-b269-57ed-919346e90ecf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 5/31/23 10:57, Jeff Law wrote: > > > On 5/31/23 10:25, Vineet Gupta wrote: >> Multilib testing on trunk is currently busted (and surprisingly this >> affects any/all targets but it seems nobody cares). We currently get the >> following splat: > I wouldn't say that nobody cares, it just hasn't bubbled up on > anyone's priority list yet (most developers aren't working on targets > that make heavy use of multilibs). Pardon my theatrics :-) > But probably more importantly, this problem seems to not be triggering > on all multilib targets.  For example, I just examined my tester's > build logs and couldn't see this on the H8/300 or V850 ports.  Which > begs the question, why? Are just in case, this is not running a subset using some stray RUNTESTFLAGS. Yes I'm curious to see why others are not seeing it. Could you rerun upstream with following debug (and avoid -j when running the testsuite just to serialize the logs - the problem does happen for -j runs too though). Then in the logs we could see if init/finish get out of sync around the culprit file (or my case at least) ---> diff --git a/gcc/testsuite/lib/torture-options.exp b/gcc/testsuite/lib/torture-options.exp index dfb536d1d96c..95a6f818fded 100644 --- a/gcc/testsuite/lib/torture-options.exp +++ b/gcc/testsuite/lib/torture-options.exp @@ -22,6 +22,8 @@  proc torture-init { args } {      global torture_without_loops global_with_loops +    send_user "\n\n===  torture-init\n" +      if [info exists torture_without_loops] {         error "torture-init: torture_without_loops is not empty as expected = \"${torture_without_loops}\""      } @@ -116,6 +118,8 @@ proc set-torture-options { args } {  proc torture-finish { args } {      global torture_without_loops torture_with_loops +    send_user "\n\n===  torture-finish\n" +      if [info exists torture_without_loops] {         unset torture_without_loops      } else { --->8--- FWIW I'd like to be able to test stuff cross-arch too (at least x86, aarch64 and a few others). Thx, -Vineet