From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47783: 28.0.50; [feature/native-comp] libgccjit.so: error: error invoking gcc driver Date: Fri, 16 Apr 2021 09:25:40 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47783@debbugs.gnu.org To: Pankaj Jangid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 16 11:26:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXKk7-0002BZ-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 11:26:27 +0200 Original-Received: from localhost ([::1]:60890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXKk6-00084m-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 05:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXKji-00084G-RA for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 05:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXKji-00022M-Jt for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 05:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXKji-0007mo-GV for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47783 X-GNU-PR-Package: emacs Original-Received: via spool by 47783-submit@debbugs.gnu.org id=B47783.161856514729909 (code B ref 47783); Fri, 16 Apr 2021 09:26:02 +0000 Original-Received: (at 47783) by debbugs.gnu.org; 16 Apr 2021 09:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:40043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXKjT-0007mL-0S for submit@debbugs.gnu.org; Fri, 16 Apr 2021 05:25:47 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:50977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXKjO-0007mA-PI for 47783@debbugs.gnu.org; Fri, 16 Apr 2021 05:25:45 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 13G9PeuK005751 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 16 Apr 2021 09:25:40 GMT In-Reply-To: (Pankaj Jangid's message of "Fri, 16 Apr 2021 13:46:35 +0530") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204128 Archived-At: Pankaj Jangid writes: > Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > >> I don't know what happened here but I bet has to do with the value of >> one of these three env vars [1] and most likely PATH. >> >> [1] >> > > I am working with pre-built version of =E2=80=98gcc=E2=80=99 and =E2=80= =98libgccjit=E2=80=99 from > Homebrew. So I tried to set the following environment > variables. Experimented with various permutation combinations of these. > > #+begin_src elisp > (add-to-list 'exec-path > "/usr/local/opt/gcc/bin") > (setenv "PATH" (mapconcat 'identity exec-path ":"))=20=20=20=20=20=20=20= =20 > (setenv "LD_LIBRARY_PATH" > "/usr/local/opt/libgccjit/lib/gcc/10:/usr/local/opt/gcc/lib/gcc/1= 0") > (setenv "LIBRARY_PATH" > "/usr/local/opt/libgccjit/lib/gcc/10:/usr/local/opt/gcc/lib/gcc/1= 0") > #end_src > > The above are standard location of =E2=80=98gcc=E2=80=99 and =E2=80=99lib= gccjit=E2=80=99 artifacts. > > The exec-path configuration above crashes my Emacs at startup. So I had > to comment that out. > > > 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'. Andrea