From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: MPS: Please check if scratch/igc builds with native compilation Date: Tue, 21 May 2024 12:57:06 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii , Helmut Eller To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 21 18:58:10 2024 Return-path: Envelope-to: ged-emacs-devel@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 1s9SoU-0000aR-IG for ged-emacs-devel@m.gmane-mx.org; Tue, 21 May 2024 18:58:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9SnV-0001x8-AQ; Tue, 21 May 2024 12:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9SnT-0001wv-Nj for emacs-devel@gnu.org; Tue, 21 May 2024 12:57:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9SnT-0003Ti-Dl; Tue, 21 May 2024 12:57:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=lfSI/vYPCpvcv9C0stsdMuL1Unwkntmmn/6vMHYaMZ8=; b=Osugi6U8zFA03T7w0nPO XL7GUxjXE8gtBMh/FHpkre2XyWZ/15O+vxjrOspLJX6NDYFIgvXS4aO2e1LFEuJIymhKq9OxJ2TEs 2X8wlqUNiNLgTegNtEqOB3ReixI8fNlWTV/pNlVIi+5ssPgnRWqo4eaAZjmB4JNDh0U87mDd3ExGx VIsFq92pI2WetgHZW8vLUF3aBCgf5XXgcvj7aGsjVcm7c1Cb4D+UZEgbFe3Kg4qC7feF5NHEMUP8r iwxeY0Sm7xJ3S9tvVOKPxScpC91zhGn3mbHhUov1PZYO3GAmMpSymFKNi/C/hyAzg8d/u8dWVR6Pd rXn5+lboY7PLUA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s9SnS-0004uF-Or; Tue, 21 May 2024 12:57:06 -0400 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 21 May 2024 16:00:08 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319445 Archived-At: Gerd M=C3=B6llmann writes: > I'm throwing the towel now wrt to native compilation + MPS on macOS. It > fails here both on arm64 and x86_64 on macOS 14. It's a long story what > all I tried to debug this, let's me just say I suspect, with the highest > probability among all the possibilited, a bug in MPS, without me being > able to point to it. Gut feeling. Anyway - it was an experiment. > > What I'd like to ask anyone who can is to try building scratch/igc with > native compilation (default) and --enable-checking=3Dall. Please tell your > OS, and if you get assertion failures. Maybe do 2 or more builds. > > This could help to assess if scratch/igc is viable. > > I currently think it isn't on macOS, to be honest. Hi Gerd, I tried bootstrapping scratch/igc (my MPS is latest master) and got the following assertion triggerd on GNU/Linux x86_64. igc.c:345: Emacs fatal error: assertion failed: h->obj_type !=3D IGC_OBJ_FWD Fatal error 6: Aborted Backtrace: ../src/bootstrap-emacs(+0x226e47)[0x5d4f66028e47] ../src/bootstrap-emacs(+0x6047d)[0x5d4f65e6247d] ../src/bootstrap-emacs(+0x34a13c)[0x5d4f6614c13c] ../src/bootstrap-emacs(+0x34aebe)[0x5d4f6614cebe] ../src/bootstrap-emacs(+0x34d6d8)[0x5d4f6614f6d8] ../src/bootstrap-emacs(+0x291c51)[0x5d4f66093c51] ../src/bootstrap-emacs(+0x291dbd)[0x5d4f66093dbd] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d61737369676e2d6f702d70_comp__assign_op_p_0+0x27)[0x7e2cc415= 6a77] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d7373612d72656e616d652d696e736e_comp__ssa_rename_insn_0+0x43= d)[0x7e2cc419139d] ../src/bootstrap-emacs(+0x3063a4)[0x5d4f661083a4] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d7373612d72656e616d65_comp__ssa_rename_0+0x21e)[0x7e2cc41920= 0e] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_100+0x1c0)[0x7e2cc419= 2c10] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] ../src/bootstrap-emacs(+0x2b6014)[0x5d4f660b8014] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d667770726f70_comp__fwprop_0+0x35)[0x7e2cc4197c35] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0x7d6)[= 0x7e2cc41a0976] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0x186)[= 0x7e2cc41a1526] ../src/bootstrap-emacs(+0x2a9bac)[0x5d4f660abbac] /home/andcor03/emacs4/native-lisp/30.0.50-00c2e4a4/comp-7672a6ed-f5e09f0c.e= ln(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_com= pile_0+0x144)[0x7e2cc41a1884] [...] Not sure is the same you see. Anyway this is the native compiler that (after being native compiled) is compiling something else. If you need more details I can look into with gdb. Thanks Andrea PS I'm rebuilding with -j1 to make it reproducible here.