From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46495: 28.0.50; [native-comp] Build fails for 32bit --with-wide-int Date: Wed, 31 Mar 2021 16:33:57 +0300 Message-ID: <837dlnih16.fsf@gnu.org> References: <86y2fq93zj.fsf@gmail.com> <83lfbqbq3g.fsf@gnu.org> <868s7pwvq8.fsf@gmail.com> <28FB9567-61E6-4083-8711-6CF6C8A493F4@gnu.org> <86o8gjheaw.fsf@gmail.com> <865z2p0zrq.fsf@gmail.com> <86pn0w59nj.fsf@gmail.com> <83y2eap33a.fsf@gnu.org> <83lfa6kl8s.fsf@gnu.org> <83h7ktlwuy.fsf@gnu.org> <65e12b1d547420e10a19cdad6a33198926abb527.camel@redhat.com> <837dlpkrma.fsf@gnu.org> <834kgtko2p.fsf@gnu.org> <83mtujivuj.fsf@gnu.org> <6e8b54e5d93d4e311b9db56adb538ae6aa848c60.camel@redhat.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37456"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, andrewjmoreton@gmail.com, 46495@debbugs.gnu.org To: David Malcolm Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 31 15:34:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRaz7-0009cd-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 15:34:13 +0200 Original-Received: from localhost ([::1]:45812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRaz6-0002mF-Kz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 09:34:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRayw-0002ll-Ng for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 09:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRayw-0006KN-8v for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 09:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRayw-0002xQ-5F for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 09:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Mar 2021 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46495 X-GNU-PR-Package: emacs Original-Received: via spool by 46495-submit@debbugs.gnu.org id=B46495.161719763211337 (code B ref 46495); Wed, 31 Mar 2021 13:34:02 +0000 Original-Received: (at 46495) by debbugs.gnu.org; 31 Mar 2021 13:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:53853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRayl-0002wm-SK for submit@debbugs.gnu.org; Wed, 31 Mar 2021 09:33:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRayj-0002wa-QU for 46495@debbugs.gnu.org; Wed, 31 Mar 2021 09:33:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59837) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRaye-00068P-8c; Wed, 31 Mar 2021 09:33:44 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3167 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lRayd-0005eJ-Cf; Wed, 31 Mar 2021 09:33:44 -0400 In-Reply-To: <6e8b54e5d93d4e311b9db56adb538ae6aa848c60.camel@redhat.com> (message from David Malcolm on Wed, 31 Mar 2021 09:03:33 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203360 Archived-At: > From: David Malcolm > Cc: akrl@sdf.org, andrewjmoreton@gmail.com, 46495@debbugs.gnu.org > Date: Wed, 31 Mar 2021 09:03:33 -0400 > > > David, what's the story with these temporary directories? > > They're meant to be cleaned up automatically by libgccjit: on > gcc_jit_result_release for a successful compilation, or at the end of > gcc_jit_context_compile* for a failed compilation. > > The removal code is in gcc::jit::tempdir::~tempdir in gcc/jit/jit- > tempdir.c, maybe there's a bug there? (perhaps only affecting Windows?) > It calls unlink on everything it "knows" about, and them rmdir on the > directory. I see now that I'm not checking for errors on those unlink > and rmdir calls. maybe you are relying on the Posix semantics whereby you can remove files that are still in use, and the OS will remove them when the last user closes the file? That's not going to work on Windows, you need to close first and remove later. When does the object go out of scope, and its destructor called? > Is the code setting GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES to true, > perhaps? No. the code is just tut01d-hello-world.c as it is given here: https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html The only variation (as described in my previous messages) is that I added gcc_jit_context_set_bool_option ( ctxt, GCC_JIT_BOOL_OPTION_DEBUGINFO, 1); in one of the variants I compiled. But the variant with the above added actually behaves correctly and removes the temporary directory upon exit.