From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: native comp Date: Fri, 03 May 2024 08:29:42 +0200 Message-ID: References: <87frv06ybm.fsf@gmail.com> <87v83w5fvj.fsf@gmail.com> <87bk5n5th2.fsf@gmail.com> 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="31301"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Andrea Corallo , Eli Zaretskii , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 03 08:30:11 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 1s2mQs-00081E-St for ged-emacs-devel@m.gmane-mx.org; Fri, 03 May 2024 08:30:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2mQb-0002JM-Oi; Fri, 03 May 2024 02:29:53 -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 1s2mQW-0002IZ-S5 for emacs-devel@gnu.org; Fri, 03 May 2024 02:29:50 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2mQV-0000RU-5H; Fri, 03 May 2024 02:29:48 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-51f3a49ff7dso1591956e87.2; Thu, 02 May 2024 23:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714717784; x=1715322584; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wQ4dgwlqcEPjTO+MuBmxodO/hDxNWh6WxM9ZHX7Q9+A=; b=WuOhc4R4OpRGD47a26Onawf4GJyn8UmBNG3UUBE3g/I/Y7yWW4UuV2L/9xJqU2nRfG xButTu7yhXVkhg5R9EpiG2yAvmIUexZZQ6SvBBwBckshpkXg2RI03e9pMh+Y9igGtWpM SemkE58ZlMeDxEn/ochNhwXYM3CAs6OioPPjn8XQ9OPohTkw+XRjteMyS+fwRRGHYzfU 5cTDahiKMiOL3+BQa6SleFakAKDkvKkAigSGaf7s1X9llRE5gKeeDE0D2TTHcerryaN5 bQmL8YMs3H31aVbEkPaILQhcQu6wO4iwlCU7lSVyNOBUh3bGxXC1/WytvW47eZaPtKGl x3Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714717784; x=1715322584; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wQ4dgwlqcEPjTO+MuBmxodO/hDxNWh6WxM9ZHX7Q9+A=; b=tsmLe31qdss7+OND3l/I63GJmBQefcu/HVpsUZ8zInJc3DQ+OF193koeSh1/+1jkWB Psol33BZDyEF70Qc5bSiNrUvkO/pmf1lYA97oWfD7cE7M8H7kJMN0NyLLWqgDoaED16N xLHZXTRbyQiBZWTSpQunjdQylV3uQAjbscuKHUXWq7c9Cl79n9/e522tPpP9t8sQBfi0 GTbD4fmeSytkYRFK12ns5vJAkC9wtJYsAaaJpTZjqy8kECgYUit+0XRWOZdlJQDdfASl gQ6xXWHmSAqGsiL4WG7W2FsWiR74xtbiQ61y0WOm29jEq0kpwp2FwkZ1hGpj19HQynU8 Tyvg== X-Forwarded-Encrypted: i=1; AJvYcCX8btOc1DpebN6u835iAN1Q+6LeW4wKXxgvzPZ+4nLX6VQY9HTTUVCPSLhg8QcUWuxSqp5728j6ldCu+tTc3DiDBtuWOEiidWEdgdmfbTx3SP0= X-Gm-Message-State: AOJu0YzlHDeaYn4wzh2TsJoTAVfO41wyVr98r+c7qY8NTNf/5XaSP3XW JBJonBjD11T/j3DLy39wx2wnNlh3g36CsXmwLKvru20ocPD/W0jUSLrYXA== X-Google-Smtp-Source: AGHT+IGw/STrT8svq0+u1UHFDz4CU1tSzD/T0zh+w8ZKO22kUums32/RwnW6vDhx4V4qWHUovdjGpA== X-Received: by 2002:ac2:4214:0:b0:51e:4729:79cf with SMTP id y20-20020ac24214000000b0051e472979cfmr1082444lfh.58.1714717784068; Thu, 02 May 2024 23:29:44 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36a94.dip0.t-ipconnect.de. [217.227.106.148]) by smtp.gmail.com with ESMTPSA id a21-20020a170906369500b00a596ea236f4sm1358336ejc.212.2024.05.02.23.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 23:29:43 -0700 (PDT) In-Reply-To: <87bk5n5th2.fsf@gmail.com> (Helmut Eller's message of "Fri, 03 May 2024 07:56:25 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:318638 Archived-At: Helmut Eller writes: > On Thu, May 02 2024, Gerd M=C3=B6llmann wrote: > >>> make NATIVE_DISABLED=3D1 seems to do the trick. I run the testsuite wi= th >>> the comp-tests-bootstrap disabled; the other tests simply passed. Pdump >>> issue? >> >> No idea. I need some inspiration. > > For me, native compilation seems to work as it should. How do I see > that something is broken? Is this a macOS only problem? Ah, good idea! Maybe it's macOS... I do git clean -xdf, then configure with native comp and build. This step dumps bootstrap.pdmp successfully, loading all dumped stuff from sources. After the dumping, some preloaded files are native-compiled, among them macroexp.el. After that step, I kill the build (it will abort later on anyway). Then run temacs with the equivalent of the below in GDB target create temacs settings set -- target.run-args --batch -l loadup --temacs=3Dpbootstrap = --bin-dest --eln-dest command alias go process launch --working-dir . settings set target.disable-aslr false This dumps bootstrap.pdmp, but this time macroexp.eln exists and gets loaded for the dump. Please note the ASLR setting. Without ASLR, it doesn't fail for me. I sometimes have to run the stuff several times before it fails, and it fails in different ways. I guess the interesting ones are aborts and alike.