From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#45934: native-comp - Dylib ID of ELN files not optimal Date: Thu, 5 Aug 2021 20:00:19 +0100 Message-ID: References: <14FA30A6-E8CC-4A7D-9F40-954515F814D9@yahoo.it> <7D999BAF-3306-4625-B062-E4512363E584@yahoo.it> <87mtq4m16u.fsf@gnus.org> <87eeb9hf63.fsf@gnus.org> <87im0ki2lq.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Davide Restivo , 45934@debbugs.gnu.org, xgutter@yahoo.it, Andrea Corallo To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 05 21:01:15 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 1mBicE-0001YO-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 21:01:14 +0200 Original-Received: from localhost ([::1]:41258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBicD-000095-Cu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 15:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBic2-00006C-Sl for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 15:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBic1-0003MN-Nq for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 15:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBic1-0002IR-Jy for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 15:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2021 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45934 X-GNU-PR-Package: emacs Original-Received: via spool by 45934-submit@debbugs.gnu.org id=B45934.16281900358788 (code B ref 45934); Thu, 05 Aug 2021 19:01:01 +0000 Original-Received: (at 45934) by debbugs.gnu.org; 5 Aug 2021 19:00:35 +0000 Original-Received: from localhost ([127.0.0.1]:48454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBibb-0002Hg-35 for submit@debbugs.gnu.org; Thu, 05 Aug 2021 15:00:35 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:44865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBibY-0002HR-W6 for 45934@debbugs.gnu.org; Thu, 05 Aug 2021 15:00:34 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 8110A292; Thu, 5 Aug 2021 19:00:26 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1628190025; bh=Qr4nWP0d6P7QCS9CtU/8y7cHUIG6xE2oJ0hUr4Z/al0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FmoHOM/4keRGqxNZzFEbMEeun8HWYyzan9ku0djO2W9Er/IZQcnqpScM9QuagNKMu lQugD3OkBgeEvzUUsKyJEVMqNy4s4EQNeMnf6gjOypixIN2h8UDMaUyBlJvD2cPD/z HiFs4/vsszuBN0EE4GB8jPuvGSltFGJ3QaunFbNYf2MTIMdtswp4+7ypPFNkDH9qx6 0tmQwoeqlnMdQyGrnSPIPyMB/AtZngdAzDpvpPYNxXdBG+r9j6I6GL1eZpIRVeGZ83 P1EbXXaqbZjHvej1S87l4+c2T4a29SDttcLi2NMC/8wpN/4ZyDF1fs76Hbo2JT1xSz RM9yQARPLTIqQ== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1mBibL-000F0a-9a; Thu, 05 Aug 2021 20:00:19 +0100 Mail-Followup-To: Alan Third , Lars Ingebrigtsen , Andrea Corallo , Davide Restivo , 45934@debbugs.gnu.org, xgutter@yahoo.it Content-Disposition: inline In-Reply-To: <87im0ki2lq.fsf@gnus.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:211268 Archived-At: On Thu, Aug 05, 2021 at 12:54:09PM +0200, Lars Ingebrigtsen wrote: > Alan Third writes: > > > I'm not sure about with MacPorts, but with Homebrew it should just be > > a case of installing libgccjit and configuring as normal. > > With Macports, Configuring as normal just gets me clang (masquerading as > /usr/bin/cc), but I can say "CC=/that/macports/gcc ./configure", but it > doesn't find the libgccjit stuff. You don't need to build with gcc to use libgccjit, and in fact you can't build the GUI with gcc at all. I finally found the code that works it out for Homebrew. I've never used MacPorts but I think all you need to do is something similar to (from configure.ac:3820): CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_PREFIX}/include" LDFLAGS="$LDFLAGS -L${brew_libdir} -I${BREW_LIBGCCJIT_PREFIX}/include" Where "${BREW_LIBGCCJIT_PREFIX}/include" is where the include files are and ${brew_libdir} is where the .so files are. This is relatively easy to automate with Homebrew because we can just ask it where libgccjit is installed and then work out the paths, but I don't know about Macports. > > If it's an Arm mac then I think it requires gcc 11. > > > > I don't know why the Mac community tends towards maintaining huge > > scripts and/or lists of configure flags for building Emacs, because in > > my experience they're not required, but it does seem to be the norm. > > Yeah, building on Macos is almost as trivial as on Debian (at least with > clang), but there's all these really convoluted scripts out there... > > My hope was that it was as simple to build with the Macports gcc, too, > but... apparently not? (I'd rather not install Homebrew, too, on this > laptop -- that just sounds too confusing.) I'm sure it must be easy enough. Homebrew is a bit of a pain in the backside because it intentionally leaves many installed packages unavailable so as not to interfere with the normal macOS install. I was under the impression that Macports was a simpler set-up. -- Alan Third