Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in the "make -j$(nproc)" step #63

Closed
Doomwhite opened this issue Apr 8, 2024 · 8 comments
Closed

Error in the "make -j$(nproc)" step #63

Doomwhite opened this issue Apr 8, 2024 · 8 comments

Comments

@Doomwhite
Copy link

Doomwhite commented Apr 8, 2024

I made an Ubuntu-22.04 wsl distro, fixed this error, so I could do the 'configure' step, and got this error in the "make -j$(nproc)" step:

Error: error ("Eager macro-expansion failure: (error \"Eager macro-expansion failure: (error \\\"Eager macro-expansion
skipped due to cycle:
  … => (load \\\\\\\"tramp-archive.el\\\\\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\\\\\"tramp-gvfs.el\\\\\\\") => (load \\\\\\\"tramp.el\\\\\\\") => (load \\\\\\\"tramp-archive.el\\\\\\\")\\\")\")")
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0xc1f126b23ae8647>))
  debug-early-backtrace()
  debug-early(error (error "Eager macro-expansion failure: (error \"Eager macro-expansion failure: (error \\\"Eager macro-expansion skipped due to cycle:\n  … => (load \\\\\\\"tramp-archive.el\\\\\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\\\\\"tramp-gvfs.el\\\\\\\") => (load \\\\\\\"tramp.el\\\\\\\") => (load \\\\\\\"tramp-archive.el\\\\\\\")\\\")\")"))
  error("Eager macro-expansion failure: %S" (error "Eager macro-expansion failure: (error \"Eager macro-expansion skipped due to cycle:\n  … => (load \\\"tramp-archive.el\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\"tramp-gvfs.el\\\") => (load \\\"tramp.el\\\") => (load \\\"tramp-archive.el\\\")\")"))
  internal-macroexpand-for-load((eval-when-compile (require 'epg)) nil)
  load-with-code-conversion("/home/doomwhite/emacs/lisp/emacs-lisp/package.el" "/home/doomwhite/emacs/lisp/emacs-lisp/package.el" nil t)
  require(package)
  load-with-code-conversion("/home/doomwhite/emacs/lisp/finder.el" "/home/doomwhite/emacs/lisp/finder.el" nil t)
  INFO     Scanning files for custom...40%
  command-line-1(("-l" "finder" "--eval" "(setq generated-finder-keywords-file (unmsys--file-name \"./finder-inf.el\"))" "-f" "finder-compile-keywords-make-dist" "." "./calc" "./calendar" "./cedet" "./cedet/ede" "./cedet/semantic" "./cedet/semantic/analyze" "./cedet/semantic/bovine" "./cedet/semantic/decorate" "./cedet/semantic/symref" "./cedet/semantic/wisent" "./cedet/srecode" "./emacs-lisp" "./emulation" "./erc" "./eshell" "./gnus" "./image" "./international" "./language" "./mail" "./mh-e" "./net" "./nxml" "./org" "./play" "./progmodes" "./textmodes" "./url" "./use-package" "./vc"))
  command-line()
  normal-top-level()
Eager macro-expansion failure: (error "Eager macro-expansion failure: (error \"Eager macro-expansion skipped due to cycle:
  … => (load \\\"tramp-archive.el\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\"tramp-gvfs.el\\\") => (load \\\"tramp.el\\\") => (load \\\"tramp-archive.el\\\")\")")
make[2]: *** [Makefile:164: finder-inf.el] Error 255
make[2]: *** Waiting for unfinished jobs....
  ELC      org/org-macro.elc
  INFO     Scanning files for custom...50%
  ELC      org/org-element.elc
  INFO     Scanning files for custom...60%
  INFO     Scanning files for custom...70%
  INFO     Scanning files for custom...80%
  INFO     Scanning files for custom...90%

In toplevel form:
org/ox.el:82:2: Error: Eager macro-expansion failure: (error "Eager macro-expansion failure: (error \"Eager macro-expansion failure: (error \\\"Eager macro-expansion skipped due to cycle:
  … => (load \\\\\\\"tramp-archive.el\\\\\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\\\\\"tramp-gvfs.el\\\\\\\") => (load \\\\\\\"tramp.el\\\\\\\") => (load \\\\\\\"tramp-archive.el\\\\\\\")\\\")\")")
make[3]: *** [Makefile:327: org/ox.elc] Error 1
make[3]: *** Waiting for unfinished jobs....

In toplevel form:
org/ox-texinfo.el:33:2: Error: Eager macro-expansion failure: (error "Eager macro-expansion failure: (error \"Eager macro-expansion failure: (error \\\"Eager macro-expansion skipped due to cycle:
  … => (load \\\\\\\"tramp-archive.el\\\\\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\\\\\"tramp-gvfs.el\\\\\\\") => (load \\\\\\\"tramp.el\\\\\\\") => (load \\\\\\\"tramp-archive.el\\\\\\\")\\\")\")")
make[3]: *** [Makefile:327: org/ox-texinfo.elc] Error 1
  INFO     Scanning files for custom...100%
  INFO     Scanning files for custom...done
  INFO     Generating ./cus-load.el...

In toplevel form:
org/org-element.el:68:2: Error: Eager macro-expansion failure: (error "Eager macro-expansion failure: (error \"Eager macro-expansion failure: (error \\\"Eager macro-expansion skipped due to cycle:
  … => (load \\\\\\\"tramp-archive.el\\\\\\\") => (macroexpand-all …) => (macroexpand (eval-and-compile …)) => (load \\\\\\\"tramp-gvfs.el\\\\\\\") => (load \\\\\\\"tramp.el\\\\\\\") => (load \\\\\\\"tramp-archive.el\\\\\\\")\\\")\")")
make[3]: *** [Makefile:327: org/org-element.elc] Error 1
make[3]: Leaving directory '/home/doomwhite/emacs/lisp'
make[2]: *** [Makefile:383: main-first] Error 2
  INFO     Generating ./cus-load.el...done
make[2]: Leaving directory '/home/doomwhite/emacs/lisp'
make[1]: *** [Makefile:533: lisp] Error 2
make[1]: Leaving directory '/home/doomwhite/emacs'
make[1]: Entering directory '/home/doomwhite/emacs'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[1]: *** [Makefile:414: advice-on-failure] Error 2
make[1]: Leaving directory '/home/doomwhite/emacs'
make: *** [Makefile:370: all] Error 2

The following file has the complete history of that distro.
logs.txt

@hubisan
Copy link
Owner

hubisan commented Apr 9, 2024

I really can't help you with this error (have installed Emacs several times with WSL Ubuntu 22.04 with no issue). You might try the following:

  • Update WSL, all packages and the system before installing Emacs:
    • In cmd run:

      wsl --shutdown
      wsl --update
      
    • In WSL run:

      sudo apt update
      sudo apt upgrade -y
      sudo apt full-upgrade
      
    • Clean the Emacs installation.
      Go to the directory where you tried to install Emacs from and run:

      sudo make uninstall
      sudo make clean
      
  • Try installing Emacs with snap (this apparently works now according to this issue)
    • Check if systemd support is enabled

    • Run wsl --shutdown in cmd

    • Start WSL

    • Install Snap

      sudo apt update
      sudo apt install snapd
      
    • Install Emacs with snap

      sudo snap install emacs --classic
      
  • Try another Emacs version. Maybe the latest from master as this might be an error which was fixed.

@Doomwhite
Copy link
Author

The first option didn't work, the snap option did work, but it's only working on terminal mode, even without using -nw.
This is my wsl --version output:

WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19044.2965

@Doomwhite
Copy link
Author

Followed this guide to make the graphical window appear on windows, is there an alternative?

@hubisan
Copy link
Owner

hubisan commented Apr 9, 2024

WSL2 has WSLg so graphical Emacs should work out of the box.

Do other apps run in a graphical window? You can test this with for instance xeyes:

sudo apt install x11-apps
xeyes

I have exactly the same WSL Version and Ubuntu 22.04. Strange that your installation doesn't work.

WSL-Version: 2.1.5.0
Kernelversion: 5.15.146.1-2
WSLg-Version: 1.0.60
MSRDC-Version: 1.2.5105
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp

@hubisan
Copy link
Owner

hubisan commented Apr 9, 2024

You might have to run export GDK_BACKEND=x11 before launching Emacs. WSL might default to wayland and the snap is not using wayland (not using the --with-pgtk flag).

Just checked, my Emacs launches also without using the above.

@hubisan
Copy link
Owner

hubisan commented Apr 15, 2024

Were you able to solve your issue?

In the blog post you mentionned using X410 there is also a link to an updated post using WSLg.

@Doomwhite
Copy link
Author

Doomwhite commented Apr 15, 2024

WSL2 has WSLg so graphical Emacs should work out of the box.

Do other apps run in a graphical window? You can test this with for instance xeyes:

sudo apt install x11-apps
xeyes

I have exactly the same WSL Version and Ubuntu 22.04. Strange that your installation doesn't work.

WSL-Version: 2.1.5.0
Kernelversion: 5.15.146.1-2
WSLg-Version: 1.0.60
MSRDC-Version: 1.2.5105
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp

I tried the command:

doomwhite@DESKTOP-BQ45CCC:/mnt/c$ sudo apt install x11-apps
doomwhite@DESKTOP-BQ45CCC:/mnt/c$ xeyes
Error: Can't open display:

Seem like there's an issue with my wslg, cuz vcsrx and X410 worked fine.

@hubisan hubisan closed this as completed Apr 16, 2024
@Doomwhite
Copy link
Author

Doomwhite commented Jun 19, 2024

Turns out, for some reason, guiApplications=false was set in my .wslconfig, tip for anyone having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants