From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Date: Sun, 07 Aug 2022 09:50:11 +0300 Message-ID: <83k07ky2cc.fsf@gnu.org> References: <0XdlK8afi5tP0-XWF94oxykFhVRmcAQTkFlnCPZN5EF5KELu1gHJZo0NKuB1i-5wTN6mPsKDwB0513QAInRoG2tC2ra5_F8NssLG_Bjm99I=@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57029@debbugs.gnu.org To: ccqpein Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 07 08:51:15 2022 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 1oKa81-00028P-1r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Aug 2022 08:51:13 +0200 Original-Received: from localhost ([::1]:42660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKa7z-0001F1-Fi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Aug 2022 02:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKa7r-0001Em-4x for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 02:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKa7q-0001Du-SC for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKa7q-0008IU-FA for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2022 02:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Aug 2022 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57029 X-GNU-PR-Package: emacs Original-Received: via spool by 57029-submit@debbugs.gnu.org id=B57029.165985504331862 (code B ref 57029); Sun, 07 Aug 2022 06:51:02 +0000 Original-Received: (at 57029) by debbugs.gnu.org; 7 Aug 2022 06:50:43 +0000 Original-Received: from localhost ([127.0.0.1]:35920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKa7T-0008Hl-Pq for submit@debbugs.gnu.org; Sun, 07 Aug 2022 02:50:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKa7N-0008HQ-JG; Sun, 07 Aug 2022 02:50:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKa7I-0001Cy-5x; Sun, 07 Aug 2022 02:50:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4c4r6vEs+GmZgQ3YIzyhKRM+8L0GPsg9emWeiJIkmN8=; b=ISUrf5mJBLUE UsuEN07XQtS/l9idihG4xKVWUT6L3ittPIbitmxTqdLCezlyG+g7H/rC2XpqJQ4v9auBAO38m36Kh VUi/TvfaP8IS4iJ/kGBiVRRo2AgrNiLnd1FnKBm9CtTE6n6mDcKqc2kXRWjtHtT5hkQB6HnXZfO7H X4KH9yObx9FyA2yho11vmLnwVejtjo18Dn6uEZIpvbOGyR2H9ZPeID6AZQjZ+HAZVgLnXYOfLNlEi Tlw8GZJn82WC29s9kMK6PiHQr8ytqeI8TYhfQoADdoxkxC331NtmRJ9rk+Gar2bHjsx9sNZ4BKwdz JHNmm1JwmQThh4RnCec3Xg==; Original-Received: from [87.69.77.57] (port=1967 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKa7H-0001RM-Kf; Sun, 07 Aug 2022 02:50:27 -0400 In-Reply-To: <0XdlK8afi5tP0-XWF94oxykFhVRmcAQTkFlnCPZN5EF5KELu1gHJZo0NKuB1i-5wTN6mPsKDwB0513QAInRoG2tC2ra5_F8NssLG_Bjm99I=@protonmail.com> (bug-gnu-emacs@gnu.org) 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:239033 Archived-At: merge 57029 57015 thanks > Date: Sun, 07 Aug 2022 03:29:47 +0000 > From: ccqpein via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I just update the gcc and the libgccjit through `brew` tonight and find building the emacs from source has > issue. > > after `./autogen.sh`, I ran the `./configure --with-native-compilation` (for simplifying) and got the error > message that > > ``` > checking for gcc_jit_context_acquire in -lgccjit... no > configure: error: ELisp native compiler was requested, but libgccjit was not found. > Please try installing libgccjit or a similar package. > If you are sure you want Emacs be compiled without ELisp native compiler, > pass the --without-native-compilation option to configure. > ``` > > I add `echo $MAC_CFLAGS` and `echo $MAC_LIBS` after line 4269 in `configure.ac` and I figure out it gives > me the right including path of libgccjit 12. > > ``` > -I/usr/local/Cellar/libgccjit/12.1.0/include > -L/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12 > ``` > > my environment: > > macOS 12.5 > intel CPU Thanks, this is a duplicate of bug#57015.