[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error inv
From: |
Eli Zaretskii |
Subject: |
bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver |
Date: |
Sat, 17 Apr 2021 20:10:06 +0300 |
> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Date: Sat, 17 Apr 2021 22:27:53 +0530
>
> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs@gnu.org> writes:
>
> >> Is there a way in Emacs to get all the environment variables in one
> >> go?
> >
> > One can use the `process-environment' variable. Also might be useful for
> > you `initial-environment'.
>
> Finally, as you pointed out, PATH env is the root cause. When I start
> from GUI the PATH is set to:
>
> "/usr/bin:/bin:/usr/sbin:/sbin"
>
> But when I start from CLI, the Bash init files are executed and hence
> the PATH is:
>
>
> "/Users/pankaj/.sdkman/candidates/kotlin/current/bin:/Users/pankaj/.sdkman/candidates/groovy/current/bin:/Users/pankaj/.sdkman/candidates/gradle/current/bin:/Users/pankaj/.sdkman/candidates/ant/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin:/Users/pankaj/Applications/Emacs.app/Contents/MacOS:/Users/pankaj/Applications/Emacs.app/Contents/MacOS/bin:/Users/pankaj/go/bin:/Users/pankaj/.cargo/bin"
>
> There are lots of things. But the PATH, which we are interested in, is
> the location of compiler; and that is "/usr/local/bin". So I hard-coded
> PATH in a CLI session:
>
> export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
>
> And then launched ‘Emacs’ from there. Worked perfectly fine.
But the problem is not when Emacs is run from CLI, it's when it's run
from GUI, right? Because /usr/local/bin is not in PATH then.
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, (continued)
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Andrea Corallo, 2021/04/15
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Pankaj Jangid, 2021/04/15
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Andrea Corallo, 2021/04/15
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Pankaj Jangid, 2021/04/16
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Andrea Corallo, 2021/04/16
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Pankaj Jangid, 2021/04/17
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver,
Eli Zaretskii <=
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Pankaj Jangid, 2021/04/17
- bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver, Pankaj Jangid, 2021/04/17