From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id DF2DB3858D20 for ; Thu, 25 May 2023 03:43:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DF2DB3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-64f47448aeaso1288679b3a.0 for ; Wed, 24 May 2023 20:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684986213; x=1687578213; 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=dVMzPCn0Dw6PZGTAjMMqe+0BDWOjhddZJ+R9+NXbo8M=; b=KtN+A5FqPdIcflmaHNn3lt1ENfHmvpEkMNvUaSeXqryNt7hGb6myJnwGMtJ36jrdwN 4mAG8TLhYbEEBmUE4AD7zde6BCXfnHjlMgOZVpicbpAFBEmQfutLfJISdEkFbd+Ga8g2 vdgSpSrfMZv2CyhIHjhCrqdrAZoS4vPI+l6x5mFDSDu2cge9wL00fp4HBSDsIXjjUh0o nRJcK1F9RT/BWf2HzwSNL/1Y6DGUhjc0X1VU5JbcM+2wzLGTtFsiqKoy7et3+zD3Mcbv bwdTrckmz/YnVJ7Okji9G1ogxWn+rLuZ4CA/V5bJ9q3i+Jn5XL/IxJL7w5tanA0AhH8f TLQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684986213; x=1687578213; 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=dVMzPCn0Dw6PZGTAjMMqe+0BDWOjhddZJ+R9+NXbo8M=; b=cl1ioRytmmaqAa0vB4O4Hk1+mNQn5J4wq696NQl+Zq+6GdaXSWw1IZMjv+16RhTzGb 7gdG7gWX5sol9/NOpeWAkAWeL1UQx6F4rGkeBNBe6A+Me86zlqfCFxdLGRbF1LzdKZlA cuBx8y4RS18vi+uT1J3350+SpxEMrj5xAUdrL3qbIuie6yrsAfRsb5URhLGaP0C80mDE IHIKukvFYFgGtXq7Ju60VXYAd4EKrfbYEexkSwS2UvAsGazUJwssDXlrmv5EcH5DhdKp mcIThaB8hqixu1HLEOEqdfGQSLU0nBpjz3eCv2nbQTQn+jeA/UUNx6IlnzrD5Gr3Zd4i HHlg== X-Gm-Message-State: AC+VfDxvOPOGEUups0IBPIhWS8+JMgvJeMh9ceQHkaZJ4kp0KkPq5RZF ZsymbzJJtcivqNhCZWVKfwI= X-Google-Smtp-Source: ACHHUZ7/y3L9oI54uOFXOvXB1jE/h34sQLVrLZkHPsUJIniTsLfQ2zRLnw2v46DjEgFeqnhW1usyBA== X-Received: by 2002:a05:6a20:2453:b0:104:d028:ffe8 with SMTP id t19-20020a056a20245300b00104d028ffe8mr19621218pzc.45.1684986212565; Wed, 24 May 2023 20:43:32 -0700 (PDT) Received: from ?IPV6:2601:681:8d00:265::f0a? ([2601:681:8d00:265::f0a]) by smtp.gmail.com with ESMTPSA id r21-20020a63fc55000000b00530914c3bc1sm84372pgk.21.2023.05.24.20.43.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 May 2023 20:43:32 -0700 (PDT) Message-ID: <66780d8b-41bf-95ac-3266-c4025636757e@gmail.com> Date: Wed, 24 May 2023 21:43:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: RISC-V Bootstrap problems Content-Language: en-US To: Palmer Dabbelt , Vineet Gupta Cc: kito.cheng@sifive.com, gcc-patches@gcc.gnu.org, Kito Cheng , Patrick O'Neill , Jeff Law , macro@embecosm.com, "juzhe.zhong@rivai.ai" References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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/24/23 17:13, Palmer Dabbelt wrote: > On Wed, 24 May 2023 16:12:20 PDT (-0700), Vineet Gupta wrote: [ ... big snip ... ] >> >> Never mind. Looks like I found the issue - with just trial and error and >> no idea of how this stuff works. >> The torture-{init,finish} needs to be in riscv.exp not rvv.exp >> Running full tests now. > > Thanks! Marginally related. I was able to bisect the "hang" when 3-staging the trunk on RISC-V with qemu user mode emulation. So it wasn't actually hanging, but after the introduction of segment intrinsics the compilation time for insn-emit explodes -- previously I could do a full 3-stage bootstrap, build the glibc & the kernel, then test c/c++/fortran in ~10 hours. Now just building insn-emit.o alone takes ~10 hours in that environment. I suspect (but have not yet confirmed) that we should see a huge compile-time spike in cross builds as well, though obviously it won't be as bad since we're not using qemu emulation. Clearly something isn't scaling well. I don't know if we've got a crazy large function in there, a crazy number of functions or something that's just triggering a compile-time scaling problem. Whatever it is, we probably need to address it. jeff