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: Thu, 15 Apr 2021 16:17:06 +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="873"; 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 Thu Apr 15 18:20:18 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 1lX4j2-000051-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 18:20:16 +0200 Original-Received: from localhost ([::1]:51504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX4j1-0006p4-Bp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 12:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX4gs-0005Xv-JR for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 12:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX4gs-0007Kn-1f for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX4gr-0005PW-SW for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 16:18:01 +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.161850343120740 (code B ref 47783); Thu, 15 Apr 2021 16:18:01 +0000 Original-Received: (at 47783) by debbugs.gnu.org; 15 Apr 2021 16:17:11 +0000 Original-Received: from localhost ([127.0.0.1]:38961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX4g3-0005OS-12 for submit@debbugs.gnu.org; Thu, 15 Apr 2021 12:17:11 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:65511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX4g0-0005OG-72 for 47783@debbugs.gnu.org; Thu, 15 Apr 2021 12:17:09 -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 13FGH6tp010249 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 15 Apr 2021 16:17:07 GMT In-Reply-To: (Pankaj Jangid's message of "Thu, 15 Apr 2021 19:36:10 +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:204085 Archived-At: Pankaj Jangid writes: > Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > >>> I am on macos and after launching Emacs, I get this libgccjit >>> error. Is this something that I can ignore for now? >>> >>> Warning (comp): libgccjit.so: error: error invoking gcc driver Disable = showing Disable logging >>> Warning (comp): >>> /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp= /cl-lib.el.gz: >>> Error: Internal native compiler error failed to compile Disable >>> showing Disable logging >> >> this look like an env misconfiguration that prevents libgccjit for >> finding the driver. >> >> Could you please report the full error in the >> *Async-native-compile-log* buffer? >> >> Also have already you tried invoking "emacs -Q"? > > I usually launch =E2=80=98Emacs.app=E2=80=99 from GUI (Launchpad on macos= ). But when I > have to pass argument e.g. =E2=80=98-Q=E2=80=99 I use command-line. After= your above > message I tried =E2=80=98emacs -Q=E2=80=99 and it worked without any erro= r. > > And you are right, it was environment related problem. Following is the > snippet from =E2=80=98*Async-native-compile-log*=E2=80=99: > > Compiling /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/em= acs-lisp/cl-lib.el.gz... > uncompressing cl-lib.el.gz... > uncompressing cl-lib.el.gz...done > ld: library not found for -lgcc_ext.10.5 > libgccjit.so: error: error invoking gcc driver > /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/c= l-lib.el.gz: Error: Internal native compiler error failed to compile > Compiling /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/em= acs-lisp/seq.el.gz... > uncompressing seq.el.gz... > uncompressing seq.el.gz...done > > But now I am puzzled at one more thing. Now I am not getting the error > even when I start from GUI. Does it save the location of =E2=80=98libgccj= it=E2=80=99 > somewhere, once it is found? AFAIK no, 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. Andrea [1]