From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Known case that emacs lisp code doesn't work correctly if native compilde Date: Mon, 30 Aug 2021 13:17:47 -0700 Message-ID: References: <20210831.033056.146651018022029027.yasu@utahime.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4585"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yasuhiro Kimura , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 22:19:22 2021 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 1mKnkY-0000zI-9Y for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 22:19:22 +0200 Original-Received: from localhost ([::1]:56012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKnkW-0007dC-Dw for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 16:19:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKnj9-0005k7-FI for emacs-devel@gnu.org; Mon, 30 Aug 2021 16:17:55 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:33457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKnj7-0005Is-TX for emacs-devel@gnu.org; Mon, 30 Aug 2021 16:17:55 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id c17so14586114pgc.0 for ; Mon, 30 Aug 2021 13:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=f0jQtkxOcK8Uf8gysjEZ1EGULmN1EgoH4AQLTtPGlyo=; b=rO/vbm5M4OWfV9mISAUclB5hxSXcGJGNC60x7G4aA+F8pvmaNeNrcx4E2Umj85Icja wJvLOfiTBTQZrLNExLxME+7x9yH5mR03+rx0IjYbhRFihaq5A2reAkxNGlycG9zWtrim D5BPEvfHnZaOBp8jTrBnDIylpN0f3e1HP+dxETuStHTwfKGIrlO+2Xh+LIVGzDYS6Z/z w6QtR0tSl2F1nWL3hSN6+l7GvxKLASyI/KwxLuerqiNm/jGkMGS9S+1e31r3JupstpxR ywuqae9+86JMWpWtlnviuTD6oJaKvBm+/Y5Sb0Vcxg4N3KCJeM0+RnP6+TGyDT/NGXVo MItA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=f0jQtkxOcK8Uf8gysjEZ1EGULmN1EgoH4AQLTtPGlyo=; b=cwMxp2ND52dEF0qQQFrRimySEq1qgJRIivdDj6Wr7vY4uCI9WRmWQ/OHavW93yoDJF BkaD6eQcwy6oHPFYBJnHcj4P0xdk/i2lnJ8dhhiebqjMODoO4VOCLAm5yaW9I0PMdWww 9reQUTIpuxD9yj91Uh3455Qnco4BHW43bAbgbdroihQ5kf4XqMqksHVTK0YkX8AdWmsJ D5ESCUXitufw3MkqAgG0Q0op7NWvK740JLIw4nedS3ABcrTFCP2tmtdJrem2bHf1F4St Q71NgsvwgOWjiAQPsVhGJY/mSas6RS/ZQveEjLkgi5JCjdGm8SsBBCTPovd6aDfaXjPS miPg== X-Gm-Message-State: AOAM531MhmmY6VQG6F1ZLMbkAtoY2HRWE7ZdCWLqdEsPSxxCRfIDWPjE 0jdfRvS/V4qCAK/gXgN183YZyVcy2m6LFw== X-Google-Smtp-Source: ABdhPJwyEk02bDN8wmCBhW0NSDEdYFfWrhcVvFfUlm4VMqjrHC9GGTmVHI1qPx6gfGS1Ugc+rB3YdQ== X-Received: by 2002:a05:6a00:238b:b0:3e1:9c51:b737 with SMTP id f11-20020a056a00238b00b003e19c51b737mr24806795pfc.29.1630354671036; Mon, 30 Aug 2021 13:17:51 -0700 (PDT) Original-Received: from raman-glaptop (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id 66sm10749169pfx.29.2021.08.30.13.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 13:17:50 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 30 Aug 2021 15:14:28 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=raman@google.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -171 X-Spam_score: -17.2 X-Spam_bar: ----------------- X-Spam_report: (-17.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_XBL=0.375, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:273553 Archived-At: Stefan Monnier writes: I remember there was a thread on this earlier (one I perhaps started) where there was an assertion that perhaps .eln files should be derived from the .elc files, rather than from the .el files to avoid compilation order issues. >> I would like to investigate it but probably it will take for a while. >> So before starting it I would like to ask one question. > > I think you should open a bug report for that. > >> Is there any known case that some type of emacs lisp code doesn't work >> correctly if it is native compiled? > > IIRC native compilation recompiles the .el files instead of starting > from the .elc files, so if compilation of the .el to .elc is only > correct depending on specific packages being loaded in a specific order > it may happen that the native compilation will generate invalid code > (this is typically the case for large packages which force you to > compile the package via a `make` rule which takes care of preloading > the necessary files in the right order). > > So far this has been a hypothetical problem, tho, so please report it so > we can better investigate. > > > Stefan > > --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8