Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1Dm2-000537-3I for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2022 21:08:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o1Dm0-0004rT-Mk for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jun 2022 21:08:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1Dm0-0004rJ-AA for pgsql-hackers@lists.postgresql.org; Tue, 14 Jun 2022 21:08:28 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o1Dlv-0008Iw-QM for pgsql-hackers@postgresql.org; Tue, 14 Jun 2022 21:08:27 +0000 Received: by mail-il1-x130.google.com with SMTP id h18so7496866ilj.7 for ; Tue, 14 Jun 2022 14:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KiagmgrKSVxCnW9xj1ay1SQnWdQxv8ByvQvOgfVJqag=; b=gu3MHpkixm+aeHffzLm875BV8AdSIRhZ7x/ozBakdJMOI7QRhKNFc1lTI21BdxWS/9 QSMBUsNcbWP4CooLvFGqlmAnar6Ad3o9XmdLC0P6bHEBpQpURQuQMkSEKUZ5gfEJwCw3 12lEgtMqktBXC0JhAhRxgJvn/u06FKnDDRodTwiI3ZBzj9hBkAQ+ux0K+hTCJ2aRqym5 Hh22FOkVAyi9Oo36oVsCIoZP9Mu3otoszv6vBw3/LzVxnmYVQu4HX9Rc+LCfLbV/3Vk1 FBJ065xzYEalDo2+kn2Vvu/TdP8yqzmTckjWtoBD/XcutxJS1U1V22Mb1vlBX3JzKY7b aMZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KiagmgrKSVxCnW9xj1ay1SQnWdQxv8ByvQvOgfVJqag=; b=KjziEehOz80bSsvWunD5Z4EowBUuIbpPCdkn4wSF4uWgMFITohewDZ/X3OLt4HEGZr NGTmvUWxCqYKfn4p9Lu8Xly+TqpV9ijLhb5YE4LsM30eDdft76d90wuqELzl4n10IttJ wUPQxqCQqAsYFD8hM+1Z3ZMgkI480E8TbxFTm+oLppBzn7jSNdzboPcVHv6w6Uzq/42z VPKh3kPKQXUUaPzGZ3LuRICtouwX8PQc1QrLMW5Y/mkEgFilD3v7rFzvGDNgW+DhdXbs ojzSzRcJqd2PdLe44KeiAlgeMsCTZHS8R60YNp8f1wzJxuCiNFaTOeyjyf9ef4Mi5oop l53w== X-Gm-Message-State: AJIora8yj6izTz2VU5Vgyml1MGBJb4DaBv+tl11Wb+n8ufsqRflWOXHb gL+XTuRchgCuTWxFf0fg/qs+Mw== X-Google-Smtp-Source: AGRyM1v1l0EJodli6R3waFmWPGHmygg3rIttqx8OvJ461N0GXaq0okHe8V7Ckp12I5DMBXtnlv9k/w== X-Received: by 2002:a05:6e02:1d14:b0:2d3:a75e:140b with SMTP id i20-20020a056e021d1400b002d3a75e140bmr4061642ila.61.1655240901315; Tue, 14 Jun 2022 14:08:21 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id bo8-20020a056638438800b0032ebaebb4d2sm5236439jab.50.2022.06.14.14.08.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jun 2022 14:08:20 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 5811B80058D; Tue, 14 Jun 2022 16:08:19 -0500 (CDT) Date: Tue, 14 Jun 2022 16:08:19 -0500 From: Justin Pryzby To: Andres Freund Cc: Tom Lane , Robert Haas , Andrew Dunstan , pgsql-hackers@postgresql.org, Thomas Munro , Melanie Plageman , Peter Eisentraut , Daniel Gustafsson Subject: Re: ccache, MSVC, and meson Message-ID: <20220614210819.GW29853@telsasoft.com> References: <20220522232606.GZ19626@telsasoft.com> <20220524193059.n432rlzezckxr6x2@alap3.anarazel.de> <20220524195202.GK19626@telsasoft.com> <20220524203039.xyqjggtytsyizsbl@alap3.anarazel.de> <20220524221747.GM19626@telsasoft.com> <20220525044817.kczou2nkbtk46itj@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525044817.kczou2nkbtk46itj@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, May 24, 2022 at 09:48:17PM -0700, Andres Freund wrote: > Hi, > > On 2022-05-24 17:17:47 -0500, Justin Pryzby wrote: > > Also, /O2 cuts ~3 minutes off the test time on cirrus, which seems worth it, > > except that it omits frame pointers, which probably breaks debuggability. > > It likely also causes us to use the non-debug C runtime? Which IMO would be > bad, it does detect quite a few problems that are otherwise hard to find. > > > > And when I pass /Oy- to "avoid omitting" frame pointers, several tests crash... > > Huh. Do you get a backtrace containing anything remotely meaningful? I looked at this again. The issue isn't caused by optimizations, but (apparently) by an absence of options in "msbuild --buildtype plain". Adding /MD or /MDd fixes the issue. That's done in the existing build system here: src/tools/msvc/MSBuildProject.pm: runtime => 'MultiThreadedDebugDLL' src/tools/msvc/MSBuildProject.pm: runtime => 'MultiThreadedDLL' https://cirrus-ci.com/task/4895613501308928 BTW: vcvarsall isn't needed in the "check_world" scripts. -- Justin