Newcomer, need help with emacs dependencies & terminal swupd tab completion broken

On emacs runtime, i got a warning buffer spamming me message similar to:

gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory

this problem got easily solved by installing binutils

swupd bundle-add binutils

next, when i open M-x dired i get messages:

⛔ Warning (comp): libgccjit.so: error: error invoking gcc driver
⛔ Warning (comp): /usr/share/emacs/29.1/lisp/emacs-lisp/cl-lib.el.gz: Error: Internal native compiler error

finally, not related to emacs, in terminal swupd command has broken tab completion for arguments

swupd <tab> => _init_completion: command not found

P.S. I’m confused, if emacs is installed by default, i don’t understand why not install all its run-time dependencies also.

Try :

sudo swupd bundle-add devpkg-base
sudo swupd bundle-add c-basic
echo $LD_LIBRARY_PATH

Update the library paths to include the directory where libgccjit.so is located.

1 Like

For swupd bash completion, the shells bundle is probably the smallest that provides that feature.

1 Like

did you mean devpkg-base? package manager did not find devpkg-dev.
also this did fix the emacs problem, thanks.

nope, this didn’t fix it for me

Oh looks like some things changed in the bash-completion package. There seems to be quite a few things that need to update including swupd.

2 Likes

Yes, devpkg-base, it’s adjusted. :wink: