GNU bug report logs - #58318
28.2; Emacs installed from package won't work with MinGW

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Bartosz Bubak <bartosz.bubak@HIDDEN>; dated Wed, 5 Oct 2022 20:34:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 12 Oct 2022 12:50:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 12 08:50:54 2022
Received: from localhost ([127.0.0.1]:56041 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oibCI-0005gO-11
	for submit <at> debbugs.gnu.org; Wed, 12 Oct 2022 08:50:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45682)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oibCG-0005gB-6K
 for 58318 <at> debbugs.gnu.org; Wed, 12 Oct 2022 08:50:52 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48726)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oibCA-0004KS-OS; Wed, 12 Oct 2022 08:50:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=unceYX0qxyW0n51aVoRrVXXEcu/MbyG3wrv2W1ZF3kE=; b=JeIS8PmsoudQ
 tdHCrJj3YduBj/3dbfNDKXVjLVqMSnFtcXg7sbBpXmPTtsaU9o+yf0QYJO0dGOfjko7LHxMhILJMH
 dPcKkGe29qoHhV5fxk0O4hEHT41cI9mTYdk3HGbXlCadjFaNYU1f3x3mmi230FlDolyViX8b/X39F
 9Oe6YvxScFm4qMwrd3ZF1fJ2VOpD4aRt6HFjVjd4SY26ihaDR0KbvzVpBfxG7uU8QoAWmHIDB2FOp
 5qO134mYG1rg+wvb7O/4HaLETve1deMIOGQnJXHIyTHdhp+JhSAEJSFRHz0jCAEoqnmx2i1zDiWTJ
 Udkxt7awF+SQqCyGYlbS1Q==;
Received: from [87.69.77.57] (port=2288 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oibCA-0003Dn-7T; Wed, 12 Oct 2022 08:50:46 -0400
Date: Wed, 12 Oct 2022 15:50:57 +0300
Message-Id: <83ilkpcij2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjfr0zdzcek.fsf@HIDDEN> (message from Andrea Corallo on Wed, 
 12 Oct 2022 08:14:43 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
 <xjfh70a17w5.fsf@HIDDEN> <834jwadurj.fsf@HIDDEN>
 <xjfzge2ytr4.fsf@HIDDEN> <83wn95d3bi.fsf@HIDDEN>
 <xjfr0zdzcek.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
>         bartosz.bubak@HIDDEN
> Date: Wed, 12 Oct 2022 08:14:43 +0000
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> make bootstrap on my dev machine (-j16) is ~ 3min 10 secs.
> >
> > I meant the time to build a release tarball, which should be much
> > shorter.  Sorry for being unclear.
> 
> Apologies on my side, I'm not very much into release tarball generation.
> If you specify what's the command you are referring to I can time it and
> report.

It isn't too important, so feel free to disregard.  But if you have a
few minutes, then unpack the Emacs 28.2 release tarball and build it
with -j16.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 12 Oct 2022 08:14:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 12 04:14:49 2022
Received: from localhost ([127.0.0.1]:55615 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oiWt7-0007kO-8N
	for submit <at> debbugs.gnu.org; Wed, 12 Oct 2022 04:14:49 -0400
Received: from mx.sdf.org ([205.166.94.24]:57893)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oiWt3-0007kE-BY
 for 58318 <at> debbugs.gnu.org; Wed, 12 Oct 2022 04:14:48 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29C8EhXU027349
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Wed, 12 Oct 2022 08:14:43 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83wn95d3bi.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 12 Oct
 2022 08:21:53 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
 <xjfh70a17w5.fsf@HIDDEN> <834jwadurj.fsf@HIDDEN>
 <xjfzge2ytr4.fsf@HIDDEN> <83wn95d3bi.fsf@HIDDEN>
Date: Wed, 12 Oct 2022 08:14:43 +0000
Message-ID: <xjfr0zdzcek.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
>>         bartosz.bubak@HIDDEN
>> Date: Tue, 11 Oct 2022 20:45:19 +0000
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> >> From: Andrea Corallo <akrl@HIDDEN>
>> >> Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
>> >>         bartosz.bubak@HIDDEN
>> >> Date: Tue, 11 Oct 2022 19:23:54 +0000
>> >> 
>> >> Okay 3744720904 adds 'trampolines' as target.  The trampolines are
>> >> deposed in the 'native-lisp' directory so it will do the job for
>> >> packaging the release.
>> >
>> > Thanks.
>> >
>> >> Build time for this target is on my machine ~ 1min 30sec.
>> >
>> > How does this compare to the rest of the build?
>> 
>> make bootstrap on my dev machine (-j16) is ~ 3min 10 secs.
>
> I meant the time to build a release tarball, which should be much
> shorter.  Sorry for being unclear.

Apologies on my side, I'm not very much into release tarball generation.
If you specify what's the command you are referring to I can time it and
report.

BR

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 12 Oct 2022 05:21:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 12 01:21:51 2022
Received: from localhost ([127.0.0.1]:55333 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oiUBj-0003Cj-Go
	for submit <at> debbugs.gnu.org; Wed, 12 Oct 2022 01:21:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35154)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oiUBg-0003CV-KQ
 for 58318 <at> debbugs.gnu.org; Wed, 12 Oct 2022 01:21:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38274)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oiUBa-0001Ic-Sx; Wed, 12 Oct 2022 01:21:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=xKCFJtquMoG+rGtdp5nsztuU7cXR36XDqhjWK9T7OEU=; b=C+F93xv/ks9m
 9NKphggcKN5cFeZhHFrgbyLOOG+lcXY0REWbVcpmsk8M6Qc2AeReKliIIiTUDbVC4UXv8ZFUcyvtk
 d/2BnsGPdLwHzWfA8GsYULMxRQ5L09PgXKiFvTgU8xbRqzYd9tkaRxY8EfqY9rDn3lThSURM5TDQt
 T/7xmjFRKySWhtzFBq9tGDmhXCp1RbyzB8xctXziPVKRUvkmVXgMsZmhNE+Ns2kJh2Fclq822q4Tj
 N1Hu3UAh0GvkF9e1qKPg8HxzqWf4f+A0ue50cdyf2gu9L2+Sh8poIXltV09+HOyaA0v//l7A+hbAa
 WrkBw7fNbpYtwsXxrDXnlQ==;
Received: from [87.69.77.57] (port=2110 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oiUBa-0007ko-1l; Wed, 12 Oct 2022 01:21:42 -0400
Date: Wed, 12 Oct 2022 08:21:53 +0300
Message-Id: <83wn95d3bi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjfzge2ytr4.fsf@HIDDEN> (message from Andrea Corallo on Tue, 
 11 Oct 2022 20:45:19 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
 <xjfh70a17w5.fsf@HIDDEN> <834jwadurj.fsf@HIDDEN>
 <xjfzge2ytr4.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
>         bartosz.bubak@HIDDEN
> Date: Tue, 11 Oct 2022 20:45:19 +0000
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Andrea Corallo <akrl@HIDDEN>
> >> Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
> >>         bartosz.bubak@HIDDEN
> >> Date: Tue, 11 Oct 2022 19:23:54 +0000
> >> 
> >> Okay 3744720904 adds 'trampolines' as target.  The trampolines are
> >> deposed in the 'native-lisp' directory so it will do the job for
> >> packaging the release.
> >
> > Thanks.
> >
> >> Build time for this target is on my machine ~ 1min 30sec.
> >
> > How does this compare to the rest of the build?
> 
> make bootstrap on my dev machine (-j16) is ~ 3min 10 secs.

I meant the time to build a release tarball, which should be much
shorter.  Sorry for being unclear.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 11 Oct 2022 20:45:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 16:45:31 2022
Received: from localhost ([127.0.0.1]:54980 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oiM82-0002JP-Ue
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2022 16:45:31 -0400
Received: from mx.sdf.org ([205.166.94.24]:52181)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oiM7y-0002JD-HV
 for 58318 <at> debbugs.gnu.org; Tue, 11 Oct 2022 16:45:30 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29BKjJLg017292
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Tue, 11 Oct 2022 20:45:20 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <834jwadurj.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 11 Oct
 2022 22:29:04 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
 <xjfh70a17w5.fsf@HIDDEN> <834jwadurj.fsf@HIDDEN>
Date: Tue, 11 Oct 2022 20:45:19 +0000
Message-ID: <xjfzge2ytr4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
>>         bartosz.bubak@HIDDEN
>> Date: Tue, 11 Oct 2022 19:23:54 +0000
>> 
>> Okay 3744720904 adds 'trampolines' as target.  The trampolines are
>> deposed in the 'native-lisp' directory so it will do the job for
>> packaging the release.
>
> Thanks.
>
>> Build time for this target is on my machine ~ 1min 30sec.
>
> How does this compare to the rest of the build?

make bootstrap on my dev machine (-j16) is ~ 3min 10 secs.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 11 Oct 2022 19:29:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 15:29:04 2022
Received: from localhost ([127.0.0.1]:54896 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oiKw4-0006VN-J6
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2022 15:29:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oiKw0-0006Us-Lc
 for 58318 <at> debbugs.gnu.org; Tue, 11 Oct 2022 15:29:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43570)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oiKvv-0005sc-Dy; Tue, 11 Oct 2022 15:28:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=p7xlx2c0yUXZN7HIP3DcCc+UmzXEAyV6YbBrvPKaGKU=; b=iGPgeYmabbyg
 Wg/7Vt9QwiQ5h4S8u4PROdQf21R8zNz2Fxmr1juxyKmKqXXmFKT0muN+P7bx4Rz0Qnp3ltAuH6OnQ
 sp/TjAcCtV4aO6nU4C371Z9R+etE2ZWG80LW7KZ/9h5FnB/Mhh7HF2O2SztVL5C4mYdZbwxaq77DJ
 5R9ehtTTqF4PibobNbbNg9SvOvRG2XOKFnvWTmDEBLLRIv5Xe/CWh1N86ijGLfkhxiuNkU2YfeuQi
 sP2jAfUqDEboC6Qr9ak1+9XW1cLRxYBPjhlzftsTOPFGhEF8Fxdx8Te6IhBdUupSXEYmqS0IcCCLB
 +rNalmDUcxzQ/nK4eKDcbw==;
Received: from [87.69.77.57] (port=1591 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oiKvt-00054x-Sg; Tue, 11 Oct 2022 15:28:54 -0400
Date: Tue, 11 Oct 2022 22:29:04 +0300
Message-Id: <834jwadurj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjfh70a17w5.fsf@HIDDEN> (message from Andrea Corallo on Tue, 
 11 Oct 2022 19:23:54 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
 <xjfh70a17w5.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
>         bartosz.bubak@HIDDEN
> Date: Tue, 11 Oct 2022 19:23:54 +0000
> 
> Okay 3744720904 adds 'trampolines' as target.  The trampolines are
> deposed in the 'native-lisp' directory so it will do the job for
> packaging the release.

Thanks.

> Build time for this target is on my machine ~ 1min 30sec.

How does this compare to the rest of the build?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 11 Oct 2022 19:23:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 15:23:57 2022
Received: from localhost ([127.0.0.1]:54886 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oiKr7-0006Nd-Gp
	for submit <at> debbugs.gnu.org; Tue, 11 Oct 2022 15:23:57 -0400
Received: from mx.sdf.org ([205.166.94.24]:61748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oiKr6-0006NV-33
 for 58318 <at> debbugs.gnu.org; Tue, 11 Oct 2022 15:23:56 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29BJNsTU007468
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Tue, 11 Oct 2022 19:23:54 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <xjflepq1m3j.fsf@HIDDEN> (Andrea Corallo's message of "Sat,
 08 Oct 2022 13:28:00 +0000")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <xjflepq1m3j.fsf@HIDDEN>
Date: Tue, 11 Oct 2022 19:23:54 +0000
Message-ID: <xjfh70a17w5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, bartosz.bubak@HIDDEN,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Andrea Corallo <akrl@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> From: Corwin Brust <corwin@HIDDEN>
>>> Date: Fri, 7 Oct 2022 10:52:04 -0500
>>> Cc: Eli Zaretskii <eliz@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
>>> 	58318 <at> debbugs.gnu.org
>>> 
>>> On Fri, Oct 7, 2022 at 9:35 AM Andrea Corallo <akrl@HIDDEN> wrote:
>>> >
>>> > >
>>> > > OK, then let's go for precompiling all the trampolines AOT.
>>> >
>>> > The only downside might be build time, compiling a trampoline is quick,
>>> > 1000+ maybe not so much.
>>> >
>>> 
>>> If this will mostly affect those building Windows binaries *for
>>> redistribution*, perhaps it's not a big problem?  Based on my own very
>>> limited testing, it's fine for me.
>>
>> Right, so I think we need a special Makefile target to produce those
>> compiled trampolines (something like "make trampolines"), and that
>> target should be only used manually when building a binary
>> distribution, not when building the release tarball for use on the
>> same machine where it is built.
>>
>> Andrea, could you please come up with a patch for that?  Thanks.
>
> Right, will do.
>
>   Andrea

Okay 3744720904 adds 'trampolines' as target.  The trampolines are
deposed in the 'native-lisp' directory so it will do the job for
packaging the release.  Build time for this target is on my machine ~
1min 30sec.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 8 Oct 2022 14:29:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 10:29:01 2022
Received: from localhost ([127.0.0.1]:41133 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ohAop-0000Xx-OI
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 10:29:00 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45490)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ohAoi-0000Xc-Q4
 for 58318 <at> debbugs.gnu.org; Sat, 08 Oct 2022 10:28:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:40382)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ohAob-0003m8-If; Sat, 08 Oct 2022 10:28:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=hzXidJNVAQu255cI3oYZF2CgQNWSPdAHfRvTETfokrA=; b=j78edW4hFXFn
 ZMZda5APnTfYokpKW9cM8BzXg/pFBYW4fFTc0tWZjn5Yl7F2WW6UG+YgUnNnX4o2cUxiqP8GV1Tdz
 VE0CPeZr7mdxxZBUoZenBc4KsdwVvNO4lQ5fLyi+4c+TTBd12lSQqVInu99IEqHW0SBm854z6PiSH
 SRmsF2uFjnwuaU2j2ockGWr/XmfhrCAtOmnxuoOKUN7VtJTmClym8DOcdoJnLHvHMsegWmf/DDIgq
 HKmZ3Cboe+8s7ChBuK5hrN/x6b39qZ5mEfQjdv8dJeSth34Xx+n7Dt4Aau7pe26fmmznHIAmQ0JFp
 Y54fQVG84HIWHA39gOgEuA==;
Received: from [87.69.77.57] (port=2001 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ohAoZ-0008SQ-Ka; Sat, 08 Oct 2022 10:28:33 -0400
Date: Sat, 08 Oct 2022 17:28:25 +0300
Message-Id: <83zge6jsom.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87fsfytqaa.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sat, 
 08 Oct 2022 15:10:05 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <87o7umtqwh.fsf@HIDDEN>
 <831qrilb5v.fsf@HIDDEN> <87fsfytqaa.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: corwin@HIDDEN,  akrl@HIDDEN,  bartosz.bubak@HIDDEN,
>   58318 <at> debbugs.gnu.org
> Date: Sat, 08 Oct 2022 15:10:05 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> That leaves the question of what we should do with the Windows zip file
> >> we (that is, Corwin) distributes, and I think we should avoid enabling
> >> nativecomp in that build, so that it works on the widest range of
> >> Windows machines.
> >
> > The Windows build with nativecomp is supposed to be fully workable on
> > systems that don't have libgccjit, even if the libgccjit bundled with
> > the zip file is not installed or deleted.  If there are issues with
> > that, they should be fixed, because we want to allow users to move
> > Emacs from system top system without the optional libraries, and have
> > a functional Emacs, like is already the case with image libraries.
> 
> And my suggestion for achieving that is to not enable nativecomp in
> this build.

I don't agree.

> Adding extra these extra mechanisms for Windows builds only seems to be
> against the general GNU guidelines for non-free systems (as well as
> adding an extra maintenance burden to an already complicated area,
> because the code that finds and uses the extra pre-built trampolines
> will have to be in the general comp.el code).

The general mechanism already exists, and for a long time.  We are
just using it.  Adding an optional library is boilerplate and quite
easy.  It's basically a non-issue.

As for the specific issue of trampolines, I understand that compiling
them is a simple command, and so also a non-issue.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 8 Oct 2022 13:28:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 09:28:12 2022
Received: from localhost ([127.0.0.1]:38637 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh9sC-0002So-A4
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:28:12 -0400
Received: from mx.sdf.org ([205.166.94.24]:55529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oh9s8-0002Se-23
 for 58318 <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:28:11 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 298DS0TU017890
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Sat, 8 Oct 2022 13:28:01 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83a667mook.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 22:14:19 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN>
Date: Sat, 08 Oct 2022 13:28:00 +0000
Message-ID: <xjflepq1m3j.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Corwin Brust <corwin@HIDDEN>
>> Date: Fri, 7 Oct 2022 10:52:04 -0500
>> Cc: Eli Zaretskii <eliz@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
>> 	58318 <at> debbugs.gnu.org
>> 
>> On Fri, Oct 7, 2022 at 9:35 AM Andrea Corallo <akrl@HIDDEN> wrote:
>> >
>> > >
>> > > OK, then let's go for precompiling all the trampolines AOT.
>> >
>> > The only downside might be build time, compiling a trampoline is quick,
>> > 1000+ maybe not so much.
>> >
>> 
>> If this will mostly affect those building Windows binaries *for
>> redistribution*, perhaps it's not a big problem?  Based on my own very
>> limited testing, it's fine for me.
>
> Right, so I think we need a special Makefile target to produce those
> compiled trampolines (something like "make trampolines"), and that
> target should be only used manually when building a binary
> distribution, not when building the release tarball for use on the
> same machine where it is built.
>
> Andrea, could you please come up with a patch for that?  Thanks.

Right, will do.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 8 Oct 2022 13:10:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 09:10:21 2022
Received: from localhost ([127.0.0.1]:38592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh9au-0001zc-HS
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:10:20 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oh9as-0001zK-Fe
 for 58318 <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:10:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=i6M0pyzv9imN0GBMs0W35eHeYBU7+c26R6inegxH7ZM=; b=KTlg6cub7MNXHbC3YvzFWa+8mO
 cMqchRGzoZTzm8sp5b+GtLjQE7/PxDlMVOmft3sUgR26Tfo6znyyBTPS2RySw6XUn06m0hTYStLR2
 XzHouXGOR2XB+43PC87lffJkqWMdgbEL8EH/mI6dB8bvBD9cy7FmOdLtrQnElYnsVFtE=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oh9af-00005E-K8; Sat, 08 Oct 2022 15:10:07 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <831qrilb5v.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 08 Oct
 2022 16:03:56 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <87o7umtqwh.fsf@HIDDEN>
 <831qrilb5v.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEX9/fnq5dPQ0M2u
 raC0w8VplIzr1qbhvWX3pxCSaC9aVSQyLBRXTzSclmf////+39xWAAAAAWJLR0QOb70wTwAAAAd0
 SU1FB+YKCAwyGHTLVzIAAAGmSURBVDjLnZPBS8JQHMf3XpKBCZuiRRC4KXXoYq4ODYUs9R+I7kKg
 Hg0PBtXVnrcoSCSEoNPe5slTvjp1cipo0MFh/0vPLHDb85BfdtjeZ+/32/f7e+O4BQUWIPw/t8Ao
 cMnHJ7LMYtJErFrAJ0kwIiWtEHLQn9yTxDCUUpbXIQ93JV9EEgEvgFz2b1mgXwtpk1hYpI8X52vZ
 GQ90XaQXx7lRcaXCslBA2XXEM0C9XiygIgNgrWXUWQBV7x/JgAVQFlVZOwqojKbNBStw3yyjytSe
 bRZlgH4MulKnISsJTo0HUumSrdpUrtT21cMRC6T7l7XPqBMEjLdxQ313Ag8hr1gffTjAartLXvSD
 L8dB8BiEtPVEQp4MbFYbdB3rpjGwh7OjUYAbnaG9VBxrpK/q8iRpSzhmzSRY1bpRO+jkr3vjttai
 t3AWgGZ5q9cl2q19MkvNfKnXNdRDe2+vmisrGD85jEMcC8bbWsgBOGU/o4xajNi9scyZyUidA0Mh
 2OBYEoTfIdslCsyR00zu5gDFfAbM39m/2aSHTuB5J+InsfJgTkWrvgHykXNhcXUPfQAAACV0RVh0
 ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wOFQxMjo1MDoyNCswMDowMA7W0GoAAAAldEVYdGRhdGU6bW9k
 aWZ5ADIwMjItMTAtMDhUMTI6NTA6MjQrMDA6MDB/i2jWAAAAAElFTkSuQmCC
X-Now-Playing: Joni Mitchell's _Ladies of the Canyon_: "Blue Boy"
Date: Sat, 08 Oct 2022 15:10:05 +0200
Message-ID: <87fsfytqaa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> That leaves the
 question
 of what we should do with the Windows zip file >> we (that is,
 Corwin) distributes, 
 and I think we should avoid enabling >> nativecomp in that build, so that
 it works on th [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> That leaves the question of what we should do with the Windows zip file
>> we (that is, Corwin) distributes, and I think we should avoid enabling
>> nativecomp in that build, so that it works on the widest range of
>> Windows machines.
>
> The Windows build with nativecomp is supposed to be fully workable on
> systems that don't have libgccjit, even if the libgccjit bundled with
> the zip file is not installed or deleted.  If there are issues with
> that, they should be fixed, because we want to allow users to move
> Emacs from system top system without the optional libraries, and have
> a functional Emacs, like is already the case with image libraries.

And my suggestion for achieving that is to not enable nativecomp in
this build.

Adding extra these extra mechanisms for Windows builds only seems to be
against the general GNU guidelines for non-free systems (as well as
adding an extra maintenance burden to an already complicated area,
because the code that finds and uses the extra pre-built trampolines
will have to be in the general comp.el code).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 8 Oct 2022 13:04:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 09:04:03 2022
Received: from localhost ([127.0.0.1]:38579 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh9Uo-0001qC-ND
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:04:03 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40768)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oh9Um-0001pg-Nl
 for 58318 <at> debbugs.gnu.org; Sat, 08 Oct 2022 09:04:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34932)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oh9Uh-0003Gd-Hw; Sat, 08 Oct 2022 09:03:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=F+xVQKKYTtTk94ePYV/TJm20rQl5v2YIP9DCnqxuyvo=; b=n6Fzsyg0nibG
 Hj+IbfLfJFL03k+g5pqiGCpnt9c/GsIuLZj+zlKckuIuhYXJaY5YtjGQCq4bFzRFIOAM2zK+6kQlW
 DMjAnKpLxMzp61XRQ+e6sIfShTw2KWxZD97V9NWwUKdSK7NpNVdxiyXnBcZf4hNGXXSKKux3tzLfk
 nNBAHPcIEpGUoXDreXkG6qloKDEaQZJlIZZbNJRwrw/0Ae4ntvRXbQCWweIZr6HT5sx5WjgotyFhG
 fD9UioAAgQiM/izyGYK/4IK7Wc9HMAoERUJQz+Y08EJ1r6Qhi2X+zpLd+EzP+lWC4tCYu9FSA+vpA
 ujBPaP9Bldwp2j+zXt9fcw==;
Received: from [87.69.77.57] (port=4788 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oh9Uh-0006Vv-0h; Sat, 08 Oct 2022 09:03:55 -0400
Date: Sat, 08 Oct 2022 16:03:56 +0300
Message-Id: <831qrilb5v.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87o7umtqwh.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sat, 
 08 Oct 2022 14:56:46 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN> <87o7umtqwh.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Corwin Brust <corwin@HIDDEN>,  akrl@HIDDEN,  bartosz.bubak@HIDDEN,
>   58318 <at> debbugs.gnu.org
> Date: Sat, 08 Oct 2022 14:56:46 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Right, so I think we need a special Makefile target to produce those
> > compiled trampolines (something like "make trampolines"), and that
> > target should be only used manually when building a binary
> > distribution, not when building the release tarball for use on the
> > same machine where it is built.
> 
> Yup.
> 
> But I'm not sure this is something we should do, really -- it's extra
> work for something that is only important on non-free systems, and it
> will complicate the logic in general (since we'd probably need to add
> another directory for pre-built trampolines and manage those, etc).
> 
> I think we should leave this up to people who do packaging.  That is, if
> Cygwin (etc) distributes an Emacs with nativecomp, they will also
> distribute libgccjit etc (i.e., all the prerequisites).

It could be part of the scripts in admin/nt/dist-build instead, yes.

> That leaves the question of what we should do with the Windows zip file
> we (that is, Corwin) distributes, and I think we should avoid enabling
> nativecomp in that build, so that it works on the widest range of
> Windows machines.

The Windows build with nativecomp is supposed to be fully workable on
systems that don't have libgccjit, even if the libgccjit bundled with
the zip file is not installed or deleted.  If there are issues with
that, they should be fixed, because we want to allow users to move
Emacs from system top system without the optional libraries, and have
a functional Emacs, like is already the case with image libraries.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 8 Oct 2022 12:57:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 08 08:57:00 2022
Received: from localhost ([127.0.0.1]:38560 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oh9Nz-0001dN-Vg
	for submit <at> debbugs.gnu.org; Sat, 08 Oct 2022 08:57:00 -0400
Received: from quimby.gnus.org ([95.216.78.240]:33924)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oh9Ny-0001d9-CL
 for 58318 <at> debbugs.gnu.org; Sat, 08 Oct 2022 08:56:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=cTZrWnMvXxkEuXNZ/dWyBCBS23jWpOVF5rshzDIuwag=; b=GeA7sm19aP9XlVd1xMLyNewk6P
 jSUigiSAtdQ7NqNXuTfOhslVwRyT3MmDl4FMpcEjDPLZ/OCBGv93SKpYXbUfVtCilDKaO3ZCV/vak
 9DBwf4l1UPJo8TtTczqVsM2D9+N+hjq4L4MXFvtMWcpKj3uArKqMLdga1iI9jWQTMrPo=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oh9Nn-0008OE-7i; Sat, 08 Oct 2022 14:56:49 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83a667mook.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 22:14:19 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 <83a667mook.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEX9/fnq5dPQ0M2u
 raC0w8VplIzr1qbhvWX3pxCSaC9aVSQyLBRXTzSclmf////+39xWAAAAAWJLR0QOb70wTwAAAAd0
 SU1FB+YKCAwyGHTLVzIAAAGmSURBVDjLnZPBS8JQHMf3XpKBCZuiRRC4KXXoYq4ODYUs9R+I7kKg
 Hg0PBtXVnrcoSCSEoNPe5slTvjp1cipo0MFh/0vPLHDb85BfdtjeZ+/32/f7e+O4BQUWIPw/t8Ao
 cMnHJ7LMYtJErFrAJ0kwIiWtEHLQn9yTxDCUUpbXIQ93JV9EEgEvgFz2b1mgXwtpk1hYpI8X52vZ
 GQ90XaQXx7lRcaXCslBA2XXEM0C9XiygIgNgrWXUWQBV7x/JgAVQFlVZOwqojKbNBStw3yyjytSe
 bRZlgH4MulKnISsJTo0HUumSrdpUrtT21cMRC6T7l7XPqBMEjLdxQ313Ag8hr1gffTjAartLXvSD
 L8dB8BiEtPVEQp4MbFYbdB3rpjGwh7OjUYAbnaG9VBxrpK/q8iRpSzhmzSRY1bpRO+jkr3vjttai
 t3AWgGZ5q9cl2q19MkvNfKnXNdRDe2+vmisrGD85jEMcC8bbWsgBOGU/o4xajNi9scyZyUidA0Mh
 2OBYEoTfIdslCsyR00zu5gDFfAbM39m/2aSHTuB5J+InsfJgTkWrvgHykXNhcXUPfQAAACV0RVh0
 ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wOFQxMjo1MDoyNCswMDowMA7W0GoAAAAldEVYdGRhdGU6bW9k
 aWZ5ADIwMjItMTAtMDhUMTI6NTA6MjQrMDA6MDB/i2jWAAAAAElFTkSuQmCC
X-Now-Playing: Joni Mitchell's _Ladies of the Canyon_: "Ladies Of The Canyon"
Date: Sat, 08 Oct 2022 14:56:46 +0200
Message-ID: <87o7umtqwh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: > Right, so I think we
 need a special Makefile target to produce those > compiled trampolines
 (something
 like "make trampolines"), and that > target should be only used manually
 when building a binary [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> Right, so I think we need a special Makefile target to produce those
> compiled trampolines (something like "make trampolines"), and that
> target should be only used manually when building a binary
> distribution, not when building the release tarball for use on the
> same machine where it is built.

Yup.

But I'm not sure this is something we should do, really -- it's extra
work for something that is only important on non-free systems, and it
will complicate the logic in general (since we'd probably need to add
another directory for pre-built trampolines and manage those, etc).

I think we should leave this up to people who do packaging.  That is, if
Cygwin (etc) distributes an Emacs with nativecomp, they will also
distribute libgccjit etc (i.e., all the prerequisites).

That leaves the question of what we should do with the Windows zip file
we (that is, Corwin) distributes, and I think we should avoid enabling
nativecomp in that build, so that it works on the widest range of
Windows machines.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 19:15:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 15:15:19 2022
Received: from localhost ([127.0.0.1]:37383 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogsoZ-0003Fn-6F
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:15:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60164)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogsoY-0003FY-1o
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:15:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59952)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogsoS-0006yS-IZ; Fri, 07 Oct 2022 15:15:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=rm/FnCzv3GFvVNCLCrfZXT+KQUbQ3eKpEeSf6yJRq6k=; b=Ki07vAPSdNRa
 E00Phl05Bshembh1l0uSO6zHwP6f3Sd+j8tfGS7vA5x/jsmFU/dDr66GCIn9076R6eo8HqALEbBq6
 Sha+mp+0K1ZGbHA7BJdIRiUbCexXfqHkmJPV8xVC2B4NeXyDRvRqWK7AfeT7Ol58l6fD3ReyQKULf
 d6wtUyduOPJiYUWR9R0uxfsDmkFt0nrrm00ehmWtWYhe138SQ0GsTUD+u78akKmRZuwzpwvg04rTk
 SkOuhhV83wGq2rE0VBBoWtZcvD2kDdnI4HSrERW1MHqBQJV9BI6UBB8Fg3PWCw/p6grBGFvv4B0Sh
 clOWFL5oijM7xfYizcHc8A==;
Received: from [87.69.77.57] (port=2674 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogsoP-0001p7-IY; Fri, 07 Oct 2022 15:15:11 -0400
Date: Fri, 07 Oct 2022 22:15:09 +0300
Message-Id: <838rlrmon6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjftu4f1rnr.fsf@HIDDEN> (message from Andrea Corallo on Fri, 
 07 Oct 2022 17:15:36 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
 <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
 <83h70fmyg7.fsf@HIDDEN> <xjftu4f1rnr.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: Corwin Brust <corwin@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN,
>         58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 17:15:36 +0000
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Corwin Brust <corwin@HIDDEN>
> >> Date: Fri, 7 Oct 2022 10:34:38 -0500
> >> Cc: Andrea Corallo <akrl@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
> >> 	58318 <at> debbugs.gnu.org
> >> 
> >> FWIW, It appeared to take around 12 minutes to build all trampolines
> >> starting from the "installed" Emacs that was the source for the 28.2
> >> binary zips.
> >
> > Is that serially, i.e. using a single Emacs process at a time?
> 
> The other (last?) option is to have one single .eln containing all
> trampolines.  It should be very quick to compile, the downside is some
> more memory usage (we'd have to load and map this .eln when the first
> trampoline is requested).

I'm not sure this is necessary, since the trampolines only need to be
built as part of preparing a binary distribution.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 19:14:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 15:14:28 2022
Received: from localhost ([127.0.0.1]:37378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogsnj-0003Dy-OC
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:14:28 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogsng-0003Dl-UM
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:14:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50316)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogsnb-0006iI-Ns; Fri, 07 Oct 2022 15:14:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=yLL/zQZ6O9sY8VgkfX12OQDm7akjEmh5Wip3YPXJSvY=; b=qhc/MKOeY7is
 aDOB+0qeR5xYgLlNCA/hpdFK0gBHOl+U3dpIpZrVIDXl+QvnTgiZuPSZCD7XjuwG7ttsUeY9dEgDF
 K9CQHAPbPoBclehBpt+GuaNglR727EaZxxx230n2FBdTv+1F2BI1FwRtCav7oXIRDXuZomLBdx1Sw
 FvpEcGZIrsYvD4Dch+52+V6evZM/iW2/1W1vLdlCYE4/mqCbTn1DoyIaK1itYqliXX/4UpBRTQ4GA
 qQeIrm0TCfusC2fbd+jgwKavn0F+cd2NqQmCMoRYJHkVy3MjenOJaQ/OE3TFOR17hO+RUUfY/N869
 P+4OliCIbd1ww5IFZqjfkQ==;
Received: from [87.69.77.57] (port=2622 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogsna-0001kX-Jb; Fri, 07 Oct 2022 15:14:19 -0400
Date: Fri, 07 Oct 2022 22:14:19 +0300
Message-Id: <83a667mook.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
 (message from Corwin Brust on Fri, 7 Oct 2022 10:52:04 -0500)
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
 <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Corwin Brust <corwin@HIDDEN>
> Date: Fri, 7 Oct 2022 10:52:04 -0500
> Cc: Eli Zaretskii <eliz@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
> 	58318 <at> debbugs.gnu.org
> 
> On Fri, Oct 7, 2022 at 9:35 AM Andrea Corallo <akrl@HIDDEN> wrote:
> >
> > >
> > > OK, then let's go for precompiling all the trampolines AOT.
> >
> > The only downside might be build time, compiling a trampoline is quick,
> > 1000+ maybe not so much.
> >
> 
> If this will mostly affect those building Windows binaries *for
> redistribution*, perhaps it's not a big problem?  Based on my own very
> limited testing, it's fine for me.

Right, so I think we need a special Makefile target to produce those
compiled trampolines (something like "make trampolines"), and that
target should be only used manually when building a binary
distribution, not when building the release tarball for use on the
same machine where it is built.

Andrea, could you please come up with a patch for that?  Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 19:12:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 15:12:07 2022
Received: from localhost ([127.0.0.1]:37373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogslT-0003Ad-7i
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:12:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34904)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogslR-0003A9-Df
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 15:12:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51896)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogslF-0006ZU-7c; Fri, 07 Oct 2022 15:11:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=51kDTv2Q0VnGcunrUizdJcmSqNC5D+ugPB/W0HsaR4s=; b=X7SgconUgPM8
 buSUompRSYVhKCk1BKtjCYo++k87jY+IBgOTlQHay3e4zWz54OrlPv4CUzfxJqcfT90A2r7sqyWiX
 q8dIJXgBlbbkmdTxkmSuvOy4YZJii9B8WfarUC1JbeN2nIiLWcDqo8rOUPOLA1iEYdZM/RwzSDr4H
 M/+rcoyefc2Ofl27fzJo29+ZVONfbkcOZ7+kgA346zy7X5RXNALDwXF7pKJQzyZEyZmnnDFbMcS0P
 kCrKYdJvCMzla82vfXG3O1DUXPFnsLXOFV8ffiEmKiQWwoWBO2NNf7KmD1DLSO45OgqmNArem/fGM
 HElXOzEu7IJclSnGZ4furw==;
Received: from [87.69.77.57] (port=2474 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogslE-0001T4-LB; Fri, 07 Oct 2022 15:11:52 -0400
Date: Fri, 07 Oct 2022 22:11:53 +0300
Message-Id: <83bkqnmosm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAJf-WoQrk7h+1nAPRKTO7U=8yciqHcZROTYhn1K7sYWbEKW=zw@HIDDEN>
 (message from Corwin Brust on Fri, 7 Oct 2022 10:47:00 -0500)
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
 <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
 <83h70fmyg7.fsf@HIDDEN>
 <CAJf-WoQrk7h+1nAPRKTO7U=8yciqHcZROTYhn1K7sYWbEKW=zw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Corwin Brust <corwin@HIDDEN>
> Date: Fri, 7 Oct 2022 10:47:00 -0500
> Cc: akrl@HIDDEN, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
> 	58318 <at> debbugs.gnu.org
> 
> On Fri, Oct 7, 2022 at 10:43 AM Eli Zaretskii <eliz@HIDDEN> wrote:
> >
> > > From: Corwin Brust <corwin@HIDDEN>
> > > Date: Fri, 7 Oct 2022 10:34:38 -0500
> > > Cc: Andrea Corallo <akrl@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN,
> > >       58318 <at> debbugs.gnu.org
> > >
> > > FWIW, It appeared to take around 12 minutes to build all trampolines
> > > starting from the "installed" Emacs that was the source for the 28.2
> > > binary zips.
> >
> > Is that serially, i.e. using a single Emacs process at a time?
> 
> Yes, exactly.  No attempt of any kind to parallelize.

So this roughly doubles the build time of a release tarball.  Not a
catastrophe, IMO.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 17:15:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 13:15:47 2022
Received: from localhost ([127.0.0.1]:37308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogqws-0000GT-Va
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 13:15:47 -0400
Received: from mx.sdf.org ([205.166.94.24]:52294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ogqwn-0000GG-2d
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 13:15:45 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297HFaOA000821
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 17:15:36 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83h70fmyg7.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 18:43:20 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
 <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
 <83h70fmyg7.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 17:15:36 +0000
Message-ID: <xjftu4f1rnr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, Corwin Brust <corwin@HIDDEN>, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Corwin Brust <corwin@HIDDEN>
>> Date: Fri, 7 Oct 2022 10:34:38 -0500
>> Cc: Andrea Corallo <akrl@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
>> 	58318 <at> debbugs.gnu.org
>> 
>> FWIW, It appeared to take around 12 minutes to build all trampolines
>> starting from the "installed" Emacs that was the source for the 28.2
>> binary zips.
>
> Is that serially, i.e. using a single Emacs process at a time?

The other (last?) option is to have one single .eln containing all
trampolines.  It should be very quick to compile, the downside is some
more memory usage (we'd have to load and map this .eln when the first
trampoline is requested).

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:52:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:52:22 2022
Received: from localhost ([127.0.0.1]:37276 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpeA-0006e6-FL
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:52:22 -0400
Received: from mail-oo1-f43.google.com ([209.85.161.43]:42562)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1ogpe8-0006du-DR
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:52:20 -0400
Received: by mail-oo1-f43.google.com with SMTP id
 r15-20020a4abf0f000000b004761c7e6be1so3756238oop.9
 for <58318 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 08:52:20 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=t9EuxI7KVBG/B2C1TmMwWLTMeOvXjXtySYEgX4OXNUw=;
 b=TptLhdIrPrpjYhD0wFEb4tdatTTkBHfbNCyJwdTwUPG09FSfyasNb2bgB5eqFI1KWs
 FqGPB4/7vH2UQ1EpY3kg6z0jX4u6BbqrN2Yn1Zl4yjyuEyTpMAkQ2d5xALVZZeD+YIdK
 MxR8uD8+cf0rTj6tzQ6phfSLJ6gmZo0tb6PDCHGEcycYNUy83RLmhU7SMjhcbehHscej
 86Jz47uGF++f8ofDu02wf3p5Frc/mQuMj5qL2+Dg6lmRTosp+f3b8zZMhTYaOHIby4I0
 7zbUxYrmeycaTxsJA6+XDickxvWgY2fGiuTnN0N6Pry72CFSIqMvTRiXSCo3bfaVXeCH
 jaxA==
X-Gm-Message-State: ACrzQf0Zw4AaJKxiBQvuh1cGj9ra6wNhXLIR+RPPMaBO6ktK/xpPPdny
 TmVCzbZ2dcSgSyMlcvKVX9DQzpxGW/JwBjwU3Ns=
X-Google-Smtp-Source: AMsMyM6GVpMRLlYCYGyVU8o36ZFAQX1wbK7xvHiwaVMQAW3rwwtINRuZDMtBc3qSQbfSa6a0b8dXjEN0KdjuKDUbfNo=
X-Received: by 2002:a9d:6c47:0:b0:655:fd4d:5c38 with SMTP id
 g7-20020a9d6c47000000b00655fd4d5c38mr2332559otq.108.1665157934819; Fri, 07
 Oct 2022 08:52:14 -0700 (PDT)
MIME-Version: 1.0
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
In-Reply-To: <xjf35bz3dng.fsf@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Fri, 7 Oct 2022 10:52:04 -0500
Message-ID: <CAJf-WoSPkTpWV1==M8DFyroAjdZEyp3P7qcjoVumGPiZEhSqtw@HIDDEN>
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
To: Andrea Corallo <akrl@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 58318
Cc: 58318 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, larsi@HIDDEN,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Fri, Oct 7, 2022 at 9:35 AM Andrea Corallo <akrl@HIDDEN> wrote:
>
> >
> > OK, then let's go for precompiling all the trampolines AOT.
>
> The only downside might be build time, compiling a trampoline is quick,
> 1000+ maybe not so much.
>

If this will mostly affect those building Windows binaries *for
redistribution*, perhaps it's not a big problem?  Based on my own very
limited testing, it's fine for me.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:49:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:49:17 2022
Received: from localhost ([127.0.0.1]:37271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpbA-0006ZP-UQ
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:49:17 -0400
Received: from mx.sdf.org ([205.166.94.24]:62690)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ogpb8-0006ZD-0z
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:49:15 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297Fn9Gg013157
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 15:49:09 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83mta7mz64.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 18:27:47 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 15:49:09 +0000
Message-ID: <xjfy1tr1vnu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>>         58318 <at> debbugs.gnu.org
>> Date: Fri, 07 Oct 2022 14:35:15 +0000
>> 
>> > OK, then let's go for precompiling all the trampolines AOT.
>> 
>> The only downside might be build time, compiling a trampoline is quick,
>> 1000+ maybe not so much.
>
> Can you time this and see how long it takes for, say, 50 trampolines?

Yeah, unfortunately is not so fast.  On my machine is about 0.2 seconds
each trampoline.  This would translate in about 5min to compile
sequentially all trampolines AOT if I'm not mistaken.  If someone else
can repeat a similar measure that would be interesting.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:47:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:47:17 2022
Received: from localhost ([127.0.0.1]:37263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpZF-0006UV-0e
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:47:17 -0400
Received: from mail-oa1-f46.google.com ([209.85.160.46]:34810)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1ogpZE-0006UJ-3R
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:47:16 -0400
Received: by mail-oa1-f46.google.com with SMTP id
 586e51a60fabf-1321a1e94b3so6022436fac.1
 for <58318 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 08:47:16 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=o3WFkJc/eHRuN3QO/s5RZEr6K7Vvm/d3+IXbe5IHCu0=;
 b=juSweDHmkmJTtHqyEwKGFPLQsdQhh3awuBgR0h/vPj24h/75XxLrPYMbfA7oCCcg/A
 e2AfsuNJMQ3/Hg0jl1b5PoARpZNgF6kvn39HAuEFdk2Yt/1jlrtkgUy9uGz10jhQAYlx
 sybHeg59FEdfiO6qbq5vZ9VJpjV4kDEk4ftpJwBKpf9OzA7W92UjKZdgBKZ3X4QCBz5B
 A1WBQ2/k9fhPCUbTTp1D7h5DY2T05nIq3tCuRH3QVjG8HKGRcM+4Dt1SJBhwswtXFX1v
 6XzHgn9xrILbZb88Q43xfAGS9wpM5qOclEGWAz2i0ZVc9A9uigXvKMp4VC5ovXtYa9E8
 Wgbg==
X-Gm-Message-State: ACrzQf0XTDqr74JCyrXWWvpCLcZt1B0SkBtub+8uMr98RzO27+/cVOGP
 J/sD7v6iXLo5RKZ2Hdnwtn0SBAxnW9pKNLQFIyU=
X-Google-Smtp-Source: AMsMyM4kX6yWhicbE6hIGCg3fQztvvccoBB9FQE35bPP/HhsKFVpmIOR+CY4ChCVWBFFFbrAchzG9r4+qZHWZ1a/f/A=
X-Received: by 2002:a05:6870:f227:b0:132:f26c:e911 with SMTP id
 t39-20020a056870f22700b00132f26ce911mr2905974oao.279.1665157630570; Fri, 07
 Oct 2022 08:47:10 -0700 (PDT)
MIME-Version: 1.0
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
 <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
 <83h70fmyg7.fsf@HIDDEN>
In-Reply-To: <83h70fmyg7.fsf@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Fri, 7 Oct 2022 10:47:00 -0500
Message-ID: <CAJf-WoQrk7h+1nAPRKTO7U=8yciqHcZROTYhn1K7sYWbEKW=zw@HIDDEN>
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Fri, Oct 7, 2022 at 10:43 AM Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > From: Corwin Brust <corwin@HIDDEN>
> > Date: Fri, 7 Oct 2022 10:34:38 -0500
> > Cc: Andrea Corallo <akrl@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN,
> >       58318 <at> debbugs.gnu.org
> >
> > FWIW, It appeared to take around 12 minutes to build all trampolines
> > starting from the "installed" Emacs that was the source for the 28.2
> > binary zips.
>
> Is that serially, i.e. using a single Emacs process at a time?

Yes, exactly.  No attempt of any kind to parallelize.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:43:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:43:29 2022
Received: from localhost ([127.0.0.1]:37244 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpVZ-0006N6-CV
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:43:29 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57620)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogpVY-0006Mq-Hf
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:43:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37248)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogpVS-0000zD-26; Fri, 07 Oct 2022 11:43:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=PNjJX3cS5gLAPM+QmRjtXv5bK+cy+zr2ZUeweAWWkCk=; b=gXul9av5E1FD
 hQv/21IlV6vD8MDzydE1mTnC4PlsRLLD6tHFHNxznJa8tIruPftQ8X/QvL3a8ExX1HExZKCirrYBO
 ix2+oLAP/KnifWgp+6LUyQjv8+M3BY+bcF/fGo7pbgRHB1bMaQe/r9CLMyBYYCqqzwHTCcOcr6q6F
 V05UOCXxaIPH5XL5mtvsYQ8OAXY16IiPlZntgesm/reygswZiC1J1Z+HLS/y3kP7q8m77s1ZGTB6p
 6PiJX2/3vFhvLPDOvopvMqba8xKB1dTxSUxMHHOwazvk9A2cu4WnIqlyJJ7hVVXGxISMM/iJEGmZu
 EkW7nbg+OWSCB5EGxbv5fA==;
Received: from [87.69.77.57] (port=1486 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogpVR-0001ip-F5; Fri, 07 Oct 2022 11:43:21 -0400
Date: Fri, 07 Oct 2022 18:43:20 +0300
Message-Id: <83h70fmyg7.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
 (message from Corwin Brust on Fri, 7 Oct 2022 10:34:38 -0500)
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
 <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Corwin Brust <corwin@HIDDEN>
> Date: Fri, 7 Oct 2022 10:34:38 -0500
> Cc: Andrea Corallo <akrl@HIDDEN>, larsi@HIDDEN, bartosz.bubak@HIDDEN, 
> 	58318 <at> debbugs.gnu.org
> 
> FWIW, It appeared to take around 12 minutes to build all trampolines
> starting from the "installed" Emacs that was the source for the 28.2
> binary zips.

Is that serially, i.e. using a single Emacs process at a time?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:34:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:34:57 2022
Received: from localhost ([127.0.0.1]:37233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpNI-00069F-Oi
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:34:57 -0400
Received: from mail-oa1-f52.google.com ([209.85.160.52]:35491)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1ogpNG-000691-Ai
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:34:56 -0400
Received: by mail-oa1-f52.google.com with SMTP id
 586e51a60fabf-134072c15c1so2733655fac.2
 for <58318 <at> debbugs.gnu.org>; Fri, 07 Oct 2022 08:34:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=SL6S8RrRsT6bu0hJmDeC23TmbIR8MggKFqegNSVoz9s=;
 b=C69EunLivWMdnE/7bCrqmghbkV0vI4qSVmDfHB/WjaPmGO+ekEL0LHQO4rARg6Oilv
 Ew+bPedryh/oMdmI2c6CBTYR+Sk+eCFy710WJMUpR5/0nWddQGuKdMfrzPtVzVJlwtsh
 15CmIh9z300hHMsnEbDD+fCWooHbmK22yQFWeJk8KGquLoTYa+fKBNKXiW9Che2tGWG+
 WP7a72dXdwZ77slasde0Mvd23bAmgWWl3CUawOl8+5r+5B4hS2i13A/cy0cDL4LJAsxl
 NkIDYop4UbzqLWECkjfm//GgcY0WuZhER+abqVTX5nMNC+hOOCiRRLKj7cc1DQ1sJ2X3
 2u0w==
X-Gm-Message-State: ACrzQf3wusU4K5EubD8JYM4ZbbZuWjHwXcjKt3O6gxJHMrRboEFpDtbp
 mhOAxnOmQWg2Lu1o5LUvRzQjH3w2pULYDSttGUE=
X-Google-Smtp-Source: AMsMyM7zvbr3BnrHOLtl/3ZE35fIMv306osKt97gMmSm7i1dBDIm1+6RkqVnG1o3ToP8IW4uhlOanu82XMZLf9A5OCM=
X-Received: by 2002:a05:6870:d785:b0:132:c513:bcb9 with SMTP id
 bd5-20020a056870d78500b00132c513bcb9mr8591668oab.271.1665156888748; Fri, 07
 Oct 2022 08:34:48 -0700 (PDT)
MIME-Version: 1.0
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
 <83edvjondh.fsf@HIDDEN> <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
 <83tu4fn3rz.fsf@HIDDEN> <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN> <83mta7mz64.fsf@HIDDEN>
In-Reply-To: <83mta7mz64.fsf@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Fri, 7 Oct 2022 10:34:38 -0500
Message-ID: <CAJf-WoSvrY2Jxbca2GPzTtF_+_NrT8bo+ob8BzsFKbnixyyMOQ@HIDDEN>
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Fri, Oct 7, 2022 at 10:27 AM Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > The only downside might be build time, compiling a trampoline is quick,
> > 1000+ maybe not so much.
>
> Can you time this and see how long it takes for, say, 50 trampolines?

FWIW, It appeared to take around 12 minutes to build all trampolines
starting from the "installed" Emacs that was the source for the 28.2
binary zips.

I can't confirm if this resolves the problem; I haven't yet reproduced it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 15:27:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 11:27:55 2022
Received: from localhost ([127.0.0.1]:37213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogpGV-0005wy-4d
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:27:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55700)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogpGT-0005wk-Hc
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 11:27:53 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38582)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogpGO-0007DW-0P; Fri, 07 Oct 2022 11:27:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=hngIgRF5DrcDjzGEkgyTE368fyW9lrhSMTv0XJb3tH8=; b=Uzmq2SvrUgPU
 OedT9AQmskpqCxd6WdrYcUsWCUMItPftfxlDv87RNo8ipfJRsXgzY3fv6MeYbDdyLP3n+bEdGzOa0
 mF0GGzxr6vn+63b/zyJYcM7CI+pGUmh0+ZTa/mTjHxJ22CITEYaYEB3OHm5GIf5iKjKBFwSyPTKvE
 odaDKytgDBalb0UtKeo3Y7sdeZGaKzxzQkRt/FMNe1DkT3VE8CzurvK9sNlmyDkbQgX2WtntVwTUc
 3h/h1TH7e+Mt7sSq7RiqsOileiDDKMfJY9hTYuldLTh/wDZ9THDG4rOuG/iFGMWhzSjQR+ucxxtVv
 pM42WFEURtdH/s7q3Z4A7g==;
Received: from [87.69.77.57] (port=4494 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogpGN-0003dO-G5; Fri, 07 Oct 2022 11:27:47 -0400
Date: Fri, 07 Oct 2022 18:27:47 +0300
Message-Id: <83mta7mz64.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjf35bz3dng.fsf@HIDDEN> (message from Andrea Corallo on Fri, 
 07 Oct 2022 14:35:15 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
 <xjf35bz3dng.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>         58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 14:35:15 +0000
> 
> > OK, then let's go for precompiling all the trampolines AOT.
> 
> The only downside might be build time, compiling a trampoline is quick,
> 1000+ maybe not so much.

Can you time this and see how long it takes for, say, 50 trampolines?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 14:35:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 10:35:23 2022
Received: from localhost ([127.0.0.1]:37038 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogoRe-0004UM-K2
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 10:35:22 -0400
Received: from mx.sdf.org ([205.166.94.24]:58073)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ogoRd-0004UE-9b
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 10:35:21 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297EZF1D021324
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 14:35:15 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83r0zjn31y.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 17:03:53 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN> <83r0zjn31y.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 14:35:15 +0000
Message-ID: <xjf35bz3dng.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>>         58318 <at> debbugs.gnu.org
>> Date: Fri, 07 Oct 2022 13:54:05 +0000
>> 
>> > How much will performance suffer if we use funcall?
>> 
>> This is the usual 1 milion dollar question, we can run benchmarks but we
>> are never sure of how much realistic they are.  That said IME this is
>> one of the most effective optimizations we have, funcall is a non
>> trivial and relatively slow machine when executed at each function
>> activation.
>
> OK, then let's go for precompiling all the trampolines AOT.

The only downside might be build time, compiling a trampoline is quick,
1000+ maybe not so much.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 14:04:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 10:04:04 2022
Received: from localhost ([127.0.0.1]:36993 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ognxM-0003ga-95
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 10:04:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ognxJ-0003fi-Ik
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 10:04:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50418)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ognxE-0001BG-8V; Fri, 07 Oct 2022 10:03:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=FXKHtCLe91UgSguLwgIPWDeO9n8EEB9Jtr/rNMf167I=; b=Y8tQiLCCkXHF
 lPliR2492G8wTc3YIYZ9RenWAGH8GU6pQygUgX+3k91jddTZgH2CvZ0bW2NNE0irasYzCelshexrE
 kBZ0fvJW+Fl1OZfWIEhayHCSXSwIK6eaFR1bHPIZ4SQoaDGGnB7bfek44BJi/Jm/w4kj3vbs88Svz
 fnYjL99j+t6JBrCB7jcHgL+AD60xz46DIkjJy8YpVL8hHFSaP0C2Mtw6guNZud4nRCFl4MWLZ5Fw8
 5Yw3DyU3xTMj9Lvx1N+jPp7RsqWJ/emygqdJSQ5bgXlmXkEgzUv6AeBN9/eSAS+CIXj3gfOCvAeiN
 vUYTxkPTy+8/0h3+zAnfzA==;
Received: from [87.69.77.57] (port=3162 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ognxD-0005xi-Kl; Fri, 07 Oct 2022 10:03:55 -0400
Date: Fri, 07 Oct 2022 17:03:53 +0300
Message-Id: <83r0zjn31y.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjf7d1b3fk2.fsf@HIDDEN> (message from Andrea Corallo on Fri, 
 07 Oct 2022 13:54:05 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
 <xjf7d1b3fk2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>         58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 13:54:05 +0000
> 
> > How much will performance suffer if we use funcall?
> 
> This is the usual 1 milion dollar question, we can run benchmarks but we
> are never sure of how much realistic they are.  That said IME this is
> one of the most effective optimizations we have, funcall is a non
> trivial and relatively slow machine when executed at each function
> activation.

OK, then let's go for precompiling all the trampolines AOT.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:54:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:54:11 2022
Received: from localhost ([127.0.0.1]:34874 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ognnm-0002rR-Q8
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:54:11 -0400
Received: from mx.sdf.org ([205.166.94.24]:63036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ognnk-0002rI-Ps
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:54:09 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297Ds5nu006444
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 13:54:05 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83tu4fn3rz.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 16:48:16 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN> <83tu4fn3rz.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 13:54:05 +0000
Message-ID: <xjf7d1b3fk2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>>         58318 <at> debbugs.gnu.org
>> Date: Fri, 07 Oct 2022 13:04:55 +0000
>> 
>> > How is this relevant only to Windows?
>> 
>> Windows is the only system where a native compiled Emacs can start even
>> if libgccjit is not present.  On GNU/Linux we get and error at load time
>> from the dynamic linker in case.  As a consequence on GNU/Linux Emacs is
>> always capable of producing trampolines when needed.
>
> It could be that libgccjit is loaded but is incompatible or
> something.  So I'd prefer a general solution.
>
>> > And what do you mean by "disable direct calls from Lisp native code
>> > into primitives"?  I don't think I understand what this would do in
>> > practice.
>> 
>> Native compiled elisp calls directly into primitive functions not to go
>> through funcall.  For this reason when a primitive is redefined we need
>> to produce a trampoline in order to forward these calls to the funcall
>> machinery.  If we disable all of this optimization the issue disappears
>> but indeed that's not good from a performance point of view.
>
> How much will performance suffer if we use funcall?

This is the usual 1 milion dollar question, we can run benchmarks but we
are never sure of how much realistic they are.  That said IME this is
one of the most effective optimizations we have, funcall is a non
trivial and relatively slow machine when executed at each function
activation.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:48:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:48:31 2022
Received: from localhost ([127.0.0.1]:34869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogniI-0002jA-W3
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:48:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50580)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogniG-0002ix-HM
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:48:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48876)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogniB-0007LG-66; Fri, 07 Oct 2022 09:48:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=UoUSN+HPHBIokPp10mDa1u98YyuAdAqWl84iObQh6Dc=; b=T1q1c05+n3QaoYlKTCl/
 i/G6jeQyg5dCp8cKMR1HIWFd+4iM231abImjZJOe34R0Ql0lx+vtYj5IvKZsmjwddG7Z/KXBzJy24
 grCQXCWfe2UHc1JeQjiSz4BPE7rPgYtps+ubPBKOIScKGYivElgS3H+7QzJYoIo1tQUWStUNbU74l
 LO/N7QYzbP5oBxUWSgZQSz5mkLTJgPcJwcJA5l84RTA3uUs5zOZXG8OqQlsBGv+jDaPxJhSFTaPN9
 2zttpvdyFZnNQs0Jelldoqnm7CxgPmiBEzF2YO52vMJ0tJwIxao1u1s33UOrZUVe+VjfRIQEnG5TN
 FiTKwEkh06kqgg==;
Received: from [87.69.77.57] (port=2202 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogni5-0000dV-FI; Fri, 07 Oct 2022 09:48:22 -0400
Date: Fri, 07 Oct 2022 16:48:16 +0300
Message-Id: <83tu4fn3rz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjfbkqn3hu0.fsf@HIDDEN> (message from Andrea Corallo on Fri, 
 07 Oct 2022 13:04:55 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <xjfbkqn3hu0.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: larsi@HIDDEN, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>         58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 13:04:55 +0000
> 
> > How is this relevant only to Windows?
> 
> Windows is the only system where a native compiled Emacs can start even
> if libgccjit is not present.  On GNU/Linux we get and error at load time
> from the dynamic linker in case.  As a consequence on GNU/Linux Emacs is
> always capable of producing trampolines when needed.

It could be that libgccjit is loaded but is incompatible or
something.  So I'd prefer a general solution.

> > And what do you mean by "disable direct calls from Lisp native code
> > into primitives"?  I don't think I understand what this would do in
> > practice.
> 
> Native compiled elisp calls directly into primitive functions not to go
> through funcall.  For this reason when a primitive is redefined we need
> to produce a trampoline in order to forward these calls to the funcall
> machinery.  If we disable all of this optimization the issue disappears
> but indeed that's not good from a performance point of view.

How much will performance suffer if we use funcall?

> Indeed the other option is to precompile all trampoline AOT when we know
> libgccjit is available.  It is actually very simple with something like:
> 
> (mapatoms (λ (f)
>             (when (subr-primitive-p (symbol-function f))
>               (or (comp-trampoline-search f)
>                   (comp-trampoline-compile f)))))
> 
> It was not consired worth as trampoline production is very quick, but
> might be worth at least for Windows platforms for the discussed reason.

If calling through funcall is too expensive, I think pre-compiling all
the trampolines would indeed be the best solution, thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:48:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:48:12 2022
Received: from localhost ([127.0.0.1]:34865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogni0-0002ic-LP
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:48:12 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52410)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ognhy-0002iP-Bx
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:48:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=cD1WFB3gMpRsYeVvNtpWotbpruBrJgfrv5spK1AjstU=; b=TGirXA7oDDGf7kU6XZyryZE1zX
 CxrxN/2S0xl9GsQYUsR5Zw77WeLIJanAGwc7A221z+eOOueUEE0GvPqRCLUrpTNnuni9YvMNuR4kH
 QNyQ1/VoEIhyjP8mWF8G3YS3Z3N8iyeK15uJGFvzvASgT98To8qEdja8RnQ5Y/OJTHRQ=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ognhn-00064V-Hp; Fri, 07 Oct 2022 15:48:01 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83v8ovn3ya.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 16:44:29 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <8735bzvlbo.fsf@HIDDEN> <83v8ovn3ya.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXDoHWvkW6aaEcx
 IBnOu5v///81o0TnAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKBw0uIg0RqbwAAAG2SURBVDjLZdTr
 oasgDADgxOMAIA5wCA7QQgdAb/af6eaB1p7yq+UrIQlQAAhRBhBFHwvZABkYY0itPYfEC4SmJgO/
 AZLC7z0YzKxQSODxno8ZmFWaQpVYiTSSZsMqe6Ui0jEUmS75BD6qzrcQgoYv8S9smrlHGvDPQ20x
 RKO4XFAUXrZzLpbuPdRDMq0yWWs5oRlU0Ogoy85QA9qqxXqZCjsdzcfrEw5KA57cTzKoNKCxSL5g
 onzCJpK1TIOfVmXOwj2467ENIGutJVB5jxfstoOXOABjULBTGpWgHBxiRgWWU5JZz4yj5ETBVvBU
 dGfrb1slVpDbIdDhsBU1jXyDVokCc1/atcmLOdr1sCaizaUBPFZcUL5hhybtorGHwTgPLhnpDuMy
 zHxoGzxdBbxAGoF64xvfoc+sR/07nSD1OWi1M4ZFm+jgK4AnaYE9nm2AZaWRZGuE0uo8slXooIAR
 l9JoPSNF78ouDQV9MBbKrgkEkF/t+mFqDv0E7UmOsmH6AG8JCUR0gD8g+VJZvbVv2C3DRJ7tHYJ8
 m9NzlBHeQPaUtq8VaK/VO/UB9ndQRqdu0B3W24r/DXqr5STKkVgAAAAldEVYdGRhdGU6Y3JlYXRl
 ADIwMjItMTAtMDdUMTM6NDY6MzQrMDA6MDBdkMHMAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTEw
 LTA3VDEzOjQ2OjM0KzAwOjAwLM15cAAAAABJRU5ErkJggg==
X-Now-Playing: Buffy Sainte-Marie's _Little Wheel Spin and Spin_: "My
 Country 'Tis Thy People You're Dying"
Date: Fri, 07 Oct 2022 15:47:58 +0200
Message-ID: <87wn9bu4mp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > I don't think I agree.
 Problems with incompatible libgccjit can > happen on other systems as well,
 so the solution should not be limited > to Windows. If that happens, it's
 a packaging problem on those systems. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> I don't think I agree.  Problems with incompatible libgccjit can
> happen on other systems as well, so the solution should not be limited
> to Windows.

If that happens, it's a packaging problem on those systems.

For self-built Emacs versions, it may be a problem, but the solution is
then to rebuild Emacs for the version of libgccjit you've installed now.

In any case, it's not something we have to worry about on our side.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:44:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:44:39 2022
Received: from localhost ([127.0.0.1]:34845 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogneZ-0002aH-37
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:44:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogneW-0002a2-QF
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:44:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52634)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogneR-0006f4-0p; Fri, 07 Oct 2022 09:44:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=IpFj5I/gRhCWIVCdFO0IFKOtZ45BFGfSR04d8m4lmAg=; b=el5k/m+jmCO4
 F4bY5lMKwHWe75LsDJKBuycSU0/xmBCXkJ44k8re2a1abje5c3D6y6AT+neDvWVzTD22eTZ2ZRPNl
 Dc5lClLSxb6GUTX28h6CnrozOo9Ci7DVsMs990EcJUw86yP5tw1glu+Akjj8iCeyCPNCjoQLFT9Ow
 y13kJ4gzuSGnV0ZpHKnyN0xgby7gFhS9gsLpRNTGCekt6oGOKVR+d3ddjZhGufJ8ZayT/wWQ77EsS
 nNKZ3HUKLIN0Y3ZijofvuQVTT2V4J4Fs5FFZcUSNhk7xCuWwax9zv1tny2e6gkAz0yT2+0ckV4e0Y
 DMVkX5THWIGaCMXAyEeFuQ==;
Received: from [87.69.77.57] (port=1970 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogneQ-0004eO-Ee; Fri, 07 Oct 2022 09:44:30 -0400
Date: Fri, 07 Oct 2022 16:44:29 +0300
Message-Id: <83v8ovn3ya.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <8735bzvlbo.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 07 Oct 2022 15:02:03 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
 <8735bzvlbo.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Andrea Corallo <akrl@HIDDEN>,  corwin@HIDDEN,  bartosz.bubak@HIDDEN,
>   58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 15:02:03 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > How is this relevant only to Windows?
> 
> It's relevant to our binary Windows distribution.
> 
> GNU/Linux distributions will make gcc (and the rest) a prerequisite to
> installing the emacs-nativecomp package (or whatever they'll be calling
> it), so it's not an issue there.

I don't think I agree.  Problems with incompatible libgccjit can
happen on other systems as well, so the solution should not be limited
to Windows.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:05:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:05:08 2022
Received: from localhost ([127.0.0.1]:34788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogn2K-0007sM-CV
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:05:08 -0400
Received: from mx.sdf.org ([205.166.94.24]:52507)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ogn2I-0007sD-TB
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:05:07 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297D4tra002313
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 13:04:55 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83wn9bn69q.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 15:54:25 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 13:04:55 +0000
Message-ID: <xjfbkqn3hu0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Andrea Corallo <akrl@HIDDEN>
>> Cc: Lars Ingebrigtsen <larsi@HIDDEN>, corwin@HIDDEN, bartosz.bubak@gma=
il.com,
>>         58318 <at> debbugs.gnu.org
>> Date: Fri, 07 Oct 2022 12:35:52 +0000
>>
>> >> > Maybe there's a misunderstanding of what you meant by "if a compiler
>> >> > isn't present".  By "the compiler" do you mean libgccjit, or is it =
GCC
>> >> > and Binutils (or maybe all 3 together)?  IOW, are you talking about
>> >> > the ability to load existing *.eln files, or are you talking about =
the
>> >> > ability to both load existing *.eln files and produce new ones?
>> >>
>> >> I'm talking about trampolines, nothing else.
>> >
>> > Trampoline generation requires all the 3 components to be present,
>> > AFAIK.  Andrea, am I right?
>>
>> AFAIU only libgccjit and Binutils are necessary, but libgccjit *is* GCC
>> (in the sense another frontend fo the GNU Compiler Collection).  I
>> *think* gcc the binary (read the C frontend) should not be required.
>> But I don't know how distros package libgccjit and gcc, there might be
>> some dendency I'm not aware of.
>
> I didn't mean gcc, I meant cc1.  But maybe libgccjit can play its
> role, I don't know.
>
>> > If it indeed doesn't work (and I wasn't aware it didn't work), we
>> > should try fixing it, if that is feasible.
>>
>> Yes because `yes-or-no-p' is a primitive, so with no trampolines its
>> redefinition is not functional.
>>
>> A quick ad-hoc fix for `yes-or-no-p' is attached.  It does not have a
>> perf impact as `yes-or-no-p' will have to wait for the user input
>> anyway, if okay I can push it.
>
> What about other primitives? fset can be used for more than just this
> one.
>
>> Oherwise another strategy would be to disable direct calls from lisp
>> native code into primitives on Windows, this indeed has a performance
>> impact.
>
> How is this relevant only to Windows?

Windows is the only system where a native compiled Emacs can start even
if libgccjit is not present.  On GNU/Linux we get and error at load time
from the dynamic linker in case.  As a consequence on GNU/Linux Emacs is
always capable of producing trampolines when needed.

> And what do you mean by "disable direct calls from Lisp native code
> into primitives"?  I don't think I understand what this would do in
> practice.

Native compiled elisp calls directly into primitive functions not to go
through funcall.  For this reason when a primitive is redefined we need
to produce a trampoline in order to forward these calls to the funcall
machinery.  If we disable all of this optimization the issue disappears
but indeed that's not good from a performance point of view.

Indeed the other option is to precompile all trampoline AOT when we know
libgccjit is available.  It is actually very simple with something like:

(mapatoms (=CE=BB (f)
            (when (subr-primitive-p (symbol-function f))
              (or (comp-trampoline-search f)
                  (comp-trampoline-compile f)))))

It was not consired worth as trampoline production is very quick, but
might be worth at least for Windows platforms for the discussed reason.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 13:02:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 09:02:18 2022
Received: from localhost ([127.0.0.1]:34784 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogmzZ-0007o4-Te
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:02:18 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52150)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ogmzW-0007nq-U3
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 09:02:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=8/NfhBYgn523bZI7iEvXKt7qLhKtwB4EGclmI+iId/Y=; b=sq4ZB2a8eTcRa1WWdm60eKLneU
 NTBGTzbptuDmZZRDbU5rLFxTR8+Mzy6h8EpAOs5+Ghx8fRnl5G/iEdLXUHAmxZuY4BFnhjMIt9mZC
 JHsPmt07nf2yqAqNo0YKn9eWy4rXscDcWz66lIQ23rErsdBHmOf5dEOVMafPO4Z0OSfs=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ogmzM-0005Zo-D2; Fri, 07 Oct 2022 15:02:06 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83wn9bn69q.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 15:54:25 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN> <83wn9bn69q.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVfTE+MfHS5tbsW
 ChH///8lfn9HAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YKBwwpNllIgTEAAAGHSURBVDjLbZMBtoQg
 CEUxNiC6AaUN6LD/vf2HWtn84ZzM3g0EIgpEgY4osMRE1BUmqiSuLWAXqFqJqlBMsjxEBoARSSjy
 EzT46wD6AlISTY+qHCTeYN78/arWwi+gACurB1RJDixwh+cL+DrqqPQDcPgfap6U1pPsoOpl5LZ7
 qMQl1OMGAtFQyAoWFnDRaKolbYczdJcj9uexgSjsiVaDWHcPEW7BQ88jZAMxpZWHBz7q00RZRdRU
 zHq+gd76D1A+GpHcCcAvUA89jXpGoby3pPKhxTAEDWVdoCdPpvs3YUJVFxAUEFF9r1haqvn2CMwe
 oIsDBL0At9yOcgN9gOXkw9AbgCWxB5zBgYeDR4wPYPsUm9bRRNu+R8oLfFzYwFjcEFTzBsoFElp/
 PqBlmnobhT2gXw5j7DbQFugSm7yAq0Rw8LbLdjjSESFcY7uDRpG4Yy7GfgMdk+tN1+y/1h5qrpg5
 BH0BHD4LjPQNmsfqnsIX8PGggObsWbWliz++sop4kcl7e1r4A+E0i9JeSsXhAAAAJXRFWHRkYXRl
 OmNyZWF0ZQAyMDIyLTEwLTA3VDEyOjQxOjU0KzAwOjAwpLUKtwAAACV0RVh0ZGF0ZTptb2RpZnkA
 MjAyMi0xMC0wN1QxMjo0MTo1NCswMDowMNXosgsAAAAASUVORK5CYII=
X-Now-Playing: Kissing the Pink's _Naked (Special Edition)_: "Desert Song"
Date: Fri, 07 Oct 2022 15:02:03 +0200
Message-ID: <8735bzvlbo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > How is this relevant
 only to Windows? It's relevant to our binary Windows distribution. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> How is this relevant only to Windows?

It's relevant to our binary Windows distribution.

GNU/Linux distributions will make gcc (and the rest) a prerequisite to
installing the emacs-nativecomp package (or whatever they'll be calling
it), so it's not an issue there.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:54:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:54:37 2022
Received: from localhost ([127.0.0.1]:34766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogms9-0007a8-0f
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:54:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39270)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogms6-0007Zu-Hn
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:54:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60720)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogms0-0007Gy-0z; Fri, 07 Oct 2022 08:54:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=5FbBIGeHOo1j1eyGiCnW3bc7sGm7iY9olfKjIvCuwhk=; b=rmeJ1n3Za6ET
 Y79F5UE/03CCKLICeuKx2rjFGC6bk7feKyrfVw0x5R2Bwu7umQOQloAPOt9A5S5ZTYW7gwNV1qM6d
 M9Ov4sz5VqUYIbT24H3HAc4YwFn85MN8t+skOR4/+L6QhFUimojyxXQql5dx8cyzik/R7OrvhzN4k
 lZHfzRO8A/OkkmUG2iIRinWXsnndr981d8vzeT897CISunkll3NRkacdJZwX0EvIFMwx+zFsaqT4n
 Tfy+dWyzSzprT20l4eAM/Fpn8+xUSKtadC9aNQi1xTM99H6eG9FbcgPvAiiZHinjmwrvZYdNAjQ3i
 x6/XwEQOvn+45w1nFt7Ogg==;
Received: from [87.69.77.57] (port=2879 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogmrz-0006xM-5q; Fri, 07 Oct 2022 08:54:27 -0400
Date: Fri, 07 Oct 2022 15:54:25 +0300
Message-Id: <83wn9bn69q.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <xjfilkv3j6f.fsf@HIDDEN> (message from Andrea Corallo on Fri, 
 07 Oct 2022 12:35:52 +0000)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: larsi@HIDDEN, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andrea Corallo <akrl@HIDDEN>
> Cc: Lars Ingebrigtsen <larsi@HIDDEN>, corwin@HIDDEN, bartosz.bubak@HIDDEN,
>         58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 12:35:52 +0000
> 
> >> > Maybe there's a misunderstanding of what you meant by "if a compiler
> >> > isn't present".  By "the compiler" do you mean libgccjit, or is it GCC
> >> > and Binutils (or maybe all 3 together)?  IOW, are you talking about
> >> > the ability to load existing *.eln files, or are you talking about the
> >> > ability to both load existing *.eln files and produce new ones?
> >> 
> >> I'm talking about trampolines, nothing else.
> >
> > Trampoline generation requires all the 3 components to be present,
> > AFAIK.  Andrea, am I right?
> 
> AFAIU only libgccjit and Binutils are necessary, but libgccjit *is* GCC
> (in the sense another frontend fo the GNU Compiler Collection).  I
> *think* gcc the binary (read the C frontend) should not be required.
> But I don't know how distros package libgccjit and gcc, there might be
> some dendency I'm not aware of.

I didn't mean gcc, I meant cc1.  But maybe libgccjit can play its
role, I don't know.

> > If it indeed doesn't work (and I wasn't aware it didn't work), we
> > should try fixing it, if that is feasible.
> 
> Yes because `yes-or-no-p' is a primitive, so with no trampolines its
> redefinition is not functional.
> 
> A quick ad-hoc fix for `yes-or-no-p' is attached.  It does not have a
> perf impact as `yes-or-no-p' will have to wait for the user input
> anyway, if okay I can push it.

What about other primitives? fset can be used for more than just this
one.

> Oherwise another strategy would be to disable direct calls from lisp
> native code into primitives on Windows, this indeed has a performance
> impact.

How is this relevant only to Windows?

And what do you mean by "disable direct calls from Lisp native code
into primitives"?  I don't think I understand what this would do in
practice.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:43:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:43:29 2022
Received: from localhost ([127.0.0.1]:34747 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogmhN-00056D-Cv
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:43:29 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52046)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ogmhL-00055x-9I
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:43:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=uTsYW3mcB6GWh4vC6+ggCuVFIVJXviO0yNsmyLzLarU=; b=oO+dvuT+cJKRmmUFV4Pc/xCFfv
 pdj4QPAH2fl0QmtPdghLnmsT2/fY1tV6b/XqRjnTGFxt+h38xe+6UEV8CO7j2zNwNJP8v256QxFbb
 gjGPe4eTGUEhb6Q63ZQdUjv9LzO+f3ZRJGSD0ZRTi+9Mo/qEAR2FO6JN4w+rqkbzxkRM=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ogmhB-0005S7-Fz; Fri, 07 Oct 2022 14:43:19 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <xjfilkv3j6f.fsf@HIDDEN> (Andrea Corallo's message of "Fri,
 07 Oct 2022 12:35:52 +0000")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
 <xjfilkv3j6f.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVfTE+MfHS5tbsW
 ChH///8lfn9HAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YKBwwpNllIgTEAAAGHSURBVDjLbZMBtoQg
 CEUxNiC6AaUN6LD/vf2HWtn84ZzM3g0EIgpEgY4osMRE1BUmqiSuLWAXqFqJqlBMsjxEBoARSSjy
 EzT46wD6AlISTY+qHCTeYN78/arWwi+gACurB1RJDixwh+cL+DrqqPQDcPgfap6U1pPsoOpl5LZ7
 qMQl1OMGAtFQyAoWFnDRaKolbYczdJcj9uexgSjsiVaDWHcPEW7BQ88jZAMxpZWHBz7q00RZRdRU
 zHq+gd76D1A+GpHcCcAvUA89jXpGoby3pPKhxTAEDWVdoCdPpvs3YUJVFxAUEFF9r1haqvn2CMwe
 oIsDBL0At9yOcgN9gOXkw9AbgCWxB5zBgYeDR4wPYPsUm9bRRNu+R8oLfFzYwFjcEFTzBsoFElp/
 PqBlmnobhT2gXw5j7DbQFugSm7yAq0Rw8LbLdjjSESFcY7uDRpG4Yy7GfgMdk+tN1+y/1h5qrpg5
 BH0BHD4LjPQNmsfqnsIX8PGggObsWbWliz++sop4kcl7e1r4A+E0i9JeSsXhAAAAJXRFWHRkYXRl
 OmNyZWF0ZQAyMDIyLTEwLTA3VDEyOjQxOjU0KzAwOjAwpLUKtwAAACV0RVh0ZGF0ZTptb2RpZnkA
 MjAyMi0xMC0wN1QxMjo0MTo1NCswMDowMNXosgsAAAAASUVORK5CYII=
X-Now-Playing: Kissing the Pink's _Naked (Special Edition)_: "Love Lasts
 Forever"
Date: Fri, 07 Oct 2022 14:43:16 +0200
Message-ID: <87a667vm6z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Andrea Corallo <akrl@HIDDEN> writes: > A quick ad-hoc fix
 for `yes-or-no-p' is attached. It does not have a > perf impact as
 `yes-or-no-p'
 will have to wait for the user input > anyway, if okay I can push it. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: Eli Zaretskii <eliz@HIDDEN>, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Andrea Corallo <akrl@HIDDEN> writes:

> A quick ad-hoc fix for `yes-or-no-p' is attached.  It does not have a
> perf impact as `yes-or-no-p' will have to wait for the user input
> anyway, if okay I can push it.

There's nothing special about yes-or-no-p -- I only used that as an
example.  The same problem exists for (almost) all built-in functions.

> Oherwise another strategy would be to disable direct calls from lisp
> native code into primitives on Windows, this indeed has a performance
> impact.

Yes, that would not be ideal.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:35:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:35:59 2022
Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogma6-0004tF-Sh
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:35:59 -0400
Received: from mx.sdf.org ([205.166.94.24]:55742)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ogma4-0004t5-MT
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:35:58 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 297CZqef003689
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 7 Oct 2022 12:35:53 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <837d1bomsv.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 15:12:00 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
Date: Fri, 07 Oct 2022 12:35:52 +0000
Message-ID: <xjfilkv3j6f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58318
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, corwin@HIDDEN, 58318 <at> debbugs.gnu.org,
 bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Lars Ingebrigtsen <larsi@HIDDEN>
>> Cc: Andrea Corallo <akrl@HIDDEN>,  corwin@HIDDEN,  bartosz.bubak@HIDDEN,
>>   58318 <at> debbugs.gnu.org
>> Date: Fri, 07 Oct 2022 14:04:57 +0200
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> > Maybe there's a misunderstanding of what you meant by "if a compiler
>> > isn't present".  By "the compiler" do you mean libgccjit, or is it GCC
>> > and Binutils (or maybe all 3 together)?  IOW, are you talking about
>> > the ability to load existing *.eln files, or are you talking about the
>> > ability to both load existing *.eln files and produce new ones?
>> 
>> I'm talking about trampolines, nothing else.
>
> Trampoline generation requires all the 3 components to be present,
> AFAIK.  Andrea, am I right?

AFAIU only libgccjit and Binutils are necessary, but libgccjit *is* GCC
(in the sense another frontend fo the GNU Compiler Collection).  I
*think* gcc the binary (read the C frontend) should not be required.
But I don't know how distros package libgccjit and gcc, there might be
some dendency I'm not aware of.

>> > The startup code currently detects that libgccjit is unavailable or
>> > cannot be loaded, and if so, disables all the aspects of
>> > native-compilation: both JIT compilation of *.el and production of the
>> > trampolines.  I'm not aware that when we disable those two, we get
>> > Emacs that is not "fully functional".
>> 
>> If native compilation is disabled in a native-compiled Emacs, then 
>> 
>> (fset 'yes-or-no-p 'y-or-n-p)
>> 
>> doesn't work (for calls to `yes-or-no-p' in native-compiled code).
>> That's what I meant by "not fully functional".
>
> If it indeed doesn't work (and I wasn't aware it didn't work), we
> should try fixing it, if that is feasible.

Yes because `yes-or-no-p' is a primitive, so with no trampolines its
redefinition is not functional.

A quick ad-hoc fix for `yes-or-no-p' is attached.  It does not have a
perf impact as `yes-or-no-p' will have to wait for the user input
anyway, if okay I can push it.

Oherwise another strategy would be to disable direct calls from lisp
native code into primitives on Windows, this indeed has a performance
impact.


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Add-yes-or-no-p-to-native-comp-never-optimize-functi.patch

From a6d736d532e20b6763a7ff1995f952fc293886dd Mon Sep 17 00:00:00 2001
From: Andrea Corallo <akrl@HIDDEN>
Date: Fri, 7 Oct 2022 12:28:51 +0000
Subject: [PATCH] * Add `yes-or-no-p' to
 `native-comp-never-optimize-functions'.

* lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions): Add
`yes-or-no-p'.
---
 lisp/emacs-lisp/comp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 5ee10fcbca2..2812e53bcc2 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -104,7 +104,7 @@ native-comp-never-optimize-functions
   '(;; The following two are mandatory for Emacs to be working
     ;; correctly (see comment in `advice--add-function'). DO NOT
     ;; REMOVE.
-    macroexpand rename-buffer)
+    macroexpand rename-buffer yes-or-no-p)
   "Primitive functions to exclude from trampoline optimization."
   :type '(repeat symbol)
   :version "28.1")
-- 
2.35.1.577.g74cc1aa55f


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:28:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:28:38 2022
Received: from localhost ([127.0.0.1]:34696 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogmT0-0004fa-7T
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:28:38 -0400
Received: from quimby.gnus.org ([95.216.78.240]:51886)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ogmSy-0004fL-0D
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:28:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=7/FBSIPQlCxsFsU3VOAzynGUp4Ui39bjPuE/0nmg6ZE=; b=HDgOafakQ2YnGlmV8Dvpm6Spq4
 l0dhGGKdc5wanIkvVyXR3u+IKykNjzTOOors4078BVgqXmy/FK7AFTdR8i2C9hiPaDhbKmKaeyn+4
 6ETpFpyyCAHsVxBpZGoLtU137LCtZ6xStqDK1Fk7GTL93gYwlbhxdTFatmeNWr0RMZVE=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ogmSn-0005JM-Eq; Fri, 07 Oct 2022 14:28:27 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <837d1bomsv.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 15:12:00 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN> <837d1bomsv.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEWyprD489h1bpeK
 d6VmQjylZ2b///8GzebdAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YKBws3D9dDIGMAAAGXSURBVDjL
 ddPNcoMgEADgFc0dZtp7izwAYcnd4npPGnj/V+mCSGJimUnG4XN/+BE6VYbUbSCi0whqD0QhC2aQ
 6cp/bgOisQI/ThUClbHCR35UErUezTpfQkDFmCL9ZNB1nkKBJXafacqwBZQQkNMwxWWWiE8wZ/gZ
 iJbA4Np8zsURJ+5qegUAFT4ZuDj6+ADLMPCb5ntfowAHuLwOxKdUwKC4eLdCaFJAyfxjMPdWxULb
 XYbL/XQM2F82QAtSSgUVEJ7Ky8SjglVWbD2DSgvICmf1pUSD663VsCp1D4DUAFW8rbm0zqke0KVJ
 6LIlBspV2ODsZx84ZBQMAHy1uhWwp8QBi9U5Ip7SFSp04jcfYK9Lu6d02yLOMpf4EnpheLSb+3J3
 Q7zMAIrfT+m6AaAdFnBkdptYBHywYm6gNrC9idwzvQM6E46h98Gbd+AqAxmD72DBEzr3D6A/AkMj
 mCOINB+DKefxunKGfFD0D/QHUC6X2MFYgc/WE3RvEdbzB2OPQGhtYQ9rsn52r1CL/LpxByPqWoRz
 /QE3dMGfVPkptQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wN1QxMTo1NToxNSswMDowMPMn
 HI0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMDdUMTE6NTU6MTUrMDA6MDCCeqQxAAAAAElF
 TkSuQmCC
X-Now-Playing: Yukihiro Takahashi's _What Me Worry?_: "All You've Got To Do"
Date: Fri, 07 Oct 2022 14:28:24 +0200
Message-ID: <87o7unvmvr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > If it indeed doesn't
 work (and I wasn't aware it didn't work), we > should try fixing it, if that
 is feasible. It's previously been suggested that we might pre-generate all
 the trampolines for binary distributions like this (but of course not load
 them until needed). 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> If it indeed doesn't work (and I wasn't aware it didn't work), we
> should try fixing it, if that is feasible.

It's previously been suggested that we might pre-generate all the
trampolines for binary distributions like this (but of course not load
them until needed).

The trampolines are smallish (16K per file on Ubuntu of which most is
nul bytes, at least), so it should be feasible from a distribution point
of view.

I forget whether the conclusion was that is was feasible or not, though.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:12:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:12:26 2022
Received: from localhost ([127.0.0.1]:34632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogmDJ-0004E5-Vz
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:12:26 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogmDH-0004Dp-Oj
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:12:24 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45670)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogmDA-0000AS-OI; Fri, 07 Oct 2022 08:12:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=0hwvJgkQGVJT6C53nGoLCk7CmMYV5nit4s3CxANvyds=; b=OAnD/EQcWpeP
 JodBCcpU9X2C8S6qVdsFAczgEFufw+0uE5SRE4vGmSzcmWnDtP9FqwORpOiLEhyqcyWhf8Guk6R4H
 YoZjblPDvBMbry4YUxIACP5U9NwqNvgBqwHEgMgUyQtnrVvWZBxsVPn7936D73Zd03+juj5GySlW1
 d8cBjh7xlES5/6QjUL1x2InO19Fq66HZ37jshMdXVi5yQ+R5OEWC2z+St7pzQ5GszZ5yotYjdceg0
 W9XIkNxZm0V6dQGhr9ty4zpA0juBF7iPNkFkhL7x2ZgbwSTEQYIzgX5L7ABjiebxXcpyXRvkC+jcm
 nh8i0dfauQersxezoTXt3Q==;
Received: from [87.69.77.57] (port=4204 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogmCu-0004KU-JT; Fri, 07 Oct 2022 08:12:16 -0400
Date: Fri, 07 Oct 2022 15:12:00 +0300
Message-Id: <837d1bomsv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87sfjzvnyu.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 07 Oct 2022 14:04:57 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
 <87sfjzvnyu.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Andrea Corallo <akrl@HIDDEN>,  corwin@HIDDEN,  bartosz.bubak@HIDDEN,
>   58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 14:04:57 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Maybe there's a misunderstanding of what you meant by "if a compiler
> > isn't present".  By "the compiler" do you mean libgccjit, or is it GCC
> > and Binutils (or maybe all 3 together)?  IOW, are you talking about
> > the ability to load existing *.eln files, or are you talking about the
> > ability to both load existing *.eln files and produce new ones?
> 
> I'm talking about trampolines, nothing else.

Trampoline generation requires all the 3 components to be present,
AFAIK.  Andrea, am I right?

> > The startup code currently detects that libgccjit is unavailable or
> > cannot be loaded, and if so, disables all the aspects of
> > native-compilation: both JIT compilation of *.el and production of the
> > trampolines.  I'm not aware that when we disable those two, we get
> > Emacs that is not "fully functional".
> 
> If native compilation is disabled in a native-compiled Emacs, then 
> 
> (fset 'yes-or-no-p 'y-or-n-p)
> 
> doesn't work (for calls to `yes-or-no-p' in native-compiled code).
> That's what I meant by "not fully functional".

If it indeed doesn't work (and I wasn't aware it didn't work), we
should try fixing it, if that is feasible.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 12:05:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 08:05:10 2022
Received: from localhost ([127.0.0.1]:34598 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogm6H-00041T-Kw
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:05:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:51764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ogm6G-00041D-8j
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 08:05:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=nSB9IpZrHDp2OymX5In0rTGnCsmHKpXeYL1BgvMcj8A=; b=dKv+5q64dIPvwShyFacHUHv/vh
 4LzBXQSt5/gZ43WCd83QopN5+snLvUAjzhvbF4HVLlsWa/L7J0Z7XISB9KMW36cZw05gaWjKdtLz9
 ECgJkZZezSQYTpLqAFw3QwTLpzkP1iVa63A9lzejdld7a9q1qJQrY4Ov70KdKBCumkzs=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ogm65-00057G-Na; Fri, 07 Oct 2022 14:05:00 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83edvjondh.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Oct
 2022 14:59:38 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
 <87a667x3l4.fsf@HIDDEN> <83edvjondh.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEWyprD489h1bpeK
 d6VmQjylZ2b///8GzebdAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YKBws3D9dDIGMAAAGXSURBVDjL
 ddPNcoMgEADgFc0dZtp7izwAYcnd4npPGnj/V+mCSGJimUnG4XN/+BE6VYbUbSCi0whqD0QhC2aQ
 6cp/bgOisQI/ThUClbHCR35UErUezTpfQkDFmCL9ZNB1nkKBJXafacqwBZQQkNMwxWWWiE8wZ/gZ
 iJbA4Np8zsURJ+5qegUAFT4ZuDj6+ADLMPCb5ntfowAHuLwOxKdUwKC4eLdCaFJAyfxjMPdWxULb
 XYbL/XQM2F82QAtSSgUVEJ7Ky8SjglVWbD2DSgvICmf1pUSD663VsCp1D4DUAFW8rbm0zqke0KVJ
 6LIlBspV2ODsZx84ZBQMAHy1uhWwp8QBi9U5Ip7SFSp04jcfYK9Lu6d02yLOMpf4EnpheLSb+3J3
 Q7zMAIrfT+m6AaAdFnBkdptYBHywYm6gNrC9idwzvQM6E46h98Gbd+AqAxmD72DBEzr3D6A/AkMj
 mCOINB+DKefxunKGfFD0D/QHUC6X2MFYgc/WE3RvEdbzB2OPQGhtYQ9rsn52r1CL/LpxByPqWoRz
 /QE3dMGfVPkptQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0wN1QxMTo1NToxNSswMDowMPMn
 HI0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMDdUMTE6NTU6MTUrMDA6MDCCeqQxAAAAAElF
 TkSuQmCC
X-Now-Playing: Yukihiro Takahashi's _What Me Worry?_: "Sayonara"
Date: Fri, 07 Oct 2022 14:04:57 +0200
Message-ID: <87sfjzvnyu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: >> I'm sorry, I don't
 follow you. If trampolines can't be installed, then >> Emacs isn't fully
 functional, because you can't say >> >> (fset 'yes-or-no-p 'y-or-n-p) >> >>
 and have that be respected. I [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN,
 Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> I'm sorry, I don't follow you.  If trampolines can't be installed, then
>> Emacs isn't fully functional, because you can't say
>> 
>> (fset 'yes-or-no-p 'y-or-n-p)
>> 
>> and have that be respected.  I.e., the non-functional bit is about
>> redefinitions of built-in functions, which is pretty basic functionality
>> in Emacs.
>
> Maybe there's a misunderstanding of what you meant by "if a compiler
> isn't present".  By "the compiler" do you mean libgccjit, or is it GCC
> and Binutils (or maybe all 3 together)?  IOW, are you talking about
> the ability to load existing *.eln files, or are you talking about the
> ability to both load existing *.eln files and produce new ones?

I'm talking about trampolines, nothing else.

> The startup code currently detects that libgccjit is unavailable or
> cannot be loaded, and if so, disables all the aspects of
> native-compilation: both JIT compilation of *.el and production of the
> trampolines.  I'm not aware that when we disable those two, we get
> Emacs that is not "fully functional".

If native compilation is disabled in a native-compiled Emacs, then 

(fset 'yes-or-no-p 'y-or-n-p)

doesn't work (for calls to `yes-or-no-p' in native-compiled code).
That's what I meant by "not fully functional".





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 11:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 07:59:52 2022
Received: from localhost ([127.0.0.1]:34570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogm19-0003pu-Sw
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 07:59:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60188)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogm17-0003pg-Oy
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 07:59:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53830)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogm10-000680-Bv; Fri, 07 Oct 2022 07:59:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=rw2YM7Wya3+dDNb7/X4aG8vfWCB6PHVZ4P+eW0OS3R8=; b=YqC1W//16KBE
 gFkqll77ShKaMCvtQfd/SuHTSYAsmWubh0jlnCG/I+XIunBtZUSg8mzS/bhMKCzT7gdshWQ43MNDN
 o9EQ2/GmtdlA7liq1Y5ROVv2xMLZZdjXfvrsNLw7KRlYR9bvvhsnbCcUYVh2rFxzJRbOBAY2GSdcl
 cZji+B69LjB8SLZrmVbEUOx658+UNfqjSTvhd+OZUei1cfjoWmXj9V2GUzodahFYakXVL4Qiz1Kaa
 pLO1UHVYfE9Uc4MGa4/CpQHUJROkYek+kPG7ZOwJ76Hcx2q+iBS9berdPrvqaZhSuSSNEdTtG/OVg
 HOOS2ORVAz7nBLLtAHhcCg==;
Received: from [87.69.77.57] (port=3444 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogm0z-0002vl-Le; Fri, 07 Oct 2022 07:59:42 -0400
Date: Fri, 07 Oct 2022 14:59:38 +0300
Message-Id: <83edvjondh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>, Andrea Corallo <akrl@HIDDEN>
In-Reply-To: <87a667x3l4.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 07 Oct 2022 13:42:15 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN> <87a667x3l4.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: corwin@HIDDEN,  bartosz.bubak@HIDDEN,  58318 <at> debbugs.gnu.org
> Date: Fri, 07 Oct 2022 13:42:15 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> It shouldn't try to compile .el(c) files, but it needs the compiler to
> >> make trampolines to redefine built-in functions.  So a nativecomp Emacs
> >> isn't fully functional if a compiler isn't present.
> >
> > No, the last conclusion incorrect.  See my other mail in this thread.
> 
> I'm sorry, I don't follow you.  If trampolines can't be installed, then
> Emacs isn't fully functional, because you can't say
> 
> (fset 'yes-or-no-p 'y-or-n-p)
> 
> and have that be respected.  I.e., the non-functional bit is about
> redefinitions of built-in functions, which is pretty basic functionality
> in Emacs.

Maybe there's a misunderstanding of what you meant by "if a compiler
isn't present".  By "the compiler" do you mean libgccjit, or is it GCC
and Binutils (or maybe all 3 together)?  IOW, are you talking about
the ability to load existing *.eln files, or are you talking about the
ability to both load existing *.eln files and produce new ones?

The startup code currently detects that libgccjit is unavailable or
cannot be loaded, and if so, disables all the aspects of
native-compilation: both JIT compilation of *.el and production of the
trampolines.  I'm not aware that when we disable those two, we get
Emacs that is not "fully functional".

Andrea, am I missing something?

The problem in this bug is that libgccjit _is_ available, but somehow
is not functional when actually used.  (The details are still sketchy
and not understood well enough.)  This situation might not be
supported yet, but when we understand it well enough, we should make
Emacs behave the same as when libgccjit is unavailable (perhaps with
some more specific message in *Messages*), because nothing else makes
sense.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 7 Oct 2022 11:42:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 07 07:42:31 2022
Received: from localhost ([127.0.0.1]:34543 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oglkN-0003Na-1G
	for submit <at> debbugs.gnu.org; Fri, 07 Oct 2022 07:42:31 -0400
Received: from quimby.gnus.org ([95.216.78.240]:51556)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oglkI-0003NI-Kq
 for 58318 <at> debbugs.gnu.org; Fri, 07 Oct 2022 07:42:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=RO8nwm8g7xYWaj8+e1NMWUzcLeJafVboZCDtd9ajKyQ=; b=fSydLjbcomrWKRnKqhoCh0EkEK
 VLX57LsCnFYNGD+YaZuVTWq/o7+O4nMrnuXu3UFMd9YS5iLcqIOPG0EFOitYr/vtg1WHzpQbcP3V8
 G7sUdFuHGIl4MA1JRdXP2t2zEO/nmzmgX1FRTL2hxC3VNWRdqktJSF8C06Ba7YRJFqOc=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oglk7-0004xw-Tw; Fri, 07 Oct 2022 13:42:18 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <83k05dovwq.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 06 Oct
 2022 17:43:01 +0300")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN> <83k05dovwq.fsf@HIDDEN>
X-Now-Playing: Yukihiro Takahashi's _Murdered by the Music_: "Blue Colour
 Worker"
Date: Fri, 07 Oct 2022 13:42:15 +0200
Message-ID: <87a667x3l4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> It shouldn't try to
 compile .el(c) files, but it needs the compiler to >> make trampolines to
 redefine built-in functions. So a nativecomp Emacs >> isn't fully functional
 if a compiler isn't presen [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> It shouldn't try to compile .el(c) files, but it needs the compiler to
>> make trampolines to redefine built-in functions.  So a nativecomp Emacs
>> isn't fully functional if a compiler isn't present.
>
> No, the last conclusion incorrect.  See my other mail in this thread.

I'm sorry, I don't follow you.  If trampolines can't be installed, then
Emacs isn't fully functional, because you can't say

(fset 'yes-or-no-p 'y-or-n-p)

and have that be respected.  I.e., the non-functional bit is about
redefinitions of built-in functions, which is pretty basic functionality
in Emacs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 6 Oct 2022 14:43:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 10:43:13 2022
Received: from localhost ([127.0.0.1]:33150 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogS5h-0007tO-AX
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 10:43:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33786)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogS5e-0007t9-QZ
 for 58318 <at> debbugs.gnu.org; Thu, 06 Oct 2022 10:43:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53838)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogS5Z-0008Tf-FC; Thu, 06 Oct 2022 10:43:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=45N4zfRM2PIJnSAEAYNm+J3zvpTkfO+Qkw8EKJxPtrM=; b=H8DR6UikToH+
 U6SZLQvLskNR4TNVCeTzTW00oE3WpUIyKLWYNa3rfBvdrDI1OFgel4zjPcM0LAyo+a+IrfTrul61n
 osxmdN7XILQ9DrO2Rco24x4nXoE4I+5SEhOA9eoZrNVhMxeaz+gvuN3rO0Zr4BlYfb4NEdQ8jqqfd
 EOYkceNK55vwGZn3DH98XEzR5n+FeaF2P/hT1m1q9VoK6l30ZHRKn7dihC6AGKg+ajUIcBM3M79wS
 CU+AZGVfYJeXEd2lGCpKIKqW89rrS9/zt1RFZJqv2+Sv6f0O382kcTYOjVq4fluo/Dsc1UCiiYzKh
 xwFoI7/SYpsOscR3chONeA==;
Received: from [87.69.77.57] (port=4806 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogS5Y-0004N5-1o; Thu, 06 Oct 2022 10:43:05 -0400
Date: Thu, 06 Oct 2022 17:43:01 +0300
Message-Id: <83k05dovwq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87zge9w049.fsf@HIDDEN> (message from Lars Ingebrigtsen on Thu, 
 06 Oct 2022 15:30:14 +0200)
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 <87zge9w049.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: corwin@HIDDEN, bartosz.bubak@HIDDEN, 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  58318 <at> debbugs.gnu.org,  Bartosz Bubak
>  <bartosz.bubak@HIDDEN>
> Date: Thu, 06 Oct 2022 15:30:14 +0200
> 
> Corwin Brust <corwin@HIDDEN> writes:
> 
> > It looks from this that Emacs doesn't find (a complete) GCC kit for
> > use with GCC, so your Emacs should be loading ELN files shipped with
> > the release but not trying to compile any new ones, I think?
> >
> > Unfortunately, that just makes the "Error: Internal native compiler
> > error failed to compile" even more of a mystery:
> 
> It shouldn't try to compile .el(c) files, but it needs the compiler to
> make trampolines to redefine built-in functions.  So a nativecomp Emacs
> isn't fully functional if a compiler isn't present.

No, the last conclusion incorrect.  See my other mail in this thread.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 6 Oct 2022 14:41:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 10:41:43 2022
Received: from localhost ([127.0.0.1]:33139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogS4F-0007qe-4I
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 10:41:43 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50758)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogS4A-0007qO-Bo
 for 58318 <at> debbugs.gnu.org; Thu, 06 Oct 2022 10:41:42 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51164)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogS44-0008G2-RF; Thu, 06 Oct 2022 10:41:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=l18JD4rOc3hUG+RH/E7J1gCrjWqSIh+/2xFf+MaiIcY=; b=NHpa0YrspG8D
 FCtW9pD6gqFRxkcCRJhKs6YGo2pqvqOnON8sQlN7/YiPeLZmnqgK07YJE6T7LDRPLuMMmeSEGqE7k
 4bTUwW6lEWT7ThL8zJgpY4zlXWod1sr7p36Pmo0t1io+wapMrZADAolva8EP5X+xLVOGlIQ4y3AT0
 SKsrCXsc5AreEjiSrS0QChazMG6VkF0IemJPqHUxwY79S/jPnF4OROs1+07gcM9uQIjUEUK73xT6c
 YNkOA6eoT1LE4vWxpfKUHoYiQI5U2cTm1BsvSgbiBjvGd1Nakn/V867Yu9RqOzuWvy71cweFZhBOF
 og2L/GyFtRD9k+J9IU0hcg==;
Received: from [87.69.77.57] (port=4711 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogS43-0004Bp-B5; Thu, 06 Oct 2022 10:41:31 -0400
Date: Thu, 06 Oct 2022 17:41:27 +0300
Message-Id: <83leptovzc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 (message from Corwin Brust on Thu, 6 Oct 2022 08:09:16 -0500)
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: 58318 <at> debbugs.gnu.org, bartosz.bubak@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Corwin Brust <corwin@HIDDEN>
> Date: Thu, 6 Oct 2022 08:09:16 -0500
> Cc: Bartosz Bubak <bartosz.bubak@HIDDEN>, 58318 <at> debbugs.gnu.org
> 
> If, per the configuration reported when generating this bug report,
> Emacs can see libgccjit is not available, then should Emacs still be
> trying to native compile org-entitles in this case?

No, it should disable that in startup.el:

    (when (featurep 'native-compile)
      (unless (native-comp-available-p)
        ;; Disable deferred async compilation and trampoline synthesis
        ;; in this session.  This is necessary if libgccjit is not
        ;; available on MS-Windows, but Emacs was built with
        ;; native-compilation support.
        (setq native-comp-deferred-compilation nil
              comp-enable-subr-trampolines nil))

But libgccjit DLL _is_ available in this case, so maybe the test
doesn't discover the problem.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 6 Oct 2022 13:30:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 09:30:30 2022
Received: from localhost ([127.0.0.1]:59416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogQxJ-0007Bq-N4
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 09:30:30 -0400
Received: from quimby.gnus.org ([95.216.78.240]:41744)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ogQxE-0007BL-OP
 for 58318 <at> debbugs.gnu.org; Thu, 06 Oct 2022 09:30:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=SX65jjDqjlEG+sFPpltG7ak1Xs/tijLRhQT/tzOsTWQ=; b=JHngQn7pZi3WJ/Lgr8mgLHovFG
 C1SkyotpBovUF6l4ON5sDFhvp+TCnyMdRm5qhqbAqCiaDY8Q5S00nzBbTnTH25AU1jvg09fpMcvNc
 R86ub0+gAY1OgsHMbHCqIWhJSrwNsCHj5EuKNeLbUqW/aqQhs4m3Q3U2FS+gvxBiR1a8=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ogQx4-0003Lm-Nk; Thu, 06 Oct 2022 15:30:17 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
Subject: Re: bug#58318: 28.2; Emacs installed from package won't work with
 MinGW
In-Reply-To: <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
 (Corwin Brust's message of "Thu, 6 Oct 2022 08:09:16 -0500")
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
 <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUzLzBMTDdBPTRn
 ajqZoDivxTjb5S4PDQ01O0M5SExVWVg7RDlBPUKLlG7///+ItTPNAAAAAWJLR0QOb70wTwAAAAd0
 SU1FB+YKBgw4MSxJUOcAAAGDSURBVDjL1ZOxboMwEIYPltDSShyeqi6EN7BM+wLQvkBDnyBh7paV
 EbaM0C7MFkjJ1oglc6S+QfMutREQkxB16dJDGPF/uv/OJxvgHwS64F5imnUBMOo6J5KjywRvRm1V
 1d0pIjqgPyx81UyXMkGZEgyAIHbrQHG0vBbYNowCNp4Alj6e8GtM/gxMzoGRynU5ApIGnJtI3SiW
 b+2vud423zTjeZ5nqw5c83YOiZDzWFi1QMNuQEYSNzU6YN31xVcqAFz31eNL+4uPOzdkkzfiacof
 wWeSXGVxCbzYSYkXx+QEkrS4Lb85lABVMXBOy8PXoar4jlcnk3gvS873APtyCNKVKdY1nMU2+6g3
 23ykfbPGDaGIA/FevLWNG8bQdgag1igVgyQMFd2Rp88LfUQNVSAvkPYUBjNx1imxVCPhEQSLkHoU
 iQ2OIhPqhVE0R2SEUeyOrsYIoew5iiKRwBglHUCcIsVHAV4IMp/2G9FRF8B7jcIFC3xU2kIZxIvm
 oc8s6MEPo/hbI+3QpFIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMTAtMDZUMTI6NTY6NDkrMDA6
 MDCE8j7BAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTEwLTA2VDEyOjU2OjQ5KzAwOjAw9a+GfQAA
 AABJRU5ErkJggg==
X-Now-Playing: Spiritualized's _Still in a Dream (3)_: "Run"
Date: Thu, 06 Oct 2022 15:30:14 +0200
Message-ID: <87zge9w049.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Corwin Brust <corwin@HIDDEN> writes: > It looks from this
 that Emacs doesn't find (a complete) GCC kit for > use with GCC, so your Emacs
 should be loading ELN files shipped with > the release but not trying to
 compile any new ones, I thi [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: Eli Zaretskii <eliz@HIDDEN>, Bartosz Bubak <bartosz.bubak@HIDDEN>,
 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Corwin Brust <corwin@HIDDEN> writes:

> It looks from this that Emacs doesn't find (a complete) GCC kit for
> use with GCC, so your Emacs should be loading ELN files shipped with
> the release but not trying to compile any new ones, I think?
>
> Unfortunately, that just makes the "Error: Internal native compiler
> error failed to compile" even more of a mystery:

It shouldn't try to compile .el(c) files, but it needs the compiler to
make trampolines to redefine built-in functions.  So a nativecomp Emacs
isn't fully functional if a compiler isn't present.

To check whether this is what's happening in this case, try to say:

(fset 'yes-or-no-p 'y-or-n-p)

You should get a file called something like

subr--trampoline-7965732d6f722d6e6f2d70_yes_or_no_p_0.eln

in your eln-cache directory.  If this leads to that mysterious error
message, then that's probably what's happening here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 6 Oct 2022 13:09:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 09:09:38 2022
Received: from localhost ([127.0.0.1]:59375 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogQd8-0006db-1t
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 09:09:38 -0400
Received: from mail-oo1-f43.google.com ([209.85.161.43]:45963)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1ogQd6-0006dL-1x
 for 58318 <at> debbugs.gnu.org; Thu, 06 Oct 2022 09:09:36 -0400
Received: by mail-oo1-f43.google.com with SMTP id
 s1-20020a4a81c1000000b0047d5e28cdc0so1333815oog.12
 for <58318 <at> debbugs.gnu.org>; Thu, 06 Oct 2022 06:09:36 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date;
 bh=Zn6BgP9u3NiZNln0tbqy7JIJHpaJzqY1cE4WAbs9mJ4=;
 b=Lli3xKJtuKM/SfHLBCZ8MUBk2cFJJQe7UJWXSlx04qDji6d+99NywOmdKJDwwl27jW
 mtpiJoj/YbpXZOZwBYYKSOZZDQ90We2RoaHOIBHBjlQdQlmU7L4LeU4WuSBk/N42tZ9S
 TTrRVjzZ/N3OtmsJnVh9neCJYbevGVqQSRQezAqEPORn7tsc+bUCYf1Fh8mBudOyGXfO
 gDomURS/RJG2AcqgKp+RViSACrX2HcvVqO5k+0MjnXYlhq1v3OF6WmBVtH6tSMsLG//q
 MBPnxQkwoXSUHrp+lle7DCNBPV6vWnM54W+3tZtgzFi4rRXhBUnL6f4aPt9Q/40UEf9p
 z8xA==
X-Gm-Message-State: ACrzQf0yb9eoomaYVYIABqm++nX8LNC3yDt5bWfBZ58rXI8dKz+9e6aT
 wioC4fZ7as5FYHKk8vPaHt5Xi1o4XsmQJ0ceLom8J7fgX10=
X-Google-Smtp-Source: AMsMyM6bowkLf1mOLHXGarwOFeKJCB3UOZBy5wl23w5FyydEgvdu7VI9WTH5LAtmJ4ZzVcDQKyIkUNMg8Fj/HGEINrs=
X-Received: by 2002:a05:6830:208e:b0:65a:c07:cca0 with SMTP id
 y14-20020a056830208e00b0065a0c07cca0mr1810361otq.65.1665061767927; Thu, 06
 Oct 2022 06:09:27 -0700 (PDT)
MIME-Version: 1.0
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 <835ygxsdyu.fsf@HIDDEN>
In-Reply-To: <835ygxsdyu.fsf@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Thu, 6 Oct 2022 08:09:16 -0500
Message-ID: <CAJf-WoRbE4BknoYRv-0fxmF8N7DQzZuEV869bXNRjc374anp3w@HIDDEN>
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 58318
Cc: 58318 <at> debbugs.gnu.org, Bartosz Bubak <bartosz.bubak@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Thu, Oct 6, 2022 at 12:44 AM Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > From: Bartosz Bubak <bartosz.bubak@HIDDEN>
> > Date: Wed, 5 Oct 2022 18:01:00 +0200
> >
> > When installing Emacs using the installer (emacs-28.2-installer.exe),
> > by default it adds the compiler and libraries (gcc and libgccjit)
> > to the ./bin directory without prompting the user for his opinion.

I'm confused.  With one exception, I do not think that we provide GCC
with Emacs binaries for windows.

We *do* provide libgcc_s_seh-1.dll but we do not provide, e.g.
gcc.exe, as.exe, etc.

> >
> > The problem appears when another compiler is already installed in the
> > system, eg. from MinGW. Emacs then tries to use the libraries from PATH
> > instead of those installed in its subdirectories:
> >
> > Warning (comp): c: /tools/emacs/share/emacs/28.2/lisp/org/org-entities.el:
> > Error: Internal native compiler error failed to compile
> > Warning (comp): C: \\ ProgramData \\ chocolatey \\ lib \\ mingw \\ tools \\
> > install \\ mingw64 \\ bin \\ libgccjit-0.dll: error: error invoking gcc
> > driver

It does make sense to me that having two different versions of GCC
both findable on the Windows path could be problematic (although I
don't see how the Emacs installer could be responsible for installing
any of them).


> >
> > When I tried to find a solution to the problem, I found something like
> > this:
> >
> > M-: (executable-find "gcc") RET
> > "c:/ProgramData/chocolatey/bin/gcc.exe
> > M-: (executable-find "as") RET
> > "c:/ProgramData/chocolatey/bin/as.exe"
> > etc, etc
> >
> > But  should be:
> > C:\Program Files\Emacs\emacs-28.2\bin\gcc.exe
> > C:\Program Files\Emacs\emacs-28.2\bin\as.exe

That's very odd -- looking at the "install" folder created when I
built and packaged the emacs-28 binaries I can't find either of those
files:

  corwi@Avalon MINGW64 /d/emacs-build/install/emacs-28.2
  $ (cd /d/emacs-build/install/emacs-28.2; ls -Rl | grep 'as.exe')

  corwi@Avalon MINGW64 /d/emacs-build/install/emacs-28.2
  $ (cd /d/emacs-build/install/emacs-28.2; ls -Rl | grep 'gcc')
  -rwxr-xr-x 1 corwi corwi   84147 Feb 20  2022 libgcc_s_seh-1.dll
  -rw-r--r-- 1 corwi corwi  10282 Sep  6 16:31 gcc.el
  -rw-r--r-- 1 corwi corwi   4680 Sep  6 18:05 gcc.elc

> >
> > The only solution I have found so far is to uninstall the "global"
> > MinGW, then emacs uses the embedded libraries and everything is fine.
> >
> > In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
> >  of 2022-09-13 built on AVALON
> > Windowing system distributor 'Microsoft Corp.', version 10.0.22000
> > System Description: Microsoft Windows 10 Pro (v10.0.2009.22000.978)
> >
> > Configured using:
> >  'configure --with-modules --without-dbus --with-native-compilation
> >  --without-compress-install CFLAGS=-O2'
> >
> > Configured features:
> > ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
> > NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
> > XPM ZLIB
> >
> > (NATIVE_COMP present but libgccjit not available)

It looks from this that Emacs doesn't find (a complete) GCC kit for
use with GCC, so your Emacs should be loading ELN files shipped with
the release but not trying to compile any new ones, I think?

Unfortunately, that just makes the "Error: Internal native compiler
error failed to compile" even more of a mystery:

Eli,
If, per the configuration reported when generating this bug report,
Emacs can see libgccjit is not available, then should Emacs still be
trying to native compile org-entitles in this case?

> >
> > Important settings:
> >   value of $LANG: PLK
> >   locale-coding-system: cp1250
>
> Corwin, are you reading this?

Yes, I am now.  Thank you.

>
> I admit I don't have a clear idea of why the problem happens.  Is the
> libgccjit and/or GCC and/or Binutils distributed by chocolatey somehow
> incompatible with the ones you include in the installer?  Because if
> they are compatible, just removing the GCC/Binutils stuff bundled with
> the Emacs installer should have solved the issue (and then providing
> an option in the installer not to install the bundled GCC would be a
> way towards solving this).  And yet the OP seems to say (AFAIU) that
> this didn't help, and only uninstalling the chocolatey GCC/Binutils
> did.  We cannot possibly ask users to uninstall their existing
> development environment when installing Emacs.

I'm not aware of any incompatibilities but I'm not a chocolatey user.
I'll need to do some experimentation.

I'd be happy to add/adjust installer options.  Would we (probably most
simply?) add an option where we can "uncheck" installing all of the
deps?  If not, what else would the new option suppress installing
(beside libgcc_s_seh-1.dll)?

>
> I think someone should try installing the chocolatey distribution and
> see whether the binaries from the GNU FTP site can work with its
> libgccjit.  Because I'm not sure I understand what happens in this
> case, even though I asked several times.  If indeed there's
> incompatibility, I'd be interested to know why (I have no idea how
> chocolatey builds its GCC).  If that is not solvable, we should
> probably say that people with chocolatey installation should not
> install Emacs binaries with native-compilation enabled.

I'll get the machine I'm using to test release binaries going on this
today after work and report back with any success I have
reproducing/researching. Others' findings would be most welcome if
anyone else is experimenting with this too.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at 58318 <at> debbugs.gnu.org:


Received: (at 58318) by debbugs.gnu.org; 6 Oct 2022 05:44:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 01:44:54 2022
Received: from localhost ([127.0.0.1]:58569 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogJgk-0002GC-5m
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2022 01:44:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41028)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ogJgg-0002Fn-Ax
 for 58318 <at> debbugs.gnu.org; Thu, 06 Oct 2022 01:44:53 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37456)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogJga-0006Fx-GH; Thu, 06 Oct 2022 01:44:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=5VzdG4P8UbB9L1/ZTF9mpIREjnuDfXtIC9uXvuG8W3o=; b=jQzc8hlAniHu
 iLreeyCgl1dUyHKqUcfZrac9Z1XO9C6VRlkneGukja1BJyrG/1j0weqWC87wqC4mNEwvKPOMljZQ0
 DP4WdPBQ3ZZ9Pb4wCXROGK7z+C7Z2nopdmccUlhkuylVK2DTb1T2beSWAI2to04s4bb93+/KIQFI/
 OI4O4eVvhxN3NKcvkAk3QBzNATNW3M/w/CBxpfIILwxb50aFUW9uf/7GPassP62eNV8lul8XrITJU
 k9RaPigtd7AuriJUc6DEpYT/0gEHHqSFnqO3RmjlM1wNZR1NjE9+w2GKQcnMAVEej6AZchutgrrQ3
 6vfDvF0kTaMRI3hPMNAzFw==;
Received: from [87.69.77.57] (port=3503 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ogJgY-0003jY-Bb; Thu, 06 Oct 2022 01:44:44 -0400
Date: Thu, 06 Oct 2022 08:44:41 +0300
Message-Id: <835ygxsdyu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Bartosz Bubak <bartosz.bubak@HIDDEN>, Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
 (message from Bartosz Bubak on Wed, 5 Oct 2022 18:01:00 +0200)
Subject: Re: bug#58318: 28.2;
 Emacs installed from package won't work with MinGW
References: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58318
Cc: 58318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Bartosz Bubak <bartosz.bubak@HIDDEN>
> Date: Wed, 5 Oct 2022 18:01:00 +0200
> 
> When installing Emacs using the installer (emacs-28.2-installer.exe),
> by default it adds the compiler and libraries (gcc and libgccjit)
> to the ./bin directory without prompting the user for his opinion.
> 
> The problem appears when another compiler is already installed in the
> system, eg. from MinGW. Emacs then tries to use the libraries from PATH
> instead of those installed in its subdirectories:
> 
> Warning (comp): c: /tools/emacs/share/emacs/28.2/lisp/org/org-entities.el:
> Error: Internal native compiler error failed to compile
> Warning (comp): C: \\ ProgramData \\ chocolatey \\ lib \\ mingw \\ tools \\
> install \\ mingw64 \\ bin \\ libgccjit-0.dll: error: error invoking gcc
> driver
> 
> When I tried to find a solution to the problem, I found something like
> this:
> 
> M-: (executable-find "gcc") RET
> "c:/ProgramData/chocolatey/bin/gcc.exe
> M-: (executable-find "as") RET
> "c:/ProgramData/chocolatey/bin/as.exe"
> etc, etc
> 
> But  should be:
> C:\Program Files\Emacs\emacs-28.2\bin\gcc.exe
> C:\Program Files\Emacs\emacs-28.2\bin\as.exe
> 
> The only solution I have found so far is to uninstall the "global"
> MinGW, then emacs uses the embedded libraries and everything is fine.
> 
> In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
>  of 2022-09-13 built on AVALON
> Windowing system distributor 'Microsoft Corp.', version 10.0.22000
> System Description: Microsoft Windows 10 Pro (v10.0.2009.22000.978)
> 
> Configured using:
>  'configure --with-modules --without-dbus --with-native-compilation
>  --without-compress-install CFLAGS=-O2'
> 
> Configured features:
> ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
> NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
> XPM ZLIB
> 
> (NATIVE_COMP present but libgccjit not available)
> 
> Important settings:
>   value of $LANG: PLK
>   locale-coding-system: cp1250

Corwin, are you reading this?

I admit I don't have a clear idea of why the problem happens.  Is the
libgccjit and/or GCC and/or Binutils distributed by chocolatey somehow
incompatible with the ones you include in the installer?  Because if
they are compatible, just removing the GCC/Binutils stuff bundled with
the Emacs installer should have solved the issue (and then providing
an option in the installer not to install the bundled GCC would be a
way towards solving this).  And yet the OP seems to say (AFAIU) that
this didn't help, and only uninstalling the chocolatey GCC/Binutils
did.  We cannot possibly ask users to uninstall their existing
development environment when installing Emacs.

I think someone should try installing the chocolatey distribution and
see whether the binaries from the GNU FTP site can work with its
libgccjit.  Because I'm not sure I understand what happens in this
case, even though I asked several times.  If indeed there's
incompatibility, I'd be interested to know why (I have no idea how
chocolatey builds its GCC).  If that is not solvable, we should
probably say that people with chocolatey installation should not
install Emacs binaries with native-compilation enabled.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Oct 2022 20:33:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 05 16:33:16 2022
Received: from localhost ([127.0.0.1]:58195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ogB4t-000345-Iq
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2022 16:33:16 -0400
Received: from lists.gnu.org ([209.51.188.17]:38194)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bartosz.bubak@HIDDEN>) id 1og6pt-0004OI-Su
 for submit <at> debbugs.gnu.org; Wed, 05 Oct 2022 12:01:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39354)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bartosz.bubak@HIDDEN>)
 id 1og6ps-0008EK-WF
 for bug-gnu-emacs@HIDDEN; Wed, 05 Oct 2022 12:01:29 -0400
Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]:44566)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <bartosz.bubak@HIDDEN>)
 id 1og6pe-0007x5-65
 for bug-gnu-emacs@HIDDEN; Wed, 05 Oct 2022 12:01:28 -0400
Received: by mail-oa1-x2e.google.com with SMTP id
 586e51a60fabf-132b8f6f1b2so4792289fac.11
 for <bug-gnu-emacs@HIDDEN>; Wed, 05 Oct 2022 09:01:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date; bh=oX9Apyq9vYMFCxDjYHO1cTWPk6tvTeHSugVW73M83r0=;
 b=lWKfz5e7Y7WXcnOzvGy/D+Hz+b+jIOZZcO8qVtvP/4RHaDU1z4VKAz3C4Zqpi4xLze
 s6ggK80GEh0CWNGzLclhygVwv0LpMzk/rzoVP4XmjLLqQrux4WprpfSk2+sNPgafsin1
 fv6HsHHQBXZArYa0+K98ChMtVdJuOgvBTdoWmvCpcUk993AQ7EmT6pJC3wdPHTwUZGoJ
 Ui0ZeO0/cu7Ypvu5iqDRtvLT4HRm9vCT7rh+8bN4+7wXLStRS6tR9Urew1ukwiTL2qu1
 J84TL0XxJnx0w5Gd5eUJWeZVgMoOyf3CGC4nbKwDV7eDO2v/gn2lnn9fJvheWLY9UIEC
 HJcA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date;
 bh=oX9Apyq9vYMFCxDjYHO1cTWPk6tvTeHSugVW73M83r0=;
 b=MDJKPjQ+QJm4D+4cHldal+AHTCLVDWYn4iSJzpEuB/y7iVYCoVCuUtJwRr77wZzWor
 kIlFhwXA09rMFWsXQcKS2fmJ76pz0SjNj8loogjI3QI7W83Spoc8w5QhQspjeuKFL1/E
 v2dtgOp6ZHB2idT6EBx4g2rqWeGIm0ZwjYh+9NUCV82kZC465MmB0b/j83L7dEycv/0c
 /v20chj0bmw+QdP70A40gNTsHpJ+OER3pFbMAfGH2Fk9ijfMjI8Me+k+x8iGhyERi4CA
 oECo/lo2HH7lgcGSpa8wlUoGK+FEZSUfpaQ6fimVETvEdho5drlJ967qBx40BEKjSYK0
 0ChA==
X-Gm-Message-State: ACrzQf03wKRX6FMfQPPT1+4T4FCI54C+FAeEDDngWccKgUY1STz0ab3E
 kOcaFNVVJobdaLiSdwPfJfa0AI3Umj+Z9euwKBfG2Ld4isY=
X-Google-Smtp-Source: AMsMyM4oU2jCiR+tcrLFFJjD9Ns+u5VIEPLpGlhppARvD2ZVek0WtZcm5qrpdqGSs+8FM4W+4y/9s7tRz2X5ua7iTps=
X-Received: by 2002:a05:6870:e750:b0:132:9b8a:7b1e with SMTP id
 t16-20020a056870e75000b001329b8a7b1emr144002oak.67.1664985670989; Wed, 05 Oct
 2022 09:01:10 -0700 (PDT)
MIME-Version: 1.0
From: Bartosz Bubak <bartosz.bubak@HIDDEN>
Date: Wed, 5 Oct 2022 18:01:00 +0200
Message-ID: <CAFH7cOoWpRiPb3QWSpdvm3gTMWAVO=mN8DgrxVVjZJewrXqReg@HIDDEN>
Subject: 28.2; Emacs installed from package won't work with MinGW
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000079bd3205ea4baf1d"
Received-SPF: pass client-ip=2001:4860:4864:20::2e;
 envelope-from=bartosz.bubak@HIDDEN; helo=mail-oa1-x2e.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,
 HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 05 Oct 2022 16:33:13 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--00000000000079bd3205ea4baf1d
Content-Type: text/plain; charset="UTF-8"

When installing Emacs using the installer (emacs-28.2-installer.exe),
by default it adds the compiler and libraries (gcc and libgccjit)
to the ./bin directory without prompting the user for his opinion.

The problem appears when another compiler is already installed in the
system, eg. from MinGW. Emacs then tries to use the libraries from PATH
instead of those installed in its subdirectories:

Warning (comp): c: /tools/emacs/share/emacs/28.2/lisp/org/org-entities.el:
Error: Internal native compiler error failed to compile
Warning (comp): C: \\ ProgramData \\ chocolatey \\ lib \\ mingw \\ tools \\
install \\ mingw64 \\ bin \\ libgccjit-0.dll: error: error invoking gcc
driver

When I tried to find a solution to the problem, I found something like
this:

M-: (executable-find "gcc") RET
"c:/ProgramData/chocolatey/bin/gcc.exe
M-: (executable-find "as") RET
"c:/ProgramData/chocolatey/bin/as.exe"
etc, etc

But  should be:
C:\Program Files\Emacs\emacs-28.2\bin\gcc.exe
C:\Program Files\Emacs\emacs-28.2\bin\as.exe

The only solution I have found so far is to uninstall the "global"
MinGW, then emacs uses the embedded libraries and everything is fine.


In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
 of 2022-09-13 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.22000
System Description: Microsoft Windows 10 Pro (v10.0.2009.22000.978)

Configured using:
 'configure --with-modules --without-dbus --with-native-compilation
 --without-compress-install CFLAGS=-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings:
  value of $LANG: PLK
  locale-coding-system: cp1250

Major mode: Org

Minor modes in effect:
  override-global-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail org-mobile ffap tmm diary-lib
diary-loaddefs cal-iso face-remap org-agenda org-refile org-clock
mule-util cal-move org-element avl-tree generator ol-eww eww xdg
url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect
gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015
mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group
gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail
mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range
message rfc822 mml mml-sec epa derived mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus
nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
mail-utils mm-util mail-prsvr ol-docview doc-view jka-compr image-mode
exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi dired-aux dired
dired-loaddefs which-key lsp-pyright lsp-mode comp comp-cstr warnings
lsp-protocol yasnippet xref project tree-widget wid-edit spinner pcase
network-stream puny nsm rmc markdown-mode color thingatpt lv inline
imenu ht filenotify f f-shortdoc shortdoc s ewoc epg rfc6068 epg-config
dash compile text-property-search org ob ob-tangle ob-ref ob-lob
ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete
pcomplete comint ansi-color ring org-list org-faces org-entities
noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table
oc-basic bibtex iso8601 time-date ol rx org-keys oc org-compat advice
org-macs org-loaddefs format-spec find-func cal-menu calendar
cal-loaddefs command-log-mode cl-extra help-mode use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core finder-inf
edmacro kmacro wombat-theme info package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 497677 139781)
 (symbols 48 38406 9)
 (strings 32 164117 43025)
 (string-bytes 1 4805171)
 (vectors 16 75523)
 (vector-slots 8 1608377 199020)
 (floats 8 434 411)
 (intervals 56 3060 1085)
 (buffers 992 27))

--00000000000079bd3205ea4baf1d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>When installing Emacs using the inst=
aller (emacs-28.2-installer.exe),<br></div><div>by default it adds the comp=
iler and libraries (gcc and libgccjit)</div><div>to the ./bin directory wit=
hout prompting the user for his opinion.</div><div><br></div><div>The probl=
em appears when another compiler is already installed in the</div><div>syst=
em, eg. from MinGW. Emacs then tries to use the libraries from PATH</div><d=
iv>instead of those installed in its subdirectories:</div><div><br></div><d=
iv>Warning (comp): c: /tools/emacs/share/emacs/28.2/lisp/org/org-entities.e=
l:</div><div>Error: Internal native compiler error failed to compile</div><=
div>Warning (comp): C: \\ ProgramData \\ chocolatey \\ lib \\ mingw \\ tool=
s \\</div><div>install \\ mingw64 \\ bin \\ libgccjit-0.dll: error: error i=
nvoking gcc</div><div>driver</div><div><br></div><div>When I tried to find =
a solution to the problem, I found something like</div><div>this:</div><div=
><br></div><div>M-: (executable-find &quot;gcc&quot;) RET</div><div>&quot;c=
:/ProgramData/chocolatey/bin/gcc.exe</div><div>M-: (executable-find &quot;a=
s&quot;) RET</div><div>&quot;c:/ProgramData/chocolatey/bin/as.exe&quot;</di=
v><div>etc, etc</div><div><br></div><div>But=C2=A0 should be:</div><div>C:\=
Program Files\Emacs\emacs-28.2\bin\gcc.exe</div><div>C:\Program Files\Emacs=
\emacs-28.2\bin\as.exe</div><div><br></div><div>The only solution I have fo=
und so far is to uninstall the &quot;global&quot;</div><div>MinGW, then ema=
cs uses the embedded libraries and everything is fine.</div><div><br></div>=
<div><br></div><div>In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)</div><d=
iv>=C2=A0of 2022-09-13 built on AVALON</div><div>Windowing system distribut=
or &#39;Microsoft Corp.&#39;, version 10.0.22000</div><div>System Descripti=
on: Microsoft Windows 10 Pro (v10.0.2009.22000.978)</div><div><br></div><di=
v>Configured using:</div><div>=C2=A0&#39;configure --with-modules --without=
-dbus --with-native-compilation</div><div>=C2=A0--without-compress-install =
CFLAGS=3D-O2&#39;</div><div><br></div><div>Configured features:</div><div>A=
CL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP</div=
><div>NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_B=
ARS</div><div>XPM ZLIB</div><div><br></div><div>(NATIVE_COMP present but li=
bgccjit not available)</div><div><br></div><div>Important settings:</div><d=
iv>=C2=A0 value of $LANG: PLK</div><div>=C2=A0 locale-coding-system: cp1250=
</div><div><br></div><div>Major mode: Org</div><div><br></div><div>Minor mo=
des in effect:</div><div>=C2=A0 override-global-mode: t</div><div>=C2=A0 gl=
obal-eldoc-mode: t</div><div>=C2=A0 show-paren-mode: t</div><div>=C2=A0 ele=
ctric-indent-mode: t</div><div>=C2=A0 mouse-wheel-mode: t</div><div>=C2=A0 =
file-name-shadow-mode: t</div><div>=C2=A0 global-font-lock-mode: t</div><di=
v>=C2=A0 font-lock-mode: t</div><div>=C2=A0 blink-cursor-mode: t</div><div>=
=C2=A0 auto-composition-mode: t</div><div>=C2=A0 auto-encryption-mode: t</d=
iv><div>=C2=A0 auto-compression-mode: t</div><div>=C2=A0 line-number-mode: =
t</div><div>=C2=A0 indent-tabs-mode: t</div><div>=C2=A0 transient-mark-mode=
: t</div><div><br></div><div>Load-path shadows:</div><div>None found.</div>=
<div><br></div><div>Features:</div><div>(shadow sort mail-extr emacsbug sen=
dmail org-mobile ffap tmm diary-lib</div><div>diary-loaddefs cal-iso face-r=
emap org-agenda org-refile org-clock</div><div>mule-util cal-move org-eleme=
nt avl-tree generator ol-eww eww xdg</div><div>url-queue mm-url ol-rmail ol=
-mhe ol-irc ol-info ol-gnus nnselect</div><div>gnus-search eieio-opt speedb=
ar ezimage dframe gnus-art mm-uu mml2015</div><div>mm-view mml-smime smime =
dig gnus-sum shr kinsoku svg dom gnus-group</div><div>gnus-undo gnus-start =
gnus-dbus dbus xml gnus-cloud nnimap nnmail</div><div>mail-source utf7 netr=
c nnoo parse-time gnus-spec gnus-int gnus-range</div><div>message rfc822 mm=
l mml-sec epa derived mm-decode mm-bodies mm-encode</div><div>mail-parse rf=
c2231 mailabbrev gmm-utils mailheader gnus-win gnus</div><div>nnheader gnus=
-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums</div><div>mail-utils =
mm-util mail-prsvr ol-docview doc-view jka-compr image-mode</div><div>exif =
ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi dired-aux dired</div><div>dire=
d-loaddefs which-key lsp-pyright lsp-mode comp comp-cstr warnings</div><div=
>lsp-protocol yasnippet xref project tree-widget wid-edit spinner pcase</di=
v><div>network-stream puny nsm rmc markdown-mode color thingatpt lv inline<=
/div><div>imenu ht filenotify f f-shortdoc shortdoc s ewoc epg rfc6068 epg-=
config</div><div>dash compile text-property-search org ob ob-tangle ob-ref =
ob-lob</div><div>ob-table ob-exp org-macro org-footnote org-src ob-comint o=
rg-pcomplete</div><div>pcomplete comint ansi-color ring org-list org-faces =
org-entities</div><div>noutline outline org-version ob-emacs-lisp ob-core o=
b-eval org-table</div><div>oc-basic bibtex iso8601 time-date ol rx org-keys=
 oc org-compat advice</div><div>org-macs org-loaddefs format-spec find-func=
 cal-menu calendar</div><div>cal-loaddefs command-log-mode cl-extra help-mo=
de use-package</div><div>use-package-ensure use-package-delight use-package=
-diminish</div><div>use-package-bind-key bind-key easy-mmode use-package-co=
re finder-inf</div><div>edmacro kmacro wombat-theme info package browse-url=
 url url-proxy</div><div>url-privacy url-expand url-methods url-history url=
-cookie url-domsuf</div><div>url-util mailcap url-handlers url-parse auth-s=
ource cl-seq eieio</div><div>eieio-core cl-macs eieio-loaddefs password-cac=
he json subr-x map</div><div>url-vars seq byte-opt gv bytecomp byte-compile=
 cconv cl-loaddefs cl-lib</div><div>iso-transl tooltip eldoc paren electric=
 uniquify ediff-hook vc-hooks</div><div>lisp-float-type elisp-mode mwheel d=
os-w32 ls-lisp disp-table</div><div>term/w32-win w32-win w32-vars term/comm=
on-win tool-bar dnd fontset image</div><div>regexp-opt fringe tabulated-lis=
t replace newcomment text-mode lisp-mode</div><div>prog-mode register page =
tab-bar menu-bar rfn-eshadow isearch easymenu</div><div>timer select scroll=
-bar mouse jit-lock font-lock syntax font-core</div><div>term/tty-colors fr=
ame minibuffer cl-generic cham georgian utf-8-lang</div><div>misc-lang viet=
namese tibetan thai tai-viet lao korean japanese eucjp-ms</div><div>cp51932=
 hebrew greek romanian slovak czech european ethiopic indian</div><div>cyri=
llic chinese composite emoji-zwj charscript charprop case-table</div><div>e=
pa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice</div>=
<div>button loaddefs faces cus-face macroexp files window text-properties</=
div><div>overlay sha1 md5 base64 format env code-pages mule custom widget</=
div><div>hashtable-print-readable backquote threads w32notify w32 lcms2 mul=
ti-tty</div><div>make-network-process native-compile emacs)</div><div><br><=
/div><div>Memory information:</div><div>((conses 16 497677 139781)</div><di=
v>=C2=A0(symbols 48 38406 9)</div><div>=C2=A0(strings 32 164117 43025)</div=
><div>=C2=A0(string-bytes 1 4805171)</div><div>=C2=A0(vectors 16 75523)</di=
v><div>=C2=A0(vector-slots 8 1608377 199020)</div><div>=C2=A0(floats 8 434 =
411)</div><div>=C2=A0(intervals 56 3060 1085)</div><div>=C2=A0(buffers 992 =
27))</div><div><br></div></div></div>

--00000000000079bd3205ea4baf1d--




Acknowledgement sent to Bartosz Bubak <bartosz.bubak@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#58318; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 12 Oct 2022 13:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.