From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 16:24:00 2022 Received: (at submit) by debbugs.gnu.org; 28 Apr 2022 20:24:00 +0000 Received: from localhost ([127.0.0.1]:50075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkAgB-0006Fv-Cx for submit@debbugs.gnu.org; Thu, 28 Apr 2022 16:24:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:42088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkA2A-0005Dx-PP for submit@debbugs.gnu.org; Thu, 28 Apr 2022 15:42:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkA2A-0003dB-Iw for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 15:42:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkA26-0000QO-IK for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 15:42:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4FFB1240028 for ; Thu, 28 Apr 2022 21:42:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1651174950; bh=GeqcJ34k5C6MBY0K2OZbCV8U8yH8S+5RFchExauMQlA=; h=From:Subject:Date:To:From; b=U7RRHmLFNrhorWKIEO4q9AIo4z85eU/Aha7ik1u2oX640NqeS/lwvxx9E9nRVywFD wtAoABlfafMFg/lO/Z223xMp60pDd+bCfI+AT+ZSMn+1SrKduQHM2WuWmAA8ifjizk jBk2GvxN7JTKvf+n4RIZaIl2R9C0yCLqGMkyFweJFgBdRovo87bDPyYt7GLPwzwavp 19MlRBpJ/DOv6j3fZ9VgH+F7RND6kT+2jY/m1+OcD/XnYjrFqS14QJUZ6weq7jAtfY k8swBspA1+zNnhjGLtlvtxsNgRJUjOi8Z7ia+WaKm00PA9qkXayc9pVGcW7GoN7YEM 474anSdEf+iSg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kq5cP644Bz9rxG for ; Thu, 28 Apr 2022 21:42:29 +0200 (CEST) From: Eugene Ha Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Configure --with-native-compilation does not find libgccjit.dylib when installed with Homebrew (macOS) Message-Id: Date: Thu, 28 Apr 2022 19:42:28 +0000 To: bug-gnu-emacs@gnu.org Received-SPF: pass client-ip=185.67.36.65; envelope-from=eha@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 28 Apr 2022 16:23:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Dear Emacs maintainers, Emacs 29.0.50 (a41a181db5f3aca043ed42b228dc56a6403c21a5) fails to build = on macOS 12.3.1 when configured with the following invocation: ./configure --with-native-compilation ... usage: dirname string [...] 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. make: *** [config.status] Error 1 The relevant lines in config.log are the following: configure:19396: checking for gcc_jit_context_acquire in -lgccjit configure:19419: gcc -o conftest -g3 -O2 -isystem [...TRUNCATED...] -I/usr/local/Cellar/libgccjit/11.3.0/include conftest.c -lgccjit = -lsqlite3 -L >&5 clang: error: argument to '-L' is missing (expected 1 value) The clang error refers to the dangling "-L ", which should in fact = reference the path of libgccjit.so or libgccjit.dylib, depending on = what's installed. configure.ac, on the contrary, only checks for = libgccjit.so, whereas Homebrew's (3.4.9-17-g80e5327) libgccjit 11.3.0 = (bottled) installs libgccjit.dylib. The following patch enables configure to find the Homebrew-installed = libgccjit: diff --git a/configure.ac b/configure.ac index 7c8638a471..53e5779e2f 100644 --- a/configure.ac +++ b/configure.ac @@ -4126,7 +4126,7 @@ AC_DEFUN MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \ grep libgccjit.h))" MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit| \ - grep libgccjit.so\$))" + grep -E = 'libgccjit\.(so|dylib)$'))" fi fi Thanks, Eugene Ha= From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 17:49:08 2022 Received: (at 55173) by debbugs.gnu.org; 28 Apr 2022 21:49:08 +0000 Received: from localhost ([127.0.0.1]:50186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkC0Z-0008Od-Qb for submit@debbugs.gnu.org; Thu, 28 Apr 2022 17:49:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkC0Y-0008O6-3H for 55173@debbugs.gnu.org; Thu, 28 Apr 2022 17:49:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2T7Abaknph2gE7vJ0aNoRnMUyTqNCX29/F1IYMDXeiU=; b=DYriWsISOO2nJa/sOj8tPlWQSa 9n0AxYDlJHUqC9Dnisb2vRLnHLorJNPupgVqtdgSCcRAd4MmlwSiuLX5j9LZA5/k/D2BKghz8Okkx 4Cn888lazDkMBpabSpU6s+Rl+IDC0rGwJ3iG5qNlfE1Ax/V5U4EDu3DlGIyXxPXjDdqY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkC0O-0005uK-LZ; Thu, 28 Apr 2022 23:48:59 +0200 From: Lars Ingebrigtsen To: Eugene Ha Subject: Re: bug#55173: Configure --with-native-compilation does not find libgccjit.dylib when installed with Homebrew (macOS) References: X-Now-Playing: Black Uhuru's _The Dub Factor_: "Puffed Out" Date: Thu, 28 Apr 2022 23:48:54 +0200 In-Reply-To: (Eugene Ha's message of "Thu, 28 Apr 2022 19:42:28 +0000") Message-ID: <87tuacj2ux.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eugene Ha writes: > The following patch enables configure to find the Homebrew-installed libgccjit: Thanks; pushed to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55173 Cc: 55173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eugene Ha writes: > The following patch enables configure to find the Homebrew-installed libgccjit: Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 17:49:15 2022 Received: (at control) by debbugs.gnu.org; 28 Apr 2022 21:49:15 +0000 Received: from localhost ([127.0.0.1]:50189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkC0h-0008Ox-20 for submit@debbugs.gnu.org; Thu, 28 Apr 2022 17:49:15 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkC0f-0008Ok-QD for control@debbugs.gnu.org; Thu, 28 Apr 2022 17:49:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bjGJrE1WkqLSUiiNaq/1JN0KjADhq7uEc2tIxU28d6Y=; b=SHCpf99JfieOCTCJcpwwyAEj5i Hvu4k0IQyST+JXnJhQ2YGN9y6FG8q4dqUqmH8L2QkUDizGAK2aqmXRDt5lXkxDI284Wdtm09Y/g7S 0nGBiPc2UBfmPUL78D2VluMM0SakC881MOB3S3BRbAQcs6aJaAdm1D6Mq+Pm6GYgNT7o=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkC0Y-0005uY-0k for control@debbugs.gnu.org; Thu, 28 Apr 2022 23:49:07 +0200 Date: Thu, 28 Apr 2022 23:49:04 +0200 Message-Id: <87sfpwj2un.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55173 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55173 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55173 29.1 quit From unknown Fri Sep 05 08:43:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 May 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator