emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47169: closed (28.0.50; [feature/native-comp] native-compiler-error-


From: GNU bug Tracking System
Subject: bug#47169: closed (28.0.50; [feature/native-comp] native-compiler-error-empty-byte when batch-native-compiling is confusing to users)
Date: Tue, 16 Mar 2021 21:47:02 +0000

Your message dated Tue, 16 Mar 2021 21:46:38 +0000
with message-id <xjfeegewz41.fsf@sdf.org>
and subject line Re: bug#47169: 28.0.50; [feature/native-comp] 
native-compiler-error-empty-byte when batch-native-compiling is confusing to 
users
has caused the debbugs.gnu.org bug report #47169,
regarding 28.0.50; [feature/native-comp] native-compiler-error-empty-byte when 
batch-native-compiling is confusing to users
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
47169: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47169
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.0.50; [feature/native-comp] native-compiler-error-empty-byte when batch-native-compiling is confusing to users Date: Mon, 15 Mar 2021 14:34:51 -0300
Some packages contain valid .el files such that batch-byte-compiling
them does not produce an .elc file, for example because they set
"no-byte-compile" to t. Running batch-byte-compile on such a file exits
successfully (without outputting any .elc file, of course) but running
batch-native-compile exits with native-compiler-error-empty-byte.

In the Nix package manager, we native-compile packages at installation
time, and we do so by calling batch-native-compile for each .el file in
the package separately. So in our use case .el files as described above
shouldn't trigger error messages. We can work around this on the Nix
side, but I was wondering if it would be better to turn the error into a
warning (or even not emit a warning at all, since technically everything
went well).

Step to reproduce: batch-native-compile a file that sets no-byte-compile
to t.

(Reporting this on behalf of a user, see
https://github.com/nix-community/emacs-overlay/issues/120)

Best,
Mauricio



--- End Message ---
--- Begin Message --- Subject: Re: bug#47169: 28.0.50; [feature/native-comp] native-compiler-error-empty-byte when batch-native-compiling is confusing to users Date: Tue, 16 Mar 2021 21:46:38 +0000 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Mauricio Collares <mauricio@collares.org> writes:

> Andrea Corallo <akrl@sdf.org> writes:
>>
>> Hi Mauricio,
>>
>> sorry for the sloppy/untested patch, 3e133cc050 works for me please have
>> a try.
>
> Hi Andrea,
>
> I can confirm that I no longer see native-compiler-error-empty-byte
> being signaled in such cases. Many thanks for the fix!

Super, thanks for reporting.

Closing, thanks!

  Andrea



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]