Emacs errors

Setting up emacs on Bazzite and I’m getting many warnings.

collect2: fatal error: cannot find ‘ld’
libgccjit.so: error: error invoking gcc driver
Error: Internal native compiler error failed to compile

339 warnings all basically same as above. I think it’s emacs native compile errors.

Highly recommend using a Distrobox container for this.

Having Emacs on base system is bad?

Yeah we normally want development tools in a container or through Homebrew. Only the necessary components of the OS should be at a system-level.

2 Likes

Not really doing developer work, just using as a text editor with syntax highlighting and such.

Either way, if its causing issues I would recommend a container or homebrew. I’m not on my personal computer right now to test, but I’m not sure if emacs is preinstalled. I know Vim and Nano is.

1 Like

Ended up using the flatpak version and a minor rule adjustment in flatseal. Thank you for the help.

1 Like

You can make a symlink for ld in /user/local/bin

The issue is that ld is part of alternatives and uses a symlink from /var. That doesn’t work with the build process by default.

1 Like

Hello, new here (Lenovo Chromebook 3 11.6 running aurora )
So i want to install something with cargo but i keep getting a libgcc & ld error. should i use a container for this? Does anyrhibg that needs to be compiled ,other than rpm-ostree, need a container?

See the post above yours for fixing the ld error.

1 Like

Didnt see that before, thanks!