From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid 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 19:36:10 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5396"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) To: 47783@debbugs.gnu.org Cancel-Lock: sha1:heJFZFC7ctes0l4QW4zeh2sxHoY= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 15 17:04:55 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 1lX3Y6-0001GR-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 17:04:54 +0200 Original-Received: from localhost ([::1]:51904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX3Y5-0004Mw-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 11:04:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX3Uf-0002c1-Ju for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 11:01:26 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX3UL-0005h3-P4 for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 11:01:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX3UL-0003XM-Nq for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 11:01:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 15:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47783 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161849884213561 (code B ref -1); Thu, 15 Apr 2021 15:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Apr 2021 15:00:42 +0000 Original-Received: from localhost ([127.0.0.1]:38889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX3U2-0003We-4C for submit@debbugs.gnu.org; Thu, 15 Apr 2021 11:00:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX3Ty-0003WV-9w for submit@debbugs.gnu.org; Thu, 15 Apr 2021 11:00:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX3Tw-0002R1-7v for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 11:00:37 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:49922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX3Tf-00056t-Et for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 11:00:35 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lX3TO-0005l8-KX for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 17:00:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:204078 Archived-At: 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 ‘Emacs.app’ from GUI (Launchpad on macos). But when I have to pass argument e.g. ‘-Q’ I use command-line. After your above message I tried ‘emacs -Q’ and it worked without any error. And you are right, it was environment related problem. Following is the snippet from ‘*Async-native-compile-log*’: --8<---------------cut here---------------start------------->8--- Compiling /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/emacs-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/cl-lib.el.gz: Error: Internal native compiler error failed to compile Compiling /Users/pankaj/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/seq.el.gz... uncompressing seq.el.gz... uncompressing seq.el.gz...done --8<---------------cut here---------------end--------------->8--- 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 ‘libgccjit’ somewhere, once it is found? -- Regards Pankaj