Package Details: emacs-native-comp-git-enhanced 29.0.50.157951-1

Git Clone URL: https://aur.archlinux.org/emacs-native-comp-git-enhanced.git (read-only, click to copy)
Package Base: emacs-native-comp-git-enhanced
Description: GNU Emacs. Development master branch.
Upstream URL: http://www.gnu.org/software/emacs/
Licenses: GPL3
Conflicts: emacs
Provides: emacs
Replaces: emacs
Submitter: VitalyR
Maintainer: VitalyR
Last Packager: VitalyR
Votes: 5
Popularity: 0.006790
First Submitted: 2020-07-11 16:12 (UTC)
Last Updated: 2022-07-06 03:20 (UTC)

Pinned Comments

VitalyR commented on 2022-02-15 14:36 (UTC) (edited on 2022-02-15 15:02 (UTC) by VitalyR)

If you met the libgccjit requires gcc-libs=11.1.0 problem and you don't know how to handle this, here is a quick solution for you:

  • Uninstall libgccjit and emacs-git:
sudo pacman -R libgccjit emacs-native-comp-git-enhanced
  • Roll your arch linux, just
sudo pacman -Syyu

Hopefully Arch will enable jit in the gcc package then we don't need to install libgccjit any more. Someone is working on that: https://bugs.archlinux.org/task/70280.

VitalyR commented on 2021-12-18 18:56 (UTC)

Since feature/pgtk branch has been merged into the master branch, this package will track the master branch by default.

To speed up the compilation, this package will use clang to compile and mold to link. Make sure you have installed them if you use the default config.

Latest Comments

VitalyR commented on 2022-02-15 14:36 (UTC) (edited on 2022-02-15 15:02 (UTC) by VitalyR)

If you met the libgccjit requires gcc-libs=11.1.0 problem and you don't know how to handle this, here is a quick solution for you:

  • Uninstall libgccjit and emacs-git:
sudo pacman -R libgccjit emacs-native-comp-git-enhanced
  • Roll your arch linux, just
sudo pacman -Syyu

Hopefully Arch will enable jit in the gcc package then we don't need to install libgccjit any more. Someone is working on that: https://bugs.archlinux.org/task/70280.

VitalyR commented on 2021-12-20 02:16 (UTC)

@spacjoe Thanks for the suggestion! It's done!

spacjoe commented on 2021-12-20 02:11 (UTC)

@VitalyR

If mold is required, maybe it should be in the dependencies then?

VitalyR commented on 2021-12-18 18:56 (UTC)

Since feature/pgtk branch has been merged into the master branch, this package will track the master branch by default.

To speed up the compilation, this package will use clang to compile and mold to link. Make sure you have installed them if you use the default config.

VitalyR commented on 2021-12-17 18:08 (UTC)

@gildo I met the same problem and I will fix it. Please wait a while, thanks!

gildo commented on 2021-12-17 16:26 (UTC) (edited on 2021-12-17 16:38 (UTC) by gildo)

Hi, I'm getting this error trying to compile the latest version.

...
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "rmail-loaddefs")
  require(rmail-loaddefs)
  eval-buffer(#<buffer  *load*-528042> nil "/home/gildo/.cache/yay/emacs-native-comp-git-enhan..." nil t)  ; Reading at buffer position 1601


...
make[2]: *** [Makefile:80: ../../lisp/international/emoji-labels.el] Error 255
make[2]: Leaving directory '/home/gildo/.cache/yay/emacs-native-comp-git-enhanced/src/emacs-git/admin/unidata'
make[1]: *** [Makefile:566: ../lisp/international/charprop.el] Error 2
...

Any Idea?

Thanks, Gildo

sundbp commented on 2021-10-18 18:09 (UTC)

Perfect - thanks!

VitalyR commented on 2021-10-18 17:41 (UTC)

@sundbp Sorry for that, it's fixed now.

sundbp commented on 2021-10-18 16:56 (UTC)

I think the change some 13 days ago broke the git url:

git://github.com:flatwhatson/emacs.git

It should be github.com/flatwhatson, the : should be a / - right?

cobaltspace commented on 2021-05-16 00:20 (UTC)

If you can get it renamed, this package should be named emacs-native-comp-enhanced-git, as per https://wiki.archlinux.org/title/VCS_package_guidelines, -git needs to be the suffix.

VitalyR commented on 2021-01-25 17:50 (UTC)

Add this to your config file to fix the define-obsolete-function-alias problem before the packages or config frameworks catchs up:

(define-advice define-obsolete-function-alias (:filter-args (ll) fix-obsolete)
  (let ((obsolete-name (pop ll))
        (current-name (pop ll))
        (when (if ll (pop ll) "1"))
        (docstring (if ll (pop ll) nil)))
    (list obsolete-name current-name when docstring)))

VitalyR commented on 2021-01-11 11:17 (UTC)

Notice that I locked the commit to https://github.com/flatwhatson/emacs.git#commit=78fd106653a9e4fa7c9c3c9788540e2e15552254 in order to avoid breaking your packages. Waiting for these packages adapt to the new define-obsolete-function-alias: all-the-icons evil-ex org-refile org-journal projectile (done!) smart-mode-line solarized treemacs-customization unfill

bienjensu commented on 2020-12-22 13:17 (UTC) (edited on 2020-12-22 13:18 (UTC) by bienjensu)

@dabier I am gettings similar errors:

Warning (comp): Debugger entered--Lisp error: (file-error "Opening output file" "Cannot overwrite file" "/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el...") Disable showing Disable logging

These repeat after async compilation starts every time emacs is launched, for different el files. I compiled with everything left as default. *Async-native-compile-log* output:

Debugger entered--Lisp error: (file-error "Opening output file" "Cannot overwrite file" "/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el...")
signal(file-error ("Opening output file" "Cannot overwrite file" "/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el..."))
byte-compile-file("/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el")
#f(compiled-function (filename) "Byte-compile FILENAME spilling data from the byte compiler." #<bytecode 0x15639fb902450803>)("/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el")
apply(#f(compiled-function (filename) "Byte-compile FILENAME spilling data from the byte compiler." #<bytecode 0x15639fb902450803>) "/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el" nil)
comp-spill-lap-function("/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el")
comp-spill-lap("/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el")
#f(compiled-function (pass) #<bytecode 0x8df95ff29d600bb>)(comp-spill-lap)
mapc(#f(compiled-function (pass) #<bytecode 0x8df95ff29d600bb>) (comp-spill-lap comp-limplify comp-fwprop comp-call-optim comp-ipa-pure comp-cond-cstr comp-fwprop comp-dead-code comp-tco comp-fwprop comp-remove-type-hints comp-final))
comp--native-compile("/usr/share/emacs/28.0.50/lisp/emacs-lisp/cl-lib.el" t)
eval-buffer(#<buffer  *load*> nil "/tmp/emacs-async-comp-cl-lib-OWDUvK.el" nil t)  ; Reading at buffer position 1385
load-with-code-conversion("/tmp/emacs-async-comp-cl-lib-OWDUvK.el" "/tmp/emacs-async-comp-cl-lib-OWDUvK.el" nil t)
command-line-1(("-l" "/tmp/emacs-async-comp-cl-lib-OWDUvK.el"))
command-line()
normal-top-level()

dabier commented on 2020-12-22 01:59 (UTC)

When starting emacs, got lots of similar error like this:

Warning (comp): Debugger entered--Lisp error: (file-error "Opening output file" "Cannot overwrite file" "/usr/share/emacs/28.0.50/lisp/mail/rmail.elc") Disable showing Disable logging

It seems emacs is byte-compiling these buitin library at startup. But, I've enable pre-compile (leave Fast_Boot empty) when installing, and I checked the file rmail.elc is there. How to fix this?

Thanks

zackteo commented on 2020-10-25 02:32 (UTC)

To prevent others from making the same mistake as me, this takes from the pgtk-nativecomp branch. So it does not use X11 but pgtk. In other words, EXWM doesn't work for this version.

bruh commented on 2020-09-27 21:35 (UTC) (edited on 2020-09-27 21:36 (UTC) by bruh)

If starting the daemon via systemd service throws an error similar to this:

emacs[977939]: emacs: ../native-lisp/28.0.50-x86_64-pc-linux-gnu-<many chars>/lisp-mode-<many chars>.eln: cannot open shared object file: No such file or directory

Then you can fix it by manually adding the following to /usr/lib/systemd/user/emacs.service (or whatever your service file is) under [Service]:

WorkingDirectory=/usr/lib/emacs/28.0.50/x86_64-pc-linux-gnu/

Make sure the path /usr/lib/emacs/28.0.50/native-lisp/ exists. If it doesn't, then find the native-lisp path in your system and replace the parent directory of the path above with the path you found. Here's an fd command to find the path:

fd native-lisp /

VitalyR commented on 2020-09-24 20:43 (UTC)

@yin Glad to see you like it! :)

yin commented on 2020-09-24 17:26 (UTC)

@VitalyR gotcha. used your package because it seems better indeed aka enhanced ^^ thanks

VitalyR commented on 2020-09-24 12:00 (UTC) (edited on 2020-09-24 15:18 (UTC) by VitalyR)

@yin Totally right. I created this for practising publishing AUR packages and convenience.

yin commented on 2020-09-24 07:12 (UTC)

so the difference between this and emacs-native-comp-git is that this one uses clang, has link-time optimization, and uses max available cores to make?