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.devel Subject: Re: Failure building with libgccjit under MacOS Monterey Date: Fri, 12 Nov 2021 21:23:58 +0000 Message-ID: References: <4f09a21c-2007-5949-1dc5-9dda150063f0@piermont.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 12 22:25:29 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mle36-0000Vn-3U for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Nov 2021 22:25:28 +0100 Original-Received: from localhost ([::1]:40244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mle34-0006rU-Mt for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Nov 2021 16:25:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mle1s-00069B-IC for emacs-devel@gnu.org; Fri, 12 Nov 2021 16:24:14 -0500 Original-Received: from outbound.soverin.net ([116.202.126.228]:53019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mle1q-0004Rp-2C for emacs-devel@gnu.org; Fri, 12 Nov 2021 16:24:12 -0500 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 35BC08B0; Fri, 12 Nov 2021 21:23:58 +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=1636752237; bh=xOoxop9RydyzP5LXjsRczmmZ5AEgWJpVTQNSF3lG7XU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b7DMnXjDKYTwLEAs+OZv8AtYH4c9xMI1ebf8ZX2KSKlJU2Fi/ZL8/Z3DVMWYWApR4 SWCEcGrYyg3BVK6UmhAekxd6QwagiFHM9i5OIN73nZRNNRbK21SgKHxNTR1X69Dqly ErFodIVPiZbjUaAvBZSPbkcgk1m0S2jPJyLNIP4W5BkkQMZifLMzpp5ZgMo5F/woS4 nATYnQzkD1FwdDtnuhoGzIEMqe31qa/TxLbZi3WlwghfJof8NcbhnWtPmRxcqkAXRj IhG7c3HkJr1iIIiP0DD2blSBA74rBHD/64d9mIH5I+w5U1JyMRiau+yBes9jx2b1oB UW4CYYeZmi/+Q== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mle1e-000H7I-1W; Fri, 12 Nov 2021 21:23:58 +0000 Mail-Followup-To: Alan Third , "Perry E. Metzger" , emacs-devel Content-Disposition: inline In-Reply-To: <4f09a21c-2007-5949-1dc5-9dda150063f0@piermont.com> Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279296 Archived-At: On Mon, Nov 08, 2021 at 03:49:28PM -0500, Perry E. Metzger wrote: > On 11/8/21 15:16, Alan Third wrote: > > On Sun, Nov 07, 2021 at 04:46:21PM -0500, Perry E. Metzger wrote: > > > Howdy! I suspect this is a mistake I'm making somewhere, but I'd like a hint > > > on where to look to fix it. When building the Emacs 28 branch on the latest > > > MacOS, I unexpectedly get a failure: > > > > > >   configure: error: The installed libgccjit failed to compile and run a test > > > program using > > >   the libgccjit library; see config.log for the details of the failure. > > > > > > Looking at the config.log says (I think this is the key line): > > > > > >   ld: library not found for -lSystem > > > > > > A few weeks ago I was building JIT versions of Emacs just fine with the same > > > configuration; updating the OS might or might not have been the big change. > > > Any ideas what I might need to fix? > > How have you installed libgccjit? > > Using MacPorts. The mechanism hasn't changed significantly since it was last > working (nor has the package). > > > It might be helpful to give a little more context around the error. Is > > there a complete command that it's trying to run? > > I can forward the full build configure if that will help. I suspect most > people on the mailing list don't want to see it; should I send it to you > personally? Hmm, I don't see anything wrong with the command lines. It looks like the error is actually being caused by the attempt to set up or use libgccjit within the smoketest. I don't know anything about how that works. The full error text for anyone interested is below. configure:17126: /usr/bin/cc -o conftest -g3 -O2 -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gcc11 -I/opt/local/include -I/opt/local/include/gcc11 -L/opt/local/lib -L/opt/local/lib/gcc11 conftest.c -lgccjit -L/opt/local/lib/gcc11 >&5 configure:17126: $? = 0 configure:17126: ./conftest ld: library not found for -lSystem collect2: error: ld returned 1 exit status libgccjit.so: error: error invoking gcc driver configure:17126: $? = 1 configure: program exited with status 1 configure:17131: error: The installed libgccjit failed to compile and run a test program using the libgccjit library; see config.log for the details of the failure. The test program can be found here: . You can try compiling it yourself to investigate the issues. Please report the issue to your distribution if libgccjit was installed through that. You can find the instructions on how to compile and install libgccjit from source on this site: . -- Alan Third