GNU bug report logs - #79709
31.0.50; macOS: configure not finding libgccjit unless --with-native-compilation specified

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Tue, 28 Oct 2025 14:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 14 Nov 2025 07:15:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 14 02:15:55 2025
Received: from localhost ([127.0.0.1]:59720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJo2F-0002Ct-G2
	for submit <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:15:55 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vJo2D-0002Cn-18
 for 79709 <at> debbugs.gnu.org; Fri, 14 Nov 2025 02:15:53 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vJo27-0002kP-EH; Fri, 14 Nov 2025 02:15:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=tlFV6ZtOwpfVTDXCuvnSkNPLVYZMDuCJyK3iPUg8eR8=; b=fnA3lrQQvJdyT+qLOPX3
 ajMxUGdpwC0yFfRGQw0h2s4L++8NTGyRynaQzYzFBF95tBw4FHCkbeViAKdGleLrLeLYEE17wugEn
 CScUrTvtJlBQ+0S6xKti6lFjrbc/f5+lJrhPqzNZ8rRsWVe1vWi7Dtvt8KC6sCz0VWf/dVpVQ9q6W
 r4hIGfb3pvkf7DNMYKxie1RQvlqQwAcGX5udnG9Cd3YMtIJezdxArmTzDL0BRKfe6X2eBomkaUYRV
 bOrClBVrDEdlqtI56Yi/c34lPANELyOuqsWJvX3QtNJ0hlNACforfrN7Kb7iIu+/gqccO3WWZNb+/
 S8SvkB9Cz8mCng==;
Date: Fri, 14 Nov 2025 09:15:42 +0200
Message-Id: <86pl9lqe3l.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
In-Reply-To: <m28qg9zizr.fsf@HIDDEN> (message from Rudolf
 =?utf-8?Q?Adamkovi=C4=8D?= on Thu, 13 Nov 2025 23:05:12 +0100)
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
 <86pl9o34bq.fsf@HIDDEN> <m2qzu38xi2.fsf@HIDDEN>
 <864iqztos8.fsf@HIDDEN> <m28qg9zizr.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79709
Cc: gerd.moellmann@HIDDEN, acorallo@HIDDEN, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rudolf Adamkovič <rudolf@HIDDEN>
> Cc: gerd.moellmann@HIDDEN, 79709 <at> debbugs.gnu.org, acorallo@HIDDEN
> Date: Thu, 13 Nov 2025 23:05:12 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Did you use any other configure options besides --with-native-compilation?
> > if so, which one(s)?  And (assuming both invocations were on the same
> > system), why are the line numbers reported by configure different
> > between the two cases?  This seems to imply that something else
> > is different between these two builds.
> 
> I typed exactly:
> 
> - `./configure --with-native-compilation=aot' in Case 1
> - `./configure' in Case 2
> 
> Executed one after another, on the same system.

So your post basically repeats what Gerd reported at the beginning of
this bug report, is that right?  Sorry, I thought you were telling
something in addition.

Patches that fix this from someone who could test them on macOS will
be welcome, of course.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 13 Nov 2025 22:05:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 13 17:05:22 2025
Received: from localhost ([127.0.0.1]:57576 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJfRS-0005FQ-1u
	for submit <at> debbugs.gnu.org; Thu, 13 Nov 2025 17:05:22 -0500
Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]:46645)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rudolf@HIDDEN>)
 id 1vJfRQ-0005DO-MQ
 for 79709 <at> debbugs.gnu.org; Thu, 13 Nov 2025 17:05:21 -0500
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfout.stl.internal (Postfix) with ESMTP id 32C9E1D0021E;
 Thu, 13 Nov 2025 17:05:15 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Thu, 13 Nov 2025 17:05:15 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm1;
 t=1763071515; x=1763157915; bh=rIsBfmRCC7ysYergh7Pg7Vkb6TsiRA2R
 C4lNto7aiUE=; b=MLNSPn86WdRHYqd64BmVgqPN85PCLAd7fd1CV9uSe9fyMmnv
 eaqAcrAottmUc857T6dmFPVJaVO74Gpq5kOvjx+5gOw+enmRKFxfPyJ7ovoJtYQL
 2QS4zPBaApbXcQzfzORWjvBlpKHafDfB1x0I9T7vNM46IcmlrjxDVGxuPyFyjW2s
 xsTMmJjoZfQppU9NZhwrnUeaiixxFJhqm157uuQt4uk6f0eVUxOT9jXV12GBBYYf
 HJ+wjEQPVPn2c6VHhOGGf33a2fTortiplPOO0lJqKNVIz7J3vR8u6TxUp22BdtRE
 zG4FLbgk9eQi0+KIh/rLJjKifoc53TDLxfoH+A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1763071515; x=
 1763157915; bh=rIsBfmRCC7ysYergh7Pg7Vkb6TsiRA2RC4lNto7aiUE=; b=K
 8ZgS/iYyu/k6EaUUuHrKuL9FsrjQ6OSJFQqAfPnIjjitADnSlFEuhb6ouXexDqxY
 gdF6KyDX2NJGUc0gc0PkDugZWpUv9aIIT94YMGzcRjHAI+quNCv5T5qVkAEerIWW
 HXyxCkh1iB1Vf2BrVQOM0aJoaQ3EMOEYQh3Crvz1gZBIHDwYMnsPbij/y/HyAfG7
 rXiC2yuP5Iv2xtXCUkBWbADSVBEMEXptogUEpY0VUTx+Ejy8w9+F4btYM9J8Pjue
 ahFOk0IMnnhComo/zvd/w0iZAUUrIN1iS0c1QQsMUXhhJAQqwO6XVB40fOkHG2vM
 HeKPa0P5fNeIVZdN/lEwA==
X-ME-Sender: <xms:GlYWadue3hlhxHUNz5aQWKXc23khH9sdH2g7hlnMCXnPAa9tTQf2SA>
 <xme:GlYWaRBzUNAnKBihAHLSjjrj8TwCUXlYn5gH9pvQYFJ8n4LBYaCU6hjLx8ExrK92p
 Y9pUx9UnIqHNCD42wtuo7t5Xqkx8iiNnqzpRlNlEWEFjwOo_gqRS2o>
X-ME-Received: <xmr:GlYWadVrgcVCskcJtZ3GIlj23Chv2_uQg_42fhFqAR8LlnTHIqxIZqjATAlg843E0WslhwH3oQsQl9t_EDUBpRqe5ewab44>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdektdelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomheptfhuugholhhf
 ucetuggrmhhkohhvihgtuceorhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgqeenuc
 ggtffrrghtthgvrhhnpeeiueetheffudfghfeggeevheevvddtkefflefhueeludfgtefg
 ffeltdfhudejgeenucffohhmrghinheprggurghmkhhovhhitgdrohhrghenucevlhhush
 htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhguohhlfhesrggu
 rghmkhhovhhitgdrohhrghdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouh
 htpdhrtghpthhtoheprggtohhrrghllhhosehgnhhurdhorhhgpdhrtghpthhtohepjeel
 jedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehgvghrugdrmhhovg
 hllhhmrghnnhesghhmrghilhdrtghomhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhr
 gh
X-ME-Proxy: <xmx:GlYWaXB9mSr_aDIUlQokESA-SGJjjNE0k9kRDiPlAaYPslLTqN0s1g>
 <xmx:GlYWaY9W4xs8WfDruMtngofF8mc0idC1GT72_xnInSrZngtgTfjOUA>
 <xmx:GlYWaWFoT3U1y-IJxOXW8jzTPkWaQGmXS71IUeZm3LKFpSygm5eaCg>
 <xmx:GlYWaeN9L73UGB9tuYNKe7XeqU7_4dL9mFYWUv3FNKUI0fDp75NSZw>
 <xmx:G1YWaTW3XhD_XKdjwpFCDRRfLmXtdo-jYmKUOiDneEwOtZTuV4Nh72yG>
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 13 Nov 2025 17:05:13 -0500 (EST)
From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <864iqztos8.fsf@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
 <86pl9o34bq.fsf@HIDDEN> <m2qzu38xi2.fsf@HIDDEN>
 <864iqztos8.fsf@HIDDEN>
Date: Thu, 13 Nov 2025 23:05:12 +0100
Message-ID: <m28qg9zizr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79709
Cc: gerd.moellmann@HIDDEN, acorallo@HIDDEN, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Did you use any other configure options besides --with-native-compilation?
> if so, which one(s)?  And (assuming both invocations were on the same
> system), why are the line numbers reported by configure different
> between the two cases?  This seems to imply that something else
> is different between these two builds.

I typed exactly:

- `./configure --with-native-compilation=3Daot' in Case 1
- `./configure' in Case 2

Executed one after another, on the same system.

Rudy
--=20
"To the unknown journeyman
 I promise to show courage
 in upholding my vows

 What is an adventure
 if not the commitment
 to keep going?"

--- Protesilaos Stavrou, To the unknown journeyman, 2025

Rudolf Adamkovi=C4=8D <rudolf@HIDDEN> [he/him]
http://adamkovic.org




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 12 Nov 2025 12:45:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 12 07:45:40 2025
Received: from localhost ([127.0.0.1]:49064 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJAEF-0003WI-Rj
	for submit <at> debbugs.gnu.org; Wed, 12 Nov 2025 07:45:40 -0500
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:45405)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vJAED-0003W8-Mc
 for 79709 <at> debbugs.gnu.org; Wed, 12 Nov 2025 07:45:38 -0500
Received: by mail-wm1-x32c.google.com with SMTP id
 5b1f17b1804b1-477619f8ae5so6109915e9.3
 for <79709 <at> debbugs.gnu.org>; Wed, 12 Nov 2025 04:45:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762951532; x=1763556332; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=3YMY3Dmi3hsT9bhsyUM61KD4n0b20NgC9XwRdlS0uT8=;
 b=SH+za3+66g/QWugerFEBbg7EGZXeolLDwvLIN9HjgiZ1mTa3q8qNE1emLNx20YJkk8
 5N6ufSqoAhv991+KNYxWp6Bf4/UQ+5k9cJOdHWh/qLBtyFUeiRvO6gZq4AIDsGJy/XZ9
 X6z3UI0bm39yWPhlhHr7TzwxRtNQBkP/aZypIvrzMpola4sFbjv/GhDvTQwCMheds2ct
 HGCKevPKZz5lg/kAPn6I6rNjUI5YReU0cBtGcaKnp0leWA1PacDTivsB0OwFr3BEVyqT
 c4EI5KIgZsNgo19jFi9P1VFm38TrY8dbMTRw6NDPDzd/ECKIPM4aWq7LATnVylAIvNGC
 S2Cw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762951532; x=1763556332;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=3YMY3Dmi3hsT9bhsyUM61KD4n0b20NgC9XwRdlS0uT8=;
 b=eTAIDpS+o8U5d7ujV1FPfy6XorQSuxtG/gtHZTl8a0SECZ4ajipvHPMg+DzYyhz50o
 c0SOY+SdmCXRad2POCck2jjoYQnoRRKxQQ0zwxytKziFz41PTSNaffvfvTsU3FW7QFXI
 FZRjBETTo07z7CQwD+5Chs35TiYCLTmwaUGYJrFn1aVgP5XDJA8Gi4gjMnuypD2dt9Az
 mjCNZU/rqlV8N6gKYwLNZwTpKdNrLAVqIOpcH2rkCdqT3jnnsgNNNIUjqKMgKFKG0nE0
 /y+yGzXpNLRakqLrdYvMIqvLRRr9IFleya01MdCSSapPMUkArmIg35JaR1BV3s72h+37
 USuA==
X-Forwarded-Encrypted: i=1;
 AJvYcCWViLjZpxQqbXHGO1krnSJrYl2iaKq6klAspNypvf1oKLBnjTf2szrlSM+fI4u5qbd110eSDw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzbbecqgEHNKOC+8QlkLTJ/j29t1NY7+2qsqDu6f0S/tmKwfqBO
 IhGQnTkeBLT7GHQZa+ZxqemTiDh4uUGTYCmPDLpiyxv5PNQzaXD0I91R
X-Gm-Gg: ASbGnct6K0mYB+lPoD8r+qemMij5ngEXyHeeRcBewAOjsCY78AUKeqGZOcAKjeJ3cuL
 V1whDEBt4ktW6rDLs/jIBXw7we4Fi4d2fnBKeSPifC3Zj7qpM8GpGZOigFXc3+mjaTZBGLCGqtl
 9ErwrLiV02Tdmd8F/VO6jW89ViaVu/2bkT6rDJEDl5CK4bRmwWKwleMDkYeeWe1PlTOUVoJug6N
 I10/gueJ/GUnhWMJqYA3+Hhq8KWDFsV5L561dMOTxOz3jz+kz/THeOlG80n5OkQCGpIWAihsye2
 uWgtYnxyhVz3A1HFNc3PLY+LWoPZEITGWpMFuhN2ZU0aZgGpL4w9dWho+LTdkaWi4w11KWx1NQN
 Fil8KYD7gk6jWsvXoQ8kcacK0y+l3zmmrWg3TovPjaFWPMNtwwInJlHmJyfHtrdd3uCND07T5sa
 uDDqtTCUWXZtqQcPlbKx8QQ7wbmTdzxkhJ9RaWgTtrEQ36ljS7o2Vzcpd5iPkJiVzYBi5z20h9D
 UxD5b/+pA==
X-Google-Smtp-Source: AGHT+IGHehaE+JPuwLS3P9Txg2PstAl0IDitYI75Ws+/DEUOON8e6oZCciD8/00HE4iYZuoUYNnJUg==
X-Received: by 2002:a05:600c:3b0a:b0:477:54b3:3484 with SMTP id
 5b1f17b1804b1-477870b5d88mr26022105e9.37.1762951531326; 
 Wed, 12 Nov 2025 04:45:31 -0800 (PST)
Received: from pro4 (p200300e0b70537000016b47da38c88ea.dip0.t-ipconnect.de.
 [2003:e0:b705:3700:16:b47d:a38c:88ea])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-47787e58501sm33825795e9.10.2025.11.12.04.45.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 12 Nov 2025 04:45:30 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <864iqztos8.fsf@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
 <86pl9o34bq.fsf@HIDDEN> <m2qzu38xi2.fsf@HIDDEN>
 <864iqztos8.fsf@HIDDEN>
Date: Wed, 12 Nov 2025 13:45:29 +0100
Message-ID: <m2wm3v4dxy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>, acorallo@HIDDEN,
 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> So in the first case you either told the configure script where to
> look for libgccgit or it figured that out by itself, whereas in the
> second case you didn't and it couldn't.

Please see my original bug report. It shows how configure.ac does that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 12 Nov 2025 12:32:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 12 07:32:36 2025
Received: from localhost ([127.0.0.1]:49032 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJA1b-0002vs-EM
	for submit <at> debbugs.gnu.org; Wed, 12 Nov 2025 07:32:35 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:46326)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vJA1Y-0002vc-Vk
 for 79709 <at> debbugs.gnu.org; Wed, 12 Nov 2025 07:32:34 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vJA1S-0006IM-Hb; Wed, 12 Nov 2025 07:32:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=DoH7fyVRIO3J669KsQlumNq2e6zRZH4HOyhAjoU3oGc=; b=eve1OkSvFGWw0KUOv6Sm
 sAmgrFAc4WCh5QptcyYpNsftQPFLNjhdKWEMUBTQW7fOYj4qbOE/AmzCwYGg/Za4wuj+jRRGqXjIk
 hUgb/wiPceSJqRROPfUT8CzB4ikIlMpr4YIlEENcBsPOvtUC22zgMbazJBZnMLme3V1yc1hm1rD6b
 cK5uFNUf5dxqwyvyo4YgzDn1qx8isCw3MMTYBz+AtcN+BkrfnK1XBUE3yY4pEQQYLH8tgyCNoNW7c
 LRADRB8h1vSc1lNh2leRyzAEKDrVvIJO1QCnifBIpT5I4IiBhyTcxn3/cT6u+3/PtzxYOrpZLEzCs
 Y2bcutgU4BQleA==;
Date: Wed, 12 Nov 2025 14:32:07 +0200
Message-Id: <864iqztos8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
In-Reply-To: <m2qzu38xi2.fsf@HIDDEN> (message from Rudolf
 =?utf-8?Q?Adamkovi=C4=8D?= on Wed, 12 Nov 2025 09:29:25 +0100)
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
 <86pl9o34bq.fsf@HIDDEN> <m2qzu38xi2.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79709
Cc: gerd.moellmann@HIDDEN, acorallo@HIDDEN, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rudolf Adamkovič <rudolf@HIDDEN>
> Cc: gerd.moellmann@HIDDEN, 79709 <at> debbugs.gnu.org, acorallo@HIDDEN
> Date: Wed, 12 Nov 2025 09:29:25 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Please post the relevant parts of config.log, which show how the first
> > test succeeded while the second one failed.  Without that information,
> > it is impossible to guess what happened.
> 
> Thank you for your guidance.  Here it is:

The difference is that the successful compilation/link uses -L to tell
the linker where to look for libgccjit installation:

>  conftest.c -lgccjit  -lsqlite3   -L/opt/homebrew/Cellar/libgccjit/15.2.0/lib/gcc/current >&5
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

whereas the failing one does not:

>      conftest.c -lgccjit  -lsqlite3   >&5
> +++ ld: library 'gccjit' not found
> +++ clang: error: linker command failed with exit code 1 (use -v to see invocation)

And the same is true for the compilation command that verifies the
libgccgit.h header can be found: the successful one uses -I to specify
where to find the libgccgit headers:

>  -I/opt/homebrew/Cellar/libgccjit/15.2.0/include    conftest.c >&5
> +++ configure:28649: $? = 0
> +++ configure:28649: result: yes

The above succeeds due to the -I switch, whereas the below does NOT
use it, and fails:

>  -isystem /opt/homebrew/Cellar/pcre2/10.46/include    conftest.c >&5
> +++ conftest.c:162:10: fatal error: 'libgccjit.h' file not found
> +++   162 | #include <libgccjit.h>
> +++       |          ^~~~~~~~~~~~~
> +++ 1 error generated.

So in the first case you either told the configure script where to
look for libgccgit or it figured that out by itself, whereas in the
second case you didn't and it couldn't.

Did you use any other configure options besides --with-native-compilation?
if so, which one(s)?  And (assuming both invocations were on the same
system), why are the line numbers reported by configure different
between the two cases?  This seems to imply that something else
is different between these two builds.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 12 Nov 2025 08:29:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 12 03:29:38 2025
Received: from localhost ([127.0.0.1]:48473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vJ6ET-0007Mg-0e
	for submit <at> debbugs.gnu.org; Wed, 12 Nov 2025 03:29:38 -0500
Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]:36165)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rudolf@HIDDEN>)
 id 1vJ6EP-0007Ma-K2
 for 79709 <at> debbugs.gnu.org; Wed, 12 Nov 2025 03:29:34 -0500
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 11C897A0194;
 Wed, 12 Nov 2025 03:29:28 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-03.internal (MEProxy); Wed, 12 Nov 2025 03:29:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm1;
 t=1762936167; x=1763022567; bh=UyMfSIYLhEp/GKHyds++ywARgPO9I2lX
 nDRPlxu0i5c=; b=WtjJ2Ppyl73yY09821qP4XvgJ+X8y5+hVGsnxGJ4pxw4LiJY
 04ijChGHnn4A8w7WVZzdY6pMtdiDGLYrMRYoMgWeEBfusP0MXLW5817vE2H6wDBT
 rCtOFlh485C3PWy4P/DgE52PSEDONML3KZSDZMFWKHl4dqyDvRyiz+bxbWB1f9sE
 3wZok8ooy27TPnZMd4uj/7GceuK9c+s6TQT6otPxneGSe3WT6y8o+uoOlEYQxX+2
 UNv+dAvHECkbtJ8pMfJKF0L3Zd8+ovm4712th8stQqQN1l/EEIOZqZhEJ6KlPU6o
 oo4XHBDdswDFDXlFJzgnU8zXgt+vKbvbDZFO+Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1762936167; x=
 1763022567; bh=UyMfSIYLhEp/GKHyds++ywARgPO9I2lXnDRPlxu0i5c=; b=F
 wJFAJ1YUqA19SIKwEYtLrxjsmYhLBFGDVgdvIQblP3+yPPQ8WdDGcnVU6QBbP5iZ
 Moxphj3JRFxYoy+pkFqhwfdjTX1UWE96eZPzmGAJMQtiSKUzX1hJN66LcJAI/RRt
 s2MU6OWhhr80VlTbKV7EmQprfJ9gfSFafteNNpyunscC0nIA2lql5HbW0vouNuIs
 4KnZ0aSh37tH8+ESZ/v4cynWxDZCY7i9/qSgSqE7O0k1+WBna3BAwP4euuM5FfJv
 Rr07G7J8VelhYhdA6KsqlQliHAWCZDT3Izw3pgz+/QyDRulCYW1yzovE92m6xGhD
 Sx0r97+YUh6GgfTzrVQ0Q==
X-ME-Sender: <xms:Z0UUaVQHIYov28Er2VE2KKSRnzcJXSUzkfjtXYnZRJZ3lDH5Nj02DA>
 <xme:Z0UUaVxXRHkiiP8j7eIAlI42FH4e8tLJdC5c91DJ2c6Dw8KM830oIAbY5mhzet0yp
 7pACBeXKXHsumuh7kvqcj-Bxdu6xsLrPzlKrU6CbGsqRNHEGKlCV3Y>
X-ME-Received: <xmr:Z0UUaf3nT8cDu0k0bwf6d1P0Zu0Jgpi77ceCwXqmN_Bb9A5ujFNJMgSKkocVRM8NRi51e7blJm9B3tuWjq5vkjszhywbALo>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdefheelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomheptfhuugholhhf
 ucetuggrmhhkohhvihgtuceorhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgqeenuc
 ggtffrrghtthgvrhhnpefhgefhgfdvuefglefhfedttdelueeljeeuteffhfeiffeuveeu
 ffetfeefveduhfenucffohhmrghinhepghhnuhdrohhrghdprggurghmkhhovhhitgdroh
 hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehr
 uhguohhlfhesrggurghmkhhovhhitgdrohhrghdpnhgspghrtghpthhtohepgedpmhhoug
 gvpehsmhhtphhouhhtpdhrtghpthhtoheprggtohhrrghllhhosehgnhhurdhorhhgpdhr
 tghpthhtohepjeeljedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhope
 hgvghrugdrmhhovghllhhmrghnnhesghhmrghilhdrtghomhdprhgtphhtthhopegvlhhi
 iiesghhnuhdrohhrgh
X-ME-Proxy: <xmx:Z0UUab4iz8P6K3nZBWOF0e2zdtHM9fVhANcrdQZEJA0Bmd_bDRCmZA>
 <xmx:Z0UUaaW00fB0-dB3-fRtZ1nDr3pFnk9HH7ZpTBooExjXNRb9ktMfcw>
 <xmx:Z0UUaSB2SN7rT5bfV3jejV3d4BCd4JG_x3aUXt0tslBN_shm_GL58g>
 <xmx:Z0UUaR4fZuwBlJoyq-y7yaXEojkgrfXBQrnhMEilYnJg66VJ6WjN4A>
 <xmx:Z0UUafFzHk33ygm0ij_XhLuG1I-QMD5awbegk63FauOn0MiD-6QL9Ii0>
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 12 Nov 2025 03:29:26 -0500 (EST)
From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <86pl9o34bq.fsf@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
 <86pl9o34bq.fsf@HIDDEN>
Date: Wed, 12 Nov 2025 09:29:25 +0100
Message-ID: <m2qzu38xi2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79709
Cc: gerd.moellmann@HIDDEN, acorallo@HIDDEN, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Please post the relevant parts of config.log, which show how the first
> test succeeded while the second one failed.  Without that information,
> it is impossible to guess what happened.

Thank you for your guidance.  Here it is:

>> Case 1: `./configure --with-native-compilation=3Daot':

+++ configure:28589: checking for gcc_jit_context_acquire in -lgccjit
+++ configure:28618: gcc -o conftest -g3 -O2 -isystem /opt/homebrew/Cellar/=
librsvg/2.61.1/include/librsvg-2.0 -isystem /opt/homebrew/include/gdk-pixbu=
f-2.0 -isystem /opt/homebrew/opt/libtiff/include -isystem /opt/homebrew/opt=
/zstd/include -isystem /opt/homebrew/Cellar/xz/5.8.1/include -isystem /opt/=
homebrew/opt/jpeg-turbo/include -isystem /opt/homebrew/Cellar/cairo/1.18.4/=
include/cairo -isystem /opt/homebrew/Cellar/cairo/1.18.4/include -isystem /=
opt/homebrew/Cellar/pango/1.57.0/include/pango-1.0 -isystem /opt/homebrew/C=
ellar/glib/2.86.0/include -isystem /opt/homebrew/Cellar/fribidi/1.0.16/incl=
ude/fribidi -isystem /opt/homebrew/Cellar/fontconfig/2.17.1/include -isyste=
m /opt/homebrew/Cellar/libxext/1.3.6/include -isystem /opt/homebrew/Cellar/=
xorgproto/2024.1/include -isystem /opt/homebrew/Cellar/libxrender/0.9.12/in=
clude -isystem /opt/homebrew/Cellar/libx11/1.8.12/include -isystem /opt/hom=
ebrew/Cellar/libxcb/1.17.0/include -isystem /opt/homebrew/Cellar/libxau/1.0=
.12/include -isystem /opt/homebrew/Cellar/libxdmcp/1.1.5/include -isystem /=
opt/homebrew/Cellar/pixman/0.46.4/include/pixman-1 -isystem /opt/homebrew/C=
ellar/harfbuzz/12.1.0/include/harfbuzz -isystem /opt/homebrew/opt/freetype/=
include/freetype2 -isystem /opt/homebrew/opt/libpng/include/libpng16 -isyst=
em /opt/homebrew/Cellar/graphite2/1.3.14/include -isystem /Library/Develope=
r/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -isystem /opt/homebrew=
/Cellar/glib/2.86.0/include/glib-2.0 -isystem /opt/homebrew/Cellar/glib/2.8=
6.0/lib/glib-2.0/include -isystem /opt/homebrew/opt/gettext/include -isyste=
m /opt/homebrew/Cellar/pcre2/10.46/include -I/opt/homebrew/Cellar/libgccjit=
/15.2.0/include     conftest.c -lgccjit  -lsqlite3   -L/opt/homebrew/Cellar=
/libgccjit/15.2.0/lib/gcc/current >&5
+++ configure:28618: $? =3D 0
+++ configure:28630: result: yes
+++ configure:28649: checking for libgccjit.h
+++ configure:28649: gcc -c -g3 -O2 -isystem /opt/homebrew/Cellar/librsvg/2=
.61.1/include/librsvg-2.0 -isystem /opt/homebrew/include/gdk-pixbuf-2.0 -is=
ystem /opt/homebrew/opt/libtiff/include -isystem /opt/homebrew/opt/zstd/inc=
lude -isystem /opt/homebrew/Cellar/xz/5.8.1/include -isystem /opt/homebrew/=
opt/jpeg-turbo/include -isystem /opt/homebrew/Cellar/cairo/1.18.4/include/c=
airo -isystem /opt/homebrew/Cellar/cairo/1.18.4/include -isystem /opt/homeb=
rew/Cellar/pango/1.57.0/include/pango-1.0 -isystem /opt/homebrew/Cellar/gli=
b/2.86.0/include -isystem /opt/homebrew/Cellar/fribidi/1.0.16/include/fribi=
di -isystem /opt/homebrew/Cellar/fontconfig/2.17.1/include -isystem /opt/ho=
mebrew/Cellar/libxext/1.3.6/include -isystem /opt/homebrew/Cellar/xorgproto=
/2024.1/include -isystem /opt/homebrew/Cellar/libxrender/0.9.12/include -is=
ystem /opt/homebrew/Cellar/libx11/1.8.12/include -isystem /opt/homebrew/Cel=
lar/libxcb/1.17.0/include -isystem /opt/homebrew/Cellar/libxau/1.0.12/inclu=
de -isystem /opt/homebrew/Cellar/libxdmcp/1.1.5/include -isystem /opt/homeb=
rew/Cellar/pixman/0.46.4/include/pixman-1 -isystem /opt/homebrew/Cellar/har=
fbuzz/12.1.0/include/harfbuzz -isystem /opt/homebrew/opt/freetype/include/f=
reetype2 -isystem /opt/homebrew/opt/libpng/include/libpng16 -isystem /opt/h=
omebrew/Cellar/graphite2/1.3.14/include -isystem /Library/Developer/Command=
LineTools/SDKs/MacOSX15.sdk/usr/include/ffi -isystem /opt/homebrew/Cellar/g=
lib/2.86.0/include/glib-2.0 -isystem /opt/homebrew/Cellar/glib/2.86.0/lib/g=
lib-2.0/include -isystem /opt/homebrew/opt/gettext/include -isystem /opt/ho=
mebrew/Cellar/pcre2/10.46/include -I/opt/homebrew/Cellar/libgccjit/15.2.0/i=
nclude    conftest.c >&5
+++ configure:28649: $? =3D 0
+++ configure:28649: result: yes

>> Case 2: `./configure':

+++ configure:28365: checking for gcc_jit_context_acquire in -lgccjit
+++ configure:28394: gcc -o conftest -g3 -O2 -isystem /opt/homebrew/Cellar/=
librsvg/2.61.1/include/librsvg-2.0 -isystem /opt/homebrew/include/gdk-pixbu=
f-2.0 -isystem /opt/homebrew/opt/libtiff/include -isystem /opt/homebrew/opt=
/zstd/include -isystem /opt/homebrew/Cellar/xz/5.8.1/include -isystem /opt/=
homebrew/opt/jpeg-turbo/include -isystem /opt/homebrew/Cellar/cairo/1.18.4/=
include/cairo -isystem /opt/homebrew/Cellar/cairo/1.18.4/include -isystem /=
opt/homebrew/Cellar/pango/1.57.0/include/pango-1.0 -isystem /opt/homebrew/C=
ellar/glib/2.86.0/include -isystem /opt/homebrew/Cellar/fribidi/1.0.16/incl=
ude/fribidi -isystem /opt/homebrew/Cellar/fontconfig/2.17.1/include -isyste=
m /opt/homebrew/Cellar/libxext/1.3.6/include -isystem /opt/homebrew/Cellar/=
xorgproto/2024.1/include -isystem /opt/homebrew/Cellar/libxrender/0.9.12/in=
clude -isystem /opt/homebrew/Cellar/libx11/1.8.12/include -isystem /opt/hom=
ebrew/Cellar/libxcb/1.17.0/include -isystem /opt/homebrew/Cellar/libxau/1.0=
.12/include -isystem /opt/homebrew/Cellar/libxdmcp/1.1.5/include -isystem /=
opt/homebrew/Cellar/pixman/0.46.4/include/pixman-1 -isystem /opt/homebrew/C=
ellar/harfbuzz/12.1.0/include/harfbuzz -isystem /opt/homebrew/opt/freetype/=
include/freetype2 -isystem /opt/homebrew/opt/libpng/include/libpng16 -isyst=
em /opt/homebrew/Cellar/graphite2/1.3.14/include -isystem /Library/Develope=
r/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -isystem /opt/homebrew=
/Cellar/glib/2.86.0/include/glib-2.0 -isystem /opt/homebrew/Cellar/glib/2.8=
6.0/lib/glib-2.0/include -isystem /opt/homebrew/opt/gettext/include -isyste=
m /opt/homebrew/Cellar/pcre2/10.46/include     conftest.c -lgccjit  -lsqlit=
e3   >&5
+++ ld: library 'gccjit' not found
+++ clang: error: linker command failed with exit code 1 (use -v to see inv=
ocation)
+++ configure:28394: $? =3D 1
+++ configure: failed program was:
+++ | /* confdefs.h */
+++ | #define PACKAGE_NAME "GNU Emacs"
+++ | #define PACKAGE_TARNAME "emacs"
+++ | #define PACKAGE_VERSION "31.0.50"
+++ | #define PACKAGE_STRING "GNU Emacs 31.0.50"
+++ | #define PACKAGE_BUGREPORT "bug-gnu-emacs@HIDDEN"
+++ | #define PACKAGE_URL "https://www.gnu.org/software/emacs/"
+++ | #define HAVE_PDUMPER 1
+++ | #define GC_REMEMBER_LAST_MARKED 1
+++ | #define HAVE_STDIO_H 1
+++ | #define HAVE_STDLIB_H 1
+++ | #define HAVE_STRING_H 1
+++ | #define HAVE_INTTYPES_H 1
+++ | #define HAVE_STDINT_H 1
+++ | #define HAVE_STRINGS_H 1
+++ | #define HAVE_SYS_STAT_H 1
+++ | #define HAVE_SYS_TYPES_H 1
+++ | #define HAVE_UNISTD_H 1
+++ | #define HAVE_WCHAR_H 1
+++ | #define HAVE_SYS_RESOURCE_H 1
+++ | #define HAVE_SYS_UTSNAME_H 1
+++ | #define HAVE_PWD_H 1
+++ | #define HAVE_UTIL_H 1
+++ | #define HAVE_SANITIZER_LSAN_INTERFACE_H 1
+++ | #define HAVE_SANITIZER_ASAN_INTERFACE_H 1
+++ | #define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1
+++ | #define HAVE_SYS_SOCKET_H 1
+++ | #define HAVE_SYS_PARAM_H 1
+++ | #define HAVE_PTHREAD_H 1
+++ | #define HAVE_MALLOC_MALLOC_H 1
+++ | #define HAVE_SYS_UN_H 1
+++ | #define HAVE_STDBOOL_H 1
+++ | #define HAVE_UTMP_H 1
+++ | #define HAVE_UTMPX_H 1
+++ | #define HAVE_DIRENT_H 1
+++ | #define HAVE_EXECINFO_H 1
+++ | #define HAVE_GETOPT_H 1
+++ | #define HAVE_SYS_TIME_H 1
+++ | #define HAVE_LIMITS_H 1
+++ | #define HAVE_SYS_SELECT_H 1
+++ | #define HAVE_STDCKDINT_H 1
+++ | #define HAVE_SYS_RANDOM_H 1
+++ | #define STDC_HEADERS 1
+++ | #define _ALL_SOURCE 1
+++ | #define _DARWIN_C_SOURCE 1
+++ | #define _GNU_SOURCE 1
+++ | #define _HPUX_ALT_XOPEN_SOCKET_API 1
+++ | #define _NETBSD_SOURCE 1
+++ | #define _OPENBSD_SOURCE 1
+++ | #define _POSIX_PTHREAD_SEMANTICS 1
+++ | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
+++ | #define __STDC_WANT_LIB_EXT2__ 1
+++ | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
+++ | #define _TANDEM_SOURCE 1
+++ | #define __EXTENSIONS__ 1
+++ | #define _LINUX_SOURCE_COMPAT 1
+++ | #define __USE_MINGW_ANSI_STDIO 1
+++ | #define GCC_LINT 1
+++ | #define SYSTEM_TYPE "darwin"
+++ | #define HAVE_TERM_H 1
+++ | #define HAVE_SYS_WAIT_H 1
+++ | #define HAVE_NET_IF_H 1
+++ | #define HAVE_IFADDRS_H 1
+++ | #define HAVE_NET_IF_DL_H 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
+++ | #define HAVE_STRUCT_PASSWD_PW_GECOS 1
+++ | #define USER_FULL_NAME pw->pw_gecos
+++ | #define HAVE_NATIVE_IMAGE_API 1
+++ | #define NS_SELF_CONTAINED 1
+++ | #define NATIVE_OBJC_INSTANCETYPE 1
+++ | #define ALIGNOF_INT 4
+++ | #define ALIGNOF_LONG 8
+++ | #define ALIGNOF_LONG_LONG 8
+++ | #define SIZEOF_LONG 8
+++ | #define HAVE_STRUCT_ATTRIBUTE_ALIGNED 1
+++ | #define HAVE_STDALIGN_H 1
+++ | #define HAVE_SBRK 1
+++ | #define HAVE_GETPAGESIZE 1
+++ | #define HAVE_FORK 1
+++ | #define HAVE_VFORK 1
+++ | #define HAVE_FCHMOD 1
+++ | #define HAVE_UTMPXNAME 1
+++ | #define HAVE_REALPATH 1
+++ | #define HAVE_LSTAT 1
+++ | #define HAVE_FCHMODAT 1
+++ | #define HAVE_LCHMOD 1
+++ | #define HAVE_FCNTL 1
+++ | #define HAVE_FDOPENDIR 1
+++ | #define HAVE_LISTXATTR 1
+++ | #define HAVE_FSTATAT 1
+++ | #define HAVE_FSYNC 1
+++ | #define HAVE_GETTIMEOFDAY 1
+++ | #define HAVE_MEMSET_S 1
+++ | #define HAVE_PSELECT 1
+++ | #define HAVE_PTHREAD_SIGMASK 1
+++ | #define HAVE_READLINK 1
+++ | #define HAVE_ISBLANK 1
+++ | #define HAVE_ISWCTYPE 1
+++ | #define HAVE_STRTOIMAX 1
+++ | #define HAVE_SYMLINK 1
+++ | #define HAVE_LOCALTIME_R 1
+++ | #define HAVE_GETDTABLESIZE 1
+++ | #define SYSTEM_MALLOC 1
+++ | #define HAVE_MMAP 1
+++ | #define HAVE_PTHREAD 1
+++ | #define THREADS_ENABLED 1
+++ | #define HAVE_RSVG 1
+++ | #define HAVE_WEBP 1
+++ | #define HAVE_SQLITE3 1
+++ | #define HAVE_GNUTLS 1
+++ | #define HAVE_TREE_SITTER 1
+++ | #define HAVE_KQUEUE 1
+++ | #define USE_FILE_NOTIFY 1
+++ | #define USE_TOOLKIT_SCROLL_BARS 1
+++ | #define HAVE_XIM 1
+++ | #define USE_XIM 1
+++ | #define HAVE_LCMS2 1
+++ | #define HAVE_ZLIB 1
+++ | #define DYNAMIC_LIB_SUFFIX ".dylib"
+++ | #define DYNAMIC_LIB_SECONDARY_SUFFIX ".so"
+++ | #define HAVE_DLADDR 1
+++ | #define HAVE_MODULES 1
+++ | #define MODULES_SUFFIX ".dylib"
+++ | #define MODULES_SECONDARY_SUFFIX ".so"
+++ | /* end confdefs.h.  */
+++ |=20
+++ | /* Override any GCC internal prototype to avoid an error.
+++ |    Use char because int might match the return type of a GCC
+++ |    builtin and then its argument prototype would still apply.
+++ |    The 'extern "C"' is for builds by C++ compilers;
+++ |    although this is not generally supported in C code supporting it h=
ere
+++ |    has little cost and some practical benefit (sr 110532).  */
+++ | #ifdef __cplusplus
+++ | extern "C"
+++ | #endif
+++ | char gcc_jit_context_acquire (void);
+++ | int
+++ | main (void)
+++ | {
+++ | return gcc_jit_context_acquire ();
+++ |   ;
+++ |   return 0;
+++ | }
+++ configure:28406: result: no
+++ configure:28416: WARNING: Elisp native compiler can't be enabled as lib=
gccjit was not
+++ found.
+++ Please try installing libgccjit or a similar package if you want to hav=
e it
+++ enabled.
+++ configure:28432: checking for libgccjit.h
+++ configure:28432: gcc -c -g3 -O2 -isystem /opt/homebrew/Cellar/librsvg/2=
.61.1/include/librsvg-2.0 -isystem /opt/homebrew/include/gdk-pixbuf-2.0 -is=
ystem /opt/homebrew/opt/libtiff/include -isystem /opt/homebrew/opt/zstd/inc=
lude -isystem /opt/homebrew/Cellar/xz/5.8.1/include -isystem /opt/homebrew/=
opt/jpeg-turbo/include -isystem /opt/homebrew/Cellar/cairo/1.18.4/include/c=
airo -isystem /opt/homebrew/Cellar/cairo/1.18.4/include -isystem /opt/homeb=
rew/Cellar/pango/1.57.0/include/pango-1.0 -isystem /opt/homebrew/Cellar/gli=
b/2.86.0/include -isystem /opt/homebrew/Cellar/fribidi/1.0.16/include/fribi=
di -isystem /opt/homebrew/Cellar/fontconfig/2.17.1/include -isystem /opt/ho=
mebrew/Cellar/libxext/1.3.6/include -isystem /opt/homebrew/Cellar/xorgproto=
/2024.1/include -isystem /opt/homebrew/Cellar/libxrender/0.9.12/include -is=
ystem /opt/homebrew/Cellar/libx11/1.8.12/include -isystem /opt/homebrew/Cel=
lar/libxcb/1.17.0/include -isystem /opt/homebrew/Cellar/libxau/1.0.12/inclu=
de -isystem /opt/homebrew/Cellar/libxdmcp/1.1.5/include -isystem /opt/homeb=
rew/Cellar/pixman/0.46.4/include/pixman-1 -isystem /opt/homebrew/Cellar/har=
fbuzz/12.1.0/include/harfbuzz -isystem /opt/homebrew/opt/freetype/include/f=
reetype2 -isystem /opt/homebrew/opt/libpng/include/libpng16 -isystem /opt/h=
omebrew/Cellar/graphite2/1.3.14/include -isystem /Library/Developer/Command=
LineTools/SDKs/MacOSX15.sdk/usr/include/ffi -isystem /opt/homebrew/Cellar/g=
lib/2.86.0/include/glib-2.0 -isystem /opt/homebrew/Cellar/glib/2.86.0/lib/g=
lib-2.0/include -isystem /opt/homebrew/opt/gettext/include -isystem /opt/ho=
mebrew/Cellar/pcre2/10.46/include    conftest.c >&5
+++ conftest.c:162:10: fatal error: 'libgccjit.h' file not found
+++   162 | #include <libgccjit.h>
+++       |          ^~~~~~~~~~~~~
+++ 1 error generated.
+++ configure:28432: $? =3D 1
+++ configure: failed program was:
+++ | /* confdefs.h */
+++ | #define PACKAGE_NAME "GNU Emacs"
+++ | #define PACKAGE_TARNAME "emacs"
+++ | #define PACKAGE_VERSION "31.0.50"
+++ | #define PACKAGE_STRING "GNU Emacs 31.0.50"
+++ | #define PACKAGE_BUGREPORT "bug-gnu-emacs@HIDDEN"
+++ | #define PACKAGE_URL "https://www.gnu.org/software/emacs/"
+++ | #define HAVE_PDUMPER 1
+++ | #define GC_REMEMBER_LAST_MARKED 1
+++ | #define HAVE_STDIO_H 1
+++ | #define HAVE_STDLIB_H 1
+++ | #define HAVE_STRING_H 1
+++ | #define HAVE_INTTYPES_H 1
+++ | #define HAVE_STDINT_H 1
+++ | #define HAVE_STRINGS_H 1
+++ | #define HAVE_SYS_STAT_H 1
+++ | #define HAVE_SYS_TYPES_H 1
+++ | #define HAVE_UNISTD_H 1
+++ | #define HAVE_WCHAR_H 1
+++ | #define HAVE_SYS_RESOURCE_H 1
+++ | #define HAVE_SYS_UTSNAME_H 1
+++ | #define HAVE_PWD_H 1
+++ | #define HAVE_UTIL_H 1
+++ | #define HAVE_SANITIZER_LSAN_INTERFACE_H 1
+++ | #define HAVE_SANITIZER_ASAN_INTERFACE_H 1
+++ | #define HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H 1
+++ | #define HAVE_SYS_SOCKET_H 1
+++ | #define HAVE_SYS_PARAM_H 1
+++ | #define HAVE_PTHREAD_H 1
+++ | #define HAVE_MALLOC_MALLOC_H 1
+++ | #define HAVE_SYS_UN_H 1
+++ | #define HAVE_STDBOOL_H 1
+++ | #define HAVE_UTMP_H 1
+++ | #define HAVE_UTMPX_H 1
+++ | #define HAVE_DIRENT_H 1
+++ | #define HAVE_EXECINFO_H 1
+++ | #define HAVE_GETOPT_H 1
+++ | #define HAVE_SYS_TIME_H 1
+++ | #define HAVE_LIMITS_H 1
+++ | #define HAVE_SYS_SELECT_H 1
+++ | #define HAVE_STDCKDINT_H 1
+++ | #define HAVE_SYS_RANDOM_H 1
+++ | #define STDC_HEADERS 1
+++ | #define _ALL_SOURCE 1
+++ | #define _DARWIN_C_SOURCE 1
+++ | #define _GNU_SOURCE 1
+++ | #define _HPUX_ALT_XOPEN_SOCKET_API 1
+++ | #define _NETBSD_SOURCE 1
+++ | #define _OPENBSD_SOURCE 1
+++ | #define _POSIX_PTHREAD_SEMANTICS 1
+++ | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
+++ | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
+++ | #define __STDC_WANT_LIB_EXT2__ 1
+++ | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
+++ | #define _TANDEM_SOURCE 1
+++ | #define __EXTENSIONS__ 1
+++ | #define _LINUX_SOURCE_COMPAT 1
+++ | #define __USE_MINGW_ANSI_STDIO 1
+++ | #define GCC_LINT 1
+++ | #define SYSTEM_TYPE "darwin"
+++ | #define HAVE_TERM_H 1
+++ | #define HAVE_SYS_WAIT_H 1
+++ | #define HAVE_NET_IF_H 1
+++ | #define HAVE_IFADDRS_H 1
+++ | #define HAVE_NET_IF_DL_H 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
+++ | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
+++ | #define HAVE_STRUCT_PASSWD_PW_GECOS 1
+++ | #define USER_FULL_NAME pw->pw_gecos
+++ | #define HAVE_NATIVE_IMAGE_API 1
+++ | #define NS_SELF_CONTAINED 1
+++ | #define NATIVE_OBJC_INSTANCETYPE 1
+++ | #define ALIGNOF_INT 4
+++ | #define ALIGNOF_LONG 8
+++ | #define ALIGNOF_LONG_LONG 8
+++ | #define SIZEOF_LONG 8
+++ | #define HAVE_STRUCT_ATTRIBUTE_ALIGNED 1
+++ | #define HAVE_STDALIGN_H 1
+++ | #define HAVE_SBRK 1
+++ | #define HAVE_GETPAGESIZE 1
+++ | #define HAVE_FORK 1
+++ | #define HAVE_VFORK 1
+++ | #define HAVE_FCHMOD 1
+++ | #define HAVE_UTMPXNAME 1
+++ | #define HAVE_REALPATH 1
+++ | #define HAVE_LSTAT 1
+++ | #define HAVE_FCHMODAT 1
+++ | #define HAVE_LCHMOD 1
+++ | #define HAVE_FCNTL 1
+++ | #define HAVE_FDOPENDIR 1
+++ | #define HAVE_LISTXATTR 1
+++ | #define HAVE_FSTATAT 1
+++ | #define HAVE_FSYNC 1
+++ | #define HAVE_GETTIMEOFDAY 1
+++ | #define HAVE_MEMSET_S 1
+++ | #define HAVE_PSELECT 1
+++ | #define HAVE_PTHREAD_SIGMASK 1
+++ | #define HAVE_READLINK 1
+++ | #define HAVE_ISBLANK 1
+++ | #define HAVE_ISWCTYPE 1
+++ | #define HAVE_STRTOIMAX 1
+++ | #define HAVE_SYMLINK 1
+++ | #define HAVE_LOCALTIME_R 1
+++ | #define HAVE_GETDTABLESIZE 1
+++ | #define SYSTEM_MALLOC 1
+++ | #define HAVE_MMAP 1
+++ | #define HAVE_PTHREAD 1
+++ | #define THREADS_ENABLED 1
+++ | #define HAVE_RSVG 1
+++ | #define HAVE_WEBP 1
+++ | #define HAVE_SQLITE3 1
+++ | #define HAVE_GNUTLS 1
+++ | #define HAVE_TREE_SITTER 1
+++ | #define HAVE_KQUEUE 1
+++ | #define USE_FILE_NOTIFY 1
+++ | #define USE_TOOLKIT_SCROLL_BARS 1
+++ | #define HAVE_XIM 1
+++ | #define USE_XIM 1
+++ | #define HAVE_LCMS2 1
+++ | #define HAVE_ZLIB 1
+++ | #define DYNAMIC_LIB_SUFFIX ".dylib"
+++ | #define DYNAMIC_LIB_SECONDARY_SUFFIX ".so"
+++ | #define HAVE_DLADDR 1
+++ | #define HAVE_MODULES 1
+++ | #define MODULES_SUFFIX ".dylib"
+++ | #define MODULES_SECONDARY_SUFFIX ".so"
+++ | /* end confdefs.h.  */
+++ | #include <stddef.h>
+++ | #ifdef HAVE_STDIO_H
+++ | # include <stdio.h>
+++ | #endif
+++ | #ifdef HAVE_STDLIB_H
+++ | # include <stdlib.h>
+++ | #endif
+++ | #ifdef HAVE_STRING_H
+++ | # include <string.h>
+++ | #endif
+++ | #ifdef HAVE_INTTYPES_H
+++ | # include <inttypes.h>
+++ | #endif
+++ | #ifdef HAVE_STDINT_H
+++ | # include <stdint.h>
+++ | #endif
+++ | #ifdef HAVE_STRINGS_H
+++ | # include <strings.h>
+++ | #endif
+++ | #ifdef HAVE_SYS_TYPES_H
+++ | # include <sys/types.h>
+++ | #endif
+++ | #ifdef HAVE_SYS_STAT_H
+++ | # include <sys/stat.h>
+++ | #endif
+++ | #ifdef HAVE_UNISTD_H
+++ | # include <unistd.h>
+++ | #endif
+++ | #include <libgccjit.h>
+++ configure:28432: result: no
+++ configure:28439: WARNING: Elisp native compiler can't be enabled as lib=
gccjit header files
+++ were not found.
+++ Please try installing libgccjit-dev or a similar package if you want to=
 have it
+++ enabled.

Rudy
--=20
"Genius is 1% inspiration and 99% perspiration."

--- Thomas Alva Edison, 1932

Rudolf Adamkovi=C4=8D <rudolf@HIDDEN> [he/him]
http://adamkovic.org




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 11 Nov 2025 16:46:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 11 11:46:56 2025
Received: from localhost ([127.0.0.1]:44760 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vIrWC-0003Gu-DB
	for submit <at> debbugs.gnu.org; Tue, 11 Nov 2025 11:46:56 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59220)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vIrW9-0003Gl-HY
 for 79709 <at> debbugs.gnu.org; Tue, 11 Nov 2025 11:46:54 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vIrW4-0006Ip-4H; Tue, 11 Nov 2025 11:46:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=G354cTDz9FxlQ6Vw/tD54f+v7CXDQ67kn7ABeKtavIA=; b=UQajloX4mh0WRkaIcFdS
 HFE9tGsyZpdSLbTsN55lGBDrS02BNNaBoLK0UxgI4uhCIZCdkTAkUzOqB0VZN5H1QdShkSkXaBKHU
 Hi36IRD9EJ+km2JZKnJwwCPfZm3zreiG8+Pmughk9BsP+YMBxtJsDCrTAmDMTEEIMLnCdpFKRRmXn
 c9/QLdwAW+K+O4h/HhIaJ2HjivH9rm919QbAfMcuOxzjm7+hBa0617NW7sdTLWxk29UWnh/nClLRf
 1QJbmo9vU9Lr0RRWC/h6ZtyE0qsmsCJRFivgX1l0cGOqmOubX1ZCt+MKU1F/XwPCVTsqAe90cyW32
 l1gpwqPcVNTZwA==;
Date: Tue, 11 Nov 2025 18:46:17 +0200
Message-Id: <86pl9o34bq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
In-Reply-To: <m2h5v0munh.fsf@HIDDEN> (message from Rudolf
 =?utf-8?Q?Adamkovi=C4=8D?= on Tue, 11 Nov 2025 16:54:58 +0100)
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
References: <m2ms5brsjn.fsf@HIDDEN> <m2h5v0munh.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79709
Cc: gerd.moellmann@HIDDEN, acorallo@HIDDEN, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Andrea Corallo <acorallo@HIDDEN>
> From: Rudolf Adamkovič <rudolf@HIDDEN>
> Date: Tue, 11 Nov 2025 16:54:58 +0100
> 
> Gerd Möllmann <gerd.moellmann@HIDDEN> writes:
> 
> > 1. ./configure
> > => libgccjit not found
> >
> > 2. ./configure --with-native-compilation
> > => libgccjit is found
> 
> +1 on my machine (MacOS 15.5, Emacs from Git 48ef7d91b13).
> 
> Case 1: `./configure --with-native-compilation=aot':
> 
>   checking for gcc_jit_context_acquire in -lgccjit... yes
>   checking for libgccjit.h... yes
> 
> [This is EXPECTED.]
> 
> Case 2: `./configure':
> 
>   checking for gcc_jit_context_acquire in -lgccjit... no
>   
>   configure: WARNING: Elisp native compiler can't be enabled as libgccjit
>   was not found.  Please try installing libgccjit or a similar package if
>   you want to have it enabled.
>   
>   checking for libgccjit.h... no
>   
>   configure: WARNING: Elisp native compiler can't be enabled as libgccjit
>   header files were not found.  Please try installing libgccjit-dev or a
>   similar package if you want to have it enabled.
> 
> [This is UNEXPECTED, and it makes no sense.]

Please post the relevant parts of config.log, which show how the first
test succeeded while the second one failed.  Without that information,
it is impossible to guess what happened.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 11 Nov 2025 15:55:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 11 10:55:10 2025
Received: from localhost ([127.0.0.1]:44479 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vIqi5-0001ID-JM
	for submit <at> debbugs.gnu.org; Tue, 11 Nov 2025 10:55:10 -0500
Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:39547)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rudolf@HIDDEN>)
 id 1vIqi3-0001Dh-JA
 for 79709 <at> debbugs.gnu.org; Tue, 11 Nov 2025 10:55:07 -0500
Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44])
 by mailfout.stl.internal (Postfix) with ESMTP id 114541D00163;
 Tue, 11 Nov 2025 10:55:02 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-04.internal (MEProxy); Tue, 11 Nov 2025 10:55:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
 h=cc:cc:content-transfer-encoding:content-type:content-type
 :date:date:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:subject:subject:to:to; s=fm1;
 t=1762876501; x=1762962901; bh=6mRKxzt5Msf67UNqN9B3S6d/Yso17yVF
 OHhTow3bzeo=; b=SRjY1AKyDdJi/Jb6PCIlMT/uUfTIWzxnjCKUPbFiwv9bTWmd
 sduJ6V6ukJvPRsKzKEReruqZ5V+x7lwnhwYGaC+KTEZDIYOq7aWBlC0mmdxI6YdW
 v/y0o4604jUjbr11YUyX7K0yS1pUsYK8nOFRpRRAgmGKQk/h17RB9/HRbYiZDEH7
 bhX01l6+7dVngr8hTs6iyom6YMIXvsF+UDRMskFCTUxiJmCoXRv3n2MkYi9DMr8A
 +ySM6+fHbh9LTnclJIHAX3NeWrxAWiDCt4Q7s47eVNKoFKo0zJGSjSW+inquZLt5
 +0Sl0Np6e5o+E9ASmvbpEXYYiJ5tHiTDg86uzg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1762876501; x=
 1762962901; bh=6mRKxzt5Msf67UNqN9B3S6d/Yso17yVFOHhTow3bzeo=; b=W
 AKp7Jrf6dN+YvY+TH2xf1OZ+RUPVx6Lhsf5AaSGst7+jMLOAv/MX9ntg9z1BhARz
 z1mhaAseLa3Ej4PbodrpYdAgboE9RyLHw0CdCVSJouO2F+kQMcimHGpwzY/nEpmF
 fQNna9GCtv4CBNrYaV5SEoe9lXCpB9b1M8C1lN9iR/+MNBIs4qGYn2Ys2Df7UUzQ
 xaKJMkC9tJzcrNjiWHiS/IqE31kFA+UZuvFataOncHKyXqT4nZkUQyXCI6OyQ5Rl
 VeQOCGgGchq3jmVw3Fy9Y74mlRPwSmYT8uj/VhqeR1FN8i1RNcJqALFylRxL3oRX
 yH5P83KZ1uWJtyXyZf6UQ==
X-ME-Sender: <xms:VVwTaUD8QSU_M_qyp9D5gmT9mpNst2VmJoe061NZACBQSlO4G51FbQ>
 <xme:VVwTad_ei-IZjWysx2-EKGjcVkwskWfqo1wnH2nQB1IjrVU_i0UYdu9wLhaSgSfBn
 v9v9eUmE2nwgmzSXs1eSHyPUd1QnSOtNk6ehSeXuC1l9DtnxVKRUgU>
X-ME-Received: <xmr:VVwTaU9H3CvGdCiYLaPG79qDGPYfq9jFXXy2jO7_2Af0ZV74QasF3o83MiuLfahSlpG6gjbUDbcnW-W5lVxQyZeX5GwiaFE>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdduieduucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomheptfhuugholhhf
 ucetuggrmhhkohhvihgtuceorhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgqeenuc
 ggtffrrghtthgvrhhnpeeiueetheffudfghfeggeevheevvddtkefflefhueeludfgtefg
 ffeltdfhudejgeenucffohhmrghinheprggurghmkhhovhhitgdrohhrghenucevlhhush
 htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhguohhlfhesrggu
 rghmkhhovhhitgdrohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouh
 htpdhrtghpthhtoheprggtohhrrghllhhosehgnhhurdhorhhgpdhrtghpthhtohepjeel
 jedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehgvghrugdrmhhovg
 hllhhmrghnnhesghhmrghilhdrtghomh
X-ME-Proxy: <xmx:VVwTaUfaebz9rkjmko0rtDu_m2SCQdAr7bX6Od_-e9fu9KFas3RwKA>
 <xmx:VVwTadE10--K6lFdqAydFHXucTITp-uXq5U-nBjAgarB1m3qAqq70A>
 <xmx:VVwTaScxhcSHSFsHX_H0XNHkw2jci1roL7BR1_VNodJsvLZns4sQyQ>
 <xmx:VVwTaXEBpuZl3rDdq9k9NyG40ejSUffeFKuRdIm3xIAO585X26Rukg>
 <xmx:VVwTaVq3Nd13G6cxSTlJOIoKHrlCXV7LLrb4AGrjQ7P8QW1KkeB1PM5->
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 11 Nov 2025 10:55:00 -0500 (EST)
From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 79709 <at> debbugs.gnu.org
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <m2ms5brsjn.fsf@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN>
Date: Tue, 11 Nov 2025 16:54:58 +0100
Message-ID: <m2h5v0munh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> 1. ./configure
> =3D> libgccjit not found
>
> 2. ./configure --with-native-compilation
> =3D> libgccjit is found

+1 on my machine (MacOS 15.5, Emacs from Git 48ef7d91b13).

Case 1: `./configure --with-native-compilation=3Daot':

  checking for gcc_jit_context_acquire in -lgccjit... yes
  checking for libgccjit.h... yes

[This is EXPECTED.]

Case 2: `./configure':

  checking for gcc_jit_context_acquire in -lgccjit... no
=20=20
  configure: WARNING: Elisp native compiler can't be enabled as libgccjit
  was not found.  Please try installing libgccjit or a similar package if
  you want to have it enabled.
=20=20
  checking for libgccjit.h... no
=20=20
  configure: WARNING: Elisp native compiler can't be enabled as libgccjit
  header files were not found.  Please try installing libgccjit-dev or a
  similar package if you want to have it enabled.

[This is UNEXPECTED, and it makes no sense.]

Rudy
--=20
"Those who cannot remember the past are condemned to repeat it."

--- George Santayana, Life of Reason: Reason in Common Sense, 1905

Rudolf Adamkovi=C4=8D <rudolf@HIDDEN> [he/him]
http://adamkovic.org




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 16:06:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 12:06:39 2025
Received: from localhost ([127.0.0.1]:42994 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vEreA-0008DC-4e
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 12:06:39 -0400
Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]:47564)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1vErdv-0008D2-JA
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 12:06:28 -0400
Received: by mail-vs1-xe30.google.com with SMTP id
 ada2fe7eead31-58de3ab1831so2469632137.3
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 09:06:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761926776; x=1762531576; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=NVkkH+0EBVMpJwfE6bqeNE76DEAwM81eu5Q/TlShDks=;
 b=EQ9+9x68CnjmZbGWdNThPR0qT21OhSJVpIQ0Wg2hSBpit0vn9FDgeaFnMu2uQ0LpCI
 dKHLqR3BdNGAxBWFaHL8w+5wmTUXIoMNPor226Eu4YI/vBRUOmm5er+XqpacBoBAQ+c4
 HtRcFG6/UIcKjpWMLkP4OuOYODt1wQQdmICVqZxjF6okW0JKj4qT5HXU/lTyOoo6j0E0
 6IHTIoJspexEa8q5mTMCH78vF4MTiLJ+kUmvf6Ie6TpiDLuS/GQVFpWCzzyxlka09YB5
 CcN/yltEMQQ9sLOEoR1h0DFyPT5TH2rjab6iaa/x5KVh47iYm5agefTKlX0+0pEKYZSF
 QqKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761926776; x=1762531576;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=NVkkH+0EBVMpJwfE6bqeNE76DEAwM81eu5Q/TlShDks=;
 b=ChQikjcF9/WWyQTA/cHa017GkRxkq33sstQSTU3QbvU854jy8Fu9ILzog6u6iu/1Bp
 16+6Pd8hIz3ZFsDXJxbndMfUJWBvzcqZGUrK+xZhclTinjfVkp2htMx+UjPsbax4jWs9
 q0NDZwOYwRVr+l+W/43mi91GIGpR7fUOvZFhcD052gKTCX8fuzhunvyaz3fHXOs0Ygk0
 R4wCOol+wQDP4del2EB4wv5O+mEWmVK6KOXAcJeGSmAe6T6GY4Lknf2rGOE1owjvUR/+
 w1yQ1GReLFLmHNb4Jjcrj4VF7wTnJbmPY8GwvNBcKOKIkaHgrFlQZlg1n9YMuWuLH61q
 mevQ==
X-Gm-Message-State: AOJu0YyHIPBkrOm4mjicsD1zc2jKJ3ZnJM8kkXz3PJ+c+H1KSyX9AVTA
 RPcrMplyKXx/nes0lei9GndoAgNduKJkYHvanjXLqqikFWVXqG9D26oRYxEQ376H2gspzhc92YB
 XjxpXYVT4wOPvWZJVFWiv9MMTwnknY5I=
X-Gm-Gg: ASbGncs+rr9ljKM8W29B4YOGqBU2TGLv2o1ps7/uReQK0+5MGfvNxk1TWYEadM2uCyh
 u7rqR2grfUJSWE4AcCERWUq4+iwyGdt0cmlc7GB33fVURMwuBP/mGQgAxJoeWoD/C+txGOTKMgq
 TPviAuvniR7zBcC6r9cShg7prugGCTIQxwL+lyrAv5Ozldc2vMXShDA3Y3Ke6ON5rRGzNORfGw7
 zc6P/r3CYR6ENfjududGda+LGyzgB/f2xpDa/HILAdRShA6OkMw/Ai84fK1+A6SOQerFgerQ+QU
 Dg67c23X
X-Google-Smtp-Source: AGHT+IGLV+8KaKIkB0VZP9jz9Ch0Pmro7YagelatoUcW1gjH5jX3eGmlLavuAT7svVTfd5DP+o9acTqLRCk9/ydrFcI=
X-Received: by 2002:a05:6102:418d:b0:5d7:de7d:1dd with SMTP id
 ada2fe7eead31-5dbb11e13bemr1431931137.6.1761926775975; Fri, 31 Oct 2025
 09:06:15 -0700 (PDT)
MIME-Version: 1.0
References: <m2ms5brsjn.fsf@HIDDEN>
 <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
 <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
 <m2pla3nkku.fsf@HIDDEN>
 <CAN+1Hbp0ixiK=+CcqHKxF2P8dJrbF9FZFBOYE6L_AfAntj_o3Q@HIDDEN>
 <m2h5vfnjp7.fsf@HIDDEN>
In-Reply-To: <m2h5vfnjp7.fsf@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Fri, 31 Oct 2025 12:06:04 -0400
X-Gm-Features: AWmQ_bl0Zf72eLYjI0dKhgbhYYgmYZDDtlQ0HO-uAYOvBuMGvFntplTomNJbQNI
Message-ID: <CAN+1Hbr5aHp1nnK8gYmHPKRBxoJQyx-nTd22taaHL2dY_O6DOA@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000009a31e60642768bdd"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000009a31e60642768bdd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 31, 2025 at 12:02=E2=80=AFPM Gerd M=C3=B6llmann <gerd.moellmann=
@gmail.com>
wrote:

> St=C3=A9phane Marks <shipmints@HIDDEN> writes:
>
> > On Fri, Oct 31, 2025 at 11:43=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moell=
mann@HIDDEN>
> wrote:
> >
> >  St=C3=A9phane Marks <shipmints@HIDDEN> writes:
> >
> >  > On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks <shipmi=
nts@HIDDEN>
> wrote:
> >  >
> >  >  On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <
> gerd.moellmann@HIDDEN> wrote:
> >  >
> >  >  This is with master on macOS. Haven't checked with emacs-30.
> >  >
> >  >  Make sure that libgccjit is installed, for example via Homebrew. In=
 a
> >  >  terminal, run ./autogen.sh, so that ./configure exists.
> >  >
> >  >  1. ./configure
> >  >  =3D> libgccjit not found
> >  >
> >  >  2. ./configure --with-native-compilation
> >  >  =3D> libgccjit is found
> >  >
> >  >  I think the reason for this is here:
> >  >
> >  >  configure.ac<master>:
> >  >   5199 if test "${with_native_compilation}" =3D "default"; then
> >  >   5200     # Check if libgccjit is available.
> >  >   5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
> >  >   5202       [], [libgccjit_not_found])
> >  >   5203     AC_CHECK_HEADERS([libgccjit.h], [],
> [libgccjit_dev_not_found])
> >  >   5204     if test "${with_native_compilation}" !=3D "no"; then
> >  >   5205       # Check if libgccjit really works.
> >  >   5206       AC_RUN_IFELSE([libgccjit_smoke_test], [],
> [libgccjit_broken])
> >  >   5207     fi
> >  >   5208 fi
> >  >
> >  >  I think this misses the special handling of Homebrew and MacPorts
> >  >  installations of libgccjit that is done a few lines below.
> >  >
> >  >  configure.ac<master>:
> >  >   5218     if test "${opsys}" =3D "darwin"; then
> >  >   5219       # Ensure libgccjit installed by Homebrew or macports ca=
n
> be found.
> >  >   5220       if test -n "$BREW"; then
> >  >   5221         if test -n "`$BREW --prefix --installed libgccjit
> 2>/dev/null`"; then
> >  >   5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit |=
 \
> >  >   5223                                                 grep
> libgccjit.h))"
> >  >   5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
> >  >   5225                                   | grep -m1 -E
> 'libgccjit\.(so|dylib)$'))"
> >  >   5226         fi
> >  >   5227       fi
> >  >              ...
> >  >
> >  >  I don't understand why with_native_compilation=3Ddefault is handled=
 the
> >  >  way it is, and not as "use if available" like for other things, so
> I'll
> >  >  leave this code untouched.
> >  >
> >  >  +my 2 cents, it would be great to handle this on macOS so we can
> avoid manually specifying configure
> >  >  options.
> >  >
> >  > It seems that homebrew dbus is also ignored. Gerd, is dbus configure=
d
> correctly for you on macOS by
> >  default?
> >
> >  Homebrew dbus needs a service to be running. What does this show for
> >  you?
> >
> >  .../emacs/github/igc % brew services list
> >  Name       Status User File
> >  dbus       other  gerd
> ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
> >
> > I'm looking only to build emacs with dbus support, not necessarily be
> running dbus.  If I run configure -
> > -with-dbus that works fine without the service running and has for me
> for ages.
>
> Sorry, I misunderstood you. The situation with dbus is a bit different
> because the default in configure.ac is "no", i.e. without specifying
> --with-dbus no dbus. AFAIK, only --with-native-compilation has this
> "default" handling.
>

Okay.  I'll retain my manual configure scripts.

--0000000000009a31e60642768bdd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Fri, Oct 31, 2025 at 12:02=E2=80=AFPM Gerd M=C3=B6llmann &lt;<a href=3D"=
mailto:gerd.moellmann@HIDDEN">gerd.moellmann@HIDDEN</a>&gt; wrote:</s=
pan></div></div><div class=3D"gmail_quote gmail_quote_container"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">St=C3=A9phane Marks &lt;<a href=3D"=
mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&gt; w=
rites:<br>
<br>
&gt; On Fri, Oct 31, 2025 at 11:43=E2=80=AFAM Gerd M=C3=B6llmann &lt;<a hre=
f=3D"mailto:gerd.moellmann@HIDDEN" target=3D"_blank">gerd.moellmann@gmai=
l.com</a>&gt; wrote:<br>
&gt;<br>
&gt;=C2=A0 St=C3=A9phane Marks &lt;<a href=3D"mailto:shipmints@HIDDEN" t=
arget=3D"_blank">shipmints@HIDDEN</a>&gt; writes:<br>
&gt;<br>
&gt;=C2=A0 &gt; On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Mark=
s &lt;<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@gm=
ail.com</a>&gt; wrote:<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6=
llmann &lt;<a href=3D"mailto:gerd.moellmann@HIDDEN" target=3D"_blank">ge=
rd.moellmann@HIDDEN</a>&gt; wrote:<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 This is with master on macOS. Haven&#39;t checked wit=
h emacs-30.<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 Make sure that libgccjit is installed, for example vi=
a Homebrew. In a<br>
&gt;=C2=A0 &gt;=C2=A0 terminal, run ./autogen.sh, so that ./configure exist=
s.<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 1. ./configure<br>
&gt;=C2=A0 &gt;=C2=A0 =3D&gt; libgccjit not found<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 2. ./configure --with-native-compilation<br>
&gt;=C2=A0 &gt;=C2=A0 =3D&gt; libgccjit is found<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 I think the reason for this is here:<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 <a href=3D"http://configure.ac" rel=3D"noreferrer" ta=
rget=3D"_blank">configure.ac</a>&lt;master&gt;:<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05199 if test &quot;${with_native_compilation}&q=
uot; =3D &quot;default&quot;; then<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05200=C2=A0 =C2=A0 =C2=A0# Check if libgccjit is=
 available.<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05201=C2=A0 =C2=A0 =C2=A0AC_CHECK_LIB([gccjit], =
[gcc_jit_context_acquire],<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05202=C2=A0 =C2=A0 =C2=A0 =C2=A0[], [libgccjit_n=
ot_found])<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05203=C2=A0 =C2=A0 =C2=A0AC_CHECK_HEADERS([libgc=
cjit.h], [], [libgccjit_dev_not_found])<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05204=C2=A0 =C2=A0 =C2=A0if test &quot;${with_na=
tive_compilation}&quot; !=3D &quot;no&quot;; then<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05205=C2=A0 =C2=A0 =C2=A0 =C2=A0# Check if libgc=
cjit really works.<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05206=C2=A0 =C2=A0 =C2=A0 =C2=A0AC_RUN_IFELSE([l=
ibgccjit_smoke_test], [], [libgccjit_broken])<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05207=C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05208 fi<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 I think this misses the special handling of Homebrew =
and MacPorts<br>
&gt;=C2=A0 &gt;=C2=A0 installations of libgccjit that is done a few lines b=
elow.<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 <a href=3D"http://configure.ac" rel=3D"noreferrer" ta=
rget=3D"_blank">configure.ac</a>&lt;master&gt;:<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05218=C2=A0 =C2=A0 =C2=A0if test &quot;${opsys}&=
quot; =3D &quot;darwin&quot;; then<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05219=C2=A0 =C2=A0 =C2=A0 =C2=A0# Ensure libgccj=
it installed by Homebrew or macports can be found.<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05220=C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot=
;$BREW&quot;; then<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05221=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if test -=
n &quot;`$BREW --prefix --installed libgccjit 2&gt;/dev/null`&quot;; then<b=
r>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05222=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MA=
C_CFLAGS=3D&quot;-I$(dirname $($BREW ls -v libgccjit | \<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05223=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0grep libgccjit.h=
))&quot;<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05224=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MA=
C_LIBS=3D&quot;-L$(dirname $($BREW ls -v libgccjit \<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05225=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0| grep -m1 -E &#39;libgccjit\.(so|dylib)$&#39;))&quot;<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05226=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A05227=C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 I don&#39;t understand why with_native_compilation=3D=
default is handled the<br>
&gt;=C2=A0 &gt;=C2=A0 way it is, and not as &quot;use if available&quot; li=
ke for other things, so I&#39;ll<br>
&gt;=C2=A0 &gt;=C2=A0 leave this code untouched.<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt;=C2=A0 +my 2 cents, it would be great to handle this on macO=
S so we can avoid manually specifying configure<br>
&gt;=C2=A0 &gt;=C2=A0 options.<br>
&gt;=C2=A0 &gt;<br>
&gt;=C2=A0 &gt; It seems that homebrew dbus is also ignored. Gerd, is dbus =
configured correctly for you on macOS by<br>
&gt;=C2=A0 default?<br>
&gt;<br>
&gt;=C2=A0 Homebrew dbus needs a service to be running. What does this show=
 for<br>
&gt;=C2=A0 you?<br>
&gt;<br>
&gt;=C2=A0 .../emacs/github/igc % brew services list <br>
&gt;=C2=A0 Name=C2=A0 =C2=A0 =C2=A0 =C2=A0Status User File<br>
&gt;=C2=A0 dbus=C2=A0 =C2=A0 =C2=A0 =C2=A0other=C2=A0 gerd ~/Library/Launch=
Agents/org.freedesktop.dbus-session.plist<br>
&gt;<br>
&gt; I&#39;m looking only to build emacs with dbus support, not necessarily=
 be running dbus.=C2=A0 If I run configure -<br>
&gt; -with-dbus that works fine without the service running and has for me =
for ages.<br>
<br>
Sorry, I misunderstood you. The situation with dbus is a bit different<br>
because the default in <a href=3D"http://configure.ac" rel=3D"noreferrer" t=
arget=3D"_blank">configure.ac</a> is &quot;no&quot;, i.e. without specifyin=
g<br>
--with-dbus no dbus. AFAIK, only --with-native-compilation has this<br>
&quot;default&quot; handling.<br></blockquote><div><br></div><div class=3D"=
gmail_default" style=3D"font-family:monospace">Okay.=C2=A0 I&#39;ll retain =
my manual configure scripts.</div></div></div>

--0000000000009a31e60642768bdd--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 16:02:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 12:02:26 2025
Received: from localhost ([127.0.0.1]:42952 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vEra6-00083F-0r
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 12:02:26 -0400
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:52609)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vEra1-00082v-9u
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 12:02:22 -0400
Received: by mail-wm1-x32a.google.com with SMTP id
 5b1f17b1804b1-475e01db75aso16041625e9.1
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 09:02:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761926534; x=1762531334; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=dONb47SMnd8WL/2xytMvngMOSM8yYzpFsDgmoYdZz+Q=;
 b=caRKDdlLM5MiEIOHxoAU4onozduGcP/xGYBA0/tHXipAcYQFBCQ2FZJi/nagQiNM7l
 EnHxqoGKaTNnOMRwTTxEV3Hx2DrEXEsjeTZfle8q/PqDTMsdAGkwdh37DZDeE4iBbf1B
 QCNJAeP0V89/9pJbd/ghGvyRtRJkLaBfUwWd2c5V1750bSpqDqwMcIrXUGs/ubiCKvEu
 t0gJ92zj+Mw43EXY2i1gEtZcu9sxPj8LKR6Z7JdVzSvq8R+JkwTWE3tRsrEgNLJe2E6C
 14eHO9Xvrcg6NGGy8J1nD28p/fi71tDe9EWe+iSrJMDp/01rLXcnUZfhqpuC05jSg80R
 7UXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761926534; x=1762531334;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=dONb47SMnd8WL/2xytMvngMOSM8yYzpFsDgmoYdZz+Q=;
 b=CFvOxV1kFQDeiQJkInOyx8pAbvZ7ZspxI7ZRppUtNnhsyXElkkyOx/sj3t9BHSl35L
 98jl7A6++SxJgQ52bLz0GK7QHAY8RawOGQCL3kARfJUseJlXRsnQ7wpGnonMW9myMmyp
 I0TJHUWhrgB/J+Z5w+2Yt6gAM7iVW7V0HKoELcEK8sKhJOKiV8QQB0le2gzSubD5S6gb
 xT0ELuD8brgLSnc2/w4zbmMOXmZnoKm6lVfIu2ThWehCkipPItpMPSavfafMC0l4ffzC
 4nTHuW3JNLXhdtUcFgDeBCwAKKrfPCd3L1wj70HAkNZ+UyAinhXYPfyTMEfkGMnE4Jo2
 8LWA==
X-Gm-Message-State: AOJu0Yw0Q9VD97BSMMdfM0edmnFz+qBSJljRjfi2G91m5bA/b88qOnXd
 IDLbzGWEhPRDZ+fDLy7E/n2LFkW/CI/PCd53fRGXmv5y01XUqf98PK2Z
X-Gm-Gg: ASbGncsIMmvT1tVbAl7+jUP2DBJxWPAWd22Z69YWPwi2FiYZ38vfTNdGJt6118UYPQG
 oI8i+m36JUOh9z9oTMSuLTXJL7RSNfiMdBD1JKa9Dieynr6DeriCd5rOzohEVKeacXtWswO+/GI
 wHddHPa+rYoDBs+Qujst50a0BiUAXJzrn/DPy+cjrPVwyrK7KAcmIP61J0KSDJcnQJdKIFFPTPZ
 3TRuQ7uaUcWXbZyHtoOcNjnpv6ujJjvBRwQTpKI8AQxPw9XTWGXmA5MSPX1ltxVbNov+6yBExdM
 rOHHisDcHvA/u1kJeSSu+EAfW4dgqSyfVlvR9BUomFWJyyk+WeWY1wCsVSpqcie9m4o5hu2e6gR
 FyvSHiUaVXuSgRNvBIFvGgXzt792xFsBlGNqRxqcyTBDlNtxfkAOF1GB6ySfEbITNpPWiX19R4j
 G9it9/DMrecvTUE+cJNpguYWwL4u1eSLZjEVxDF+GQcT25p6t8IvKjo2IwxG7UzomIxXt/CzU67
 sYM5DfOgatUIdp12/Utg9Q4jafa00gcOQ==
X-Google-Smtp-Source: AGHT+IHT5p6Fu940vvNgE8Y+WF2KUmLR+eIEMeh8pmO6yJSZ8qd0xM4mzoivO0DBR4qNNWNPDZyt6g==
X-Received: by 2002:a05:600c:840a:b0:471:131f:85b7 with SMTP id
 5b1f17b1804b1-477307e7004mr44764145e9.15.1761926533882; 
 Fri, 31 Oct 2025 09:02:13 -0700 (PDT)
Received: from pro4 (p200300e0b738df00b42a37bac059b60a.dip0.t-ipconnect.de.
 [2003:e0:b738:df00:b42a:37ba:c059:b60a])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-429c54efcadsm861392f8f.5.2025.10.31.09.02.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 31 Oct 2025 09:02:13 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane?= Marks <shipmints@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <CAN+1Hbp0ixiK=+CcqHKxF2P8dJrbF9FZFBOYE6L_AfAntj_o3Q@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN>
 <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
 <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
 <m2pla3nkku.fsf@HIDDEN>
 <CAN+1Hbp0ixiK=+CcqHKxF2P8dJrbF9FZFBOYE6L_AfAntj_o3Q@HIDDEN>
Date: Fri, 31 Oct 2025 17:02:12 +0100
Message-ID: <m2h5vfnjp7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

St=C3=A9phane Marks <shipmints@HIDDEN> writes:

> On Fri, Oct 31, 2025 at 11:43=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellma=
nn@HIDDEN> wrote:
>
>  St=C3=A9phane Marks <shipmints@HIDDEN> writes:
>
>  > On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks <shipmint=
s@HIDDEN> wrote:
>  >
>  >  On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moe=
llmann@HIDDEN> wrote:
>  >
>  >  This is with master on macOS. Haven't checked with emacs-30.
>  >
>  >  Make sure that libgccjit is installed, for example via Homebrew. In a
>  >  terminal, run ./autogen.sh, so that ./configure exists.
>  >
>  >  1. ./configure
>  >  =3D> libgccjit not found
>  >
>  >  2. ./configure --with-native-compilation
>  >  =3D> libgccjit is found
>  >
>  >  I think the reason for this is here:
>  >
>  >  configure.ac<master>:
>  >   5199 if test "${with_native_compilation}" =3D "default"; then
>  >   5200     # Check if libgccjit is available.
>  >   5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
>  >   5202       [], [libgccjit_not_found])
>  >   5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_foun=
d])
>  >   5204     if test "${with_native_compilation}" !=3D "no"; then
>  >   5205       # Check if libgccjit really works.
>  >   5206       AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_brok=
en])
>  >   5207     fi
>  >   5208 fi
>  >
>  >  I think this misses the special handling of Homebrew and MacPorts
>  >  installations of libgccjit that is done a few lines below.
>  >
>  >  configure.ac<master>:
>  >   5218     if test "${opsys}" =3D "darwin"; then
>  >   5219       # Ensure libgccjit installed by Homebrew or macports can =
be found.
>  >   5220       if test -n "$BREW"; then
>  >   5221         if test -n "`$BREW --prefix --installed libgccjit 2>/de=
v/null`"; then
>  >   5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \
>  >   5223                                                 grep libgccjit.=
h))"
>  >   5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
>  >   5225                                   | grep -m1 -E 'libgccjit\.(so=
|dylib)$'))"
>  >   5226         fi
>  >   5227       fi
>  >              ...
>  >
>  >  I don't understand why with_native_compilation=3Ddefault is handled t=
he
>  >  way it is, and not as "use if available" like for other things, so I'=
ll
>  >  leave this code untouched.
>  >
>  >  +my 2 cents, it would be great to handle this on macOS so we can avoi=
d manually specifying configure
>  >  options.
>  >
>  > It seems that homebrew dbus is also ignored. Gerd, is dbus configured =
correctly for you on macOS by
>  default?
>
>  Homebrew dbus needs a service to be running. What does this show for
>  you?
>
>  .../emacs/github/igc % brew services list=20
>  Name       Status User File
>  dbus       other  gerd ~/Library/LaunchAgents/org.freedesktop.dbus-sessi=
on.plist
>
> I'm looking only to build emacs with dbus support, not necessarily be run=
ning dbus.  If I run configure -
> -with-dbus that works fine without the service running and has for me for=
 ages.

Sorry, I misunderstood you. The situation with dbus is a bit different
because the default in configure.ac is "no", i.e. without specifying
--with-dbus no dbus. AFAIK, only --with-native-compilation has this
"default" handling.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 15:47:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 11:47:54 2025
Received: from localhost ([127.0.0.1]:42841 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vErM1-0007LJ-W7
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:47:54 -0400
Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:45114)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1vErLu-0007L8-QU
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:47:47 -0400
Received: by mail-ua1-x92d.google.com with SMTP id
 a1e0cc1a2514c-932c247fb9aso1171959241.2
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 08:47:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761925660; x=1762530460; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=vZdYtxFPY261oSxmNU9PXgUDbtSyG6Hq1MaQybAV8z8=;
 b=l/wgutD+KnS2NCAB7luqw4IUxM8H409+0+iAsDT9e0ZjLKzYXx0exIFcrrYkKRMGvY
 pS0HIZWdKe5hN5A94nTRkvR0M74nVz3uE+GP50CdjXH4uYt8az7r0JWUpUYNtOVJtGgj
 Gw0EH+63+cuifunqTzW/DQ5MwdWqdAezfGFN4Mlz0HssP/Sj0JfCKi7Q3eScHP+7WsF2
 u85ZXwSuzlwNjFHJWmQQmrnjs4XJgXYPNpAlxVr0mbGSNS6rixMZiD3dJvLzmkgJ0v8H
 CyUIpobLKGGVqq2nznpeGfIiZvLyOxxjYDrZt0MOSDv2qyfEKRaOIQtB8nQfxJPa36Bv
 zRAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761925660; x=1762530460;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=vZdYtxFPY261oSxmNU9PXgUDbtSyG6Hq1MaQybAV8z8=;
 b=qqFc+SrHviaMHoc+BtJkQ/mePDRSAySN08exYJUUJTI0oEb3EeUnITpUqw+C2n/eRV
 ZfTez/B4S5bAfwr7LyFhlJXdwowlv0q3fTpFb5x55txHQbXpmWzKs7nYbjHWJDoo0v6F
 4mcKM+yVwqMuO48MvMetUJVaAeKdXhTWtjVx1edvmx7+yrm9puLm9V5XL+4PuUlM40h0
 E6TFwP0Fk5Z3kSD7hBuQnNGTwWGWp5yomLsPS5symmbgS6d4FiL1wijrGk2FKaRFQKOh
 mcEKCdmo6axFBnMUhXErbtyT+Q4q7ZeQlMfwZ9D+2sxpkhTW5IXdKu6M/upU9zsXikz1
 z4lg==
X-Gm-Message-State: AOJu0YwAxwC/xidpCwReO3NIQXWIFEB4O6xOMioUX8OezXO8m6EDyOaI
 eEds++UpzeXkCVJo/3MNl2ig9XZpSrxMDGtWOFIo63Rb93kjIBfhydXfMC3fM9ttbncLhSOxk4h
 UlN5ZbvkZK4umL9CCs+SEiPk4bbaHgog=
X-Gm-Gg: ASbGnctf/ld6eqJJ0mUPaSTnrA+lv1yNRrO2wotu0lLFRDZafJElNd9Dxykv7dzpCKA
 E1n/CnBk+3IsEApo3RMlM9y+xUVwiW3VDbjxy9J9SWSdH6R0L7Eb+EEl64i0A+j+4mkxlR+r2nG
 M1dDKMFQbPtVqSLNTxTy3j7vRTwPOp8A7sMuz+RjPDc3qw5LJPVUWcK1PkpYJA35AvRnXWsFzY1
 pcCh1nDQcrLn7/Tvm6CDfiwjNxgsCEHELSa1waf/NVoUYrhIWensIgZe3Nvo/w=
X-Google-Smtp-Source: AGHT+IHtEzOJhqw8FdXUMUFQpfbOxb4TK5XBIiNTdN/m8TvNtaEtkaC28SGJ1Iy2qv41umO0OFlkcHK8bXJDr6BKPLg=
X-Received: by 2002:a05:6102:3711:b0:5d5:d1ba:439b with SMTP id
 ada2fe7eead31-5dbb123081dmr1385832137.11.1761925659805; Fri, 31 Oct 2025
 08:47:39 -0700 (PDT)
MIME-Version: 1.0
References: <m2ms5brsjn.fsf@HIDDEN>
 <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
 <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
 <m2pla3nkku.fsf@HIDDEN>
In-Reply-To: <m2pla3nkku.fsf@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Fri, 31 Oct 2025 11:47:28 -0400
X-Gm-Features: AWmQ_blSH55Et-54kpa74cWHlgRbII0VcJAweoiukQW2sc3GxYHripguDNUfKz0
Message-ID: <CAN+1Hbp0ixiK=+CcqHKxF2P8dJrbF9FZFBOYE6L_AfAntj_o3Q@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000012cb1f0642764966"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000012cb1f0642764966
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 31, 2025 at 11:43=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellmann=
@gmail.com>
wrote:

> St=C3=A9phane Marks <shipmints@HIDDEN> writes:
>
> > On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks <shipmints=
@gmail.com>
> wrote:
> >
> >  On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <
> gerd.moellmann@HIDDEN> wrote:
> >
> >  This is with master on macOS. Haven't checked with emacs-30.
> >
> >  Make sure that libgccjit is installed, for example via Homebrew. In a
> >  terminal, run ./autogen.sh, so that ./configure exists.
> >
> >  1. ./configure
> >  =3D> libgccjit not found
> >
> >  2. ./configure --with-native-compilation
> >  =3D> libgccjit is found
> >
> >  I think the reason for this is here:
> >
> >  configure.ac<master>:
> >   5199 if test "${with_native_compilation}" =3D "default"; then
> >   5200     # Check if libgccjit is available.
> >   5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
> >   5202       [], [libgccjit_not_found])
> >   5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found=
])
> >   5204     if test "${with_native_compilation}" !=3D "no"; then
> >   5205       # Check if libgccjit really works.
> >   5206       AC_RUN_IFELSE([libgccjit_smoke_test], [],
> [libgccjit_broken])
> >   5207     fi
> >   5208 fi
> >
> >  I think this misses the special handling of Homebrew and MacPorts
> >  installations of libgccjit that is done a few lines below.
> >
> >  configure.ac<master>:
> >   5218     if test "${opsys}" =3D "darwin"; then
> >   5219       # Ensure libgccjit installed by Homebrew or macports can b=
e
> found.
> >   5220       if test -n "$BREW"; then
> >   5221         if test -n "`$BREW --prefix --installed libgccjit
> 2>/dev/null`"; then
> >   5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \
> >   5223                                                 grep
> libgccjit.h))"
> >   5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
> >   5225                                   | grep -m1 -E
> 'libgccjit\.(so|dylib)$'))"
> >   5226         fi
> >   5227       fi
> >              ...
> >
> >  I don't understand why with_native_compilation=3Ddefault is handled th=
e
> >  way it is, and not as "use if available" like for other things, so I'l=
l
> >  leave this code untouched.
> >
> >  +my 2 cents, it would be great to handle this on macOS so we can avoid
> manually specifying configure
> >  options.
> >
> > It seems that homebrew dbus is also ignored. Gerd, is dbus configured
> correctly for you on macOS by default?
>
> Homebrew dbus needs a service to be running. What does this show for
> you?
>
> .../emacs/github/igc % brew services list
> Name       Status User File
> dbus       other  gerd
> ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
>

I'm looking only to build emacs with dbus support, not necessarily be
running dbus.  If I run configure --with-dbus that works fine without the
service running and has for me for ages.

--00000000000012cb1f0642764966
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Fri, Oct 31, 2025 at 11:43=E2=80=AFAM Gerd M=C3=B6llmann &lt;<a href=3D"=
mailto:gerd.moellmann@HIDDEN">gerd.moellmann@HIDDEN</a>&gt; wrote:</s=
pan></div></div><div class=3D"gmail_quote gmail_quote_container"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">St=C3=A9phane Marks &lt;<a href=3D"=
mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&gt; w=
rites:<br>
<br>
&gt; On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks &lt;<a hr=
ef=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>=
&gt; wrote:<br>
&gt;<br>
&gt;=C2=A0 On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann &lt;=
<a href=3D"mailto:gerd.moellmann@HIDDEN" target=3D"_blank">gerd.moellman=
n@HIDDEN</a>&gt; wrote:<br>
&gt;<br>
&gt;=C2=A0 This is with master on macOS. Haven&#39;t checked with emacs-30.=
<br>
&gt;<br>
&gt;=C2=A0 Make sure that libgccjit is installed, for example via Homebrew.=
 In a<br>
&gt;=C2=A0 terminal, run ./autogen.sh, so that ./configure exists.<br>
&gt;<br>
&gt;=C2=A0 1. ./configure<br>
&gt;=C2=A0 =3D&gt; libgccjit not found<br>
&gt;<br>
&gt;=C2=A0 2. ./configure --with-native-compilation<br>
&gt;=C2=A0 =3D&gt; libgccjit is found<br>
&gt;<br>
&gt;=C2=A0 I think the reason for this is here:<br>
&gt;<br>
&gt;=C2=A0 <a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_bl=
ank">configure.ac</a>&lt;master&gt;:<br>
&gt;=C2=A0 =C2=A05199 if test &quot;${with_native_compilation}&quot; =3D &q=
uot;default&quot;; then<br>
&gt;=C2=A0 =C2=A05200=C2=A0 =C2=A0 =C2=A0# Check if libgccjit is available.=
<br>
&gt;=C2=A0 =C2=A05201=C2=A0 =C2=A0 =C2=A0AC_CHECK_LIB([gccjit], [gcc_jit_co=
ntext_acquire],<br>
&gt;=C2=A0 =C2=A05202=C2=A0 =C2=A0 =C2=A0 =C2=A0[], [libgccjit_not_found])<=
br>
&gt;=C2=A0 =C2=A05203=C2=A0 =C2=A0 =C2=A0AC_CHECK_HEADERS([libgccjit.h], []=
, [libgccjit_dev_not_found])<br>
&gt;=C2=A0 =C2=A05204=C2=A0 =C2=A0 =C2=A0if test &quot;${with_native_compil=
ation}&quot; !=3D &quot;no&quot;; then<br>
&gt;=C2=A0 =C2=A05205=C2=A0 =C2=A0 =C2=A0 =C2=A0# Check if libgccjit really=
 works.<br>
&gt;=C2=A0 =C2=A05206=C2=A0 =C2=A0 =C2=A0 =C2=A0AC_RUN_IFELSE([libgccjit_sm=
oke_test], [], [libgccjit_broken])<br>
&gt;=C2=A0 =C2=A05207=C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 =C2=A05208 fi<br>
&gt;<br>
&gt;=C2=A0 I think this misses the special handling of Homebrew and MacPort=
s<br>
&gt;=C2=A0 installations of libgccjit that is done a few lines below.<br>
&gt;<br>
&gt;=C2=A0 <a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_bl=
ank">configure.ac</a>&lt;master&gt;:<br>
&gt;=C2=A0 =C2=A05218=C2=A0 =C2=A0 =C2=A0if test &quot;${opsys}&quot; =3D &=
quot;darwin&quot;; then<br>
&gt;=C2=A0 =C2=A05219=C2=A0 =C2=A0 =C2=A0 =C2=A0# Ensure libgccjit installe=
d by Homebrew or macports can be found.<br>
&gt;=C2=A0 =C2=A05220=C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;$BREW&quot=
;; then<br>
&gt;=C2=A0 =C2=A05221=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;`$B=
REW --prefix --installed libgccjit 2&gt;/dev/null`&quot;; then<br>
&gt;=C2=A0 =C2=A05222=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_CFLAGS=3D=
&quot;-I$(dirname $($BREW ls -v libgccjit | \<br>
&gt;=C2=A0 =C2=A05223=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0grep libgccjit.h))&quot;<br=
>
&gt;=C2=A0 =C2=A05224=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_LIBS=3D&q=
uot;-L$(dirname $($BREW ls -v libgccjit \<br>
&gt;=C2=A0 =C2=A05225=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =
grep -m1 -E &#39;libgccjit\.(so|dylib)$&#39;))&quot;<br>
&gt;=C2=A0 =C2=A05226=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 =C2=A05227=C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br>
&gt;<br>
&gt;=C2=A0 I don&#39;t understand why with_native_compilation=3Ddefault is =
handled the<br>
&gt;=C2=A0 way it is, and not as &quot;use if available&quot; like for othe=
r things, so I&#39;ll<br>
&gt;=C2=A0 leave this code untouched.<br>
&gt;<br>
&gt;=C2=A0 +my 2 cents, it would be great to handle this on macOS so we can=
 avoid manually specifying configure<br>
&gt;=C2=A0 options.<br>
&gt;<br>
&gt; It seems that homebrew dbus is also ignored. Gerd, is dbus configured =
correctly for you on macOS by default?<br>
<br>
Homebrew dbus needs a service to be running. What does this show for<br>
you?<br>
<br>
.../emacs/github/igc % brew services list <br>
Name=C2=A0 =C2=A0 =C2=A0 =C2=A0Status User File<br>
dbus=C2=A0 =C2=A0 =C2=A0 =C2=A0other=C2=A0 gerd ~/Library/LaunchAgents/org.=
freedesktop.dbus-session.plist<br></blockquote><div><br></div><div class=3D=
"gmail_default" style=3D"font-family:monospace">I&#39;m looking only to bui=
ld emacs with dbus support, not necessarily be running dbus.=C2=A0 If I run=
 configure --with-dbus that works fine without the service running and has =
for me for ages.</div></div></div>

--00000000000012cb1f0642764966--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 15:43:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 11:43:34 2025
Received: from localhost ([127.0.0.1]:42812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vErHq-00079o-71
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:43:34 -0400
Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:43265)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vErHd-00078X-Sz
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:43:23 -0400
Received: by mail-wr1-x42c.google.com with SMTP id
 ffacd0b85a97d-3ecde0be34eso2202896f8f.1
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 08:43:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761925395; x=1762530195; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=n9Nymz9ziH9vO/WG+CXYXMg7ij61XxUMow+FMx/3AqQ=;
 b=H1Dq/SK2KuFjdZBYDYeZzOMhamJKRL59jGagtDQb5E60Y2LDLzJKIvlWiiAKJBce6M
 hzcB/+ngwqfrj6JmHDiScGrT7W2eL4pj8KakiQ6fn16kWH7Z3RXmrRJWMNHR3mog6CJw
 9715SHJee8PlW3WzC5pDxqEnt1exPwTGMn/VhC+xjvkc+CK5pPh5vtjfKrLb8Y9NFH7m
 ygNPhS5Qmqn3+D2MId0ugGwBSZbyUJjQqCm/hxwFdkM7oI3OovOyMPmn6oFnc/EPyCLo
 vuJuNrxMfQMGeUoCpZFeWjJDvP4nxn2aqeBocMN1ucQz1EEaghF0CGpFYCvZ9b5XRnWe
 nXRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761925395; x=1762530195;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=n9Nymz9ziH9vO/WG+CXYXMg7ij61XxUMow+FMx/3AqQ=;
 b=RDzHsN39gW/0k6vGc4tCQxFiT98bkYoF4BGQEMXGfs2a2ufIFtyijZj2Q+AvepTtEO
 2LOve2wDEuC/rzM1/Stb2/FCGYgt/MHZ/z1zkzlKt7/JWKqjVavJ0AjmfHsUxo5I8xVB
 TwQCWrMq1E3CTU0F2pvq099u9u07vR+7Rq1Jr9zaT+EMSrNEA6EtYiQ67EHvLP0SQ/Fp
 R2QvA0AG0eppJ4jMfOHbo1gSMQZKpvyZci3eAxW00/NQqJT1gUWjQKMx7Nuu7skz67Dc
 tDNxhr/mXLCj4cxM/vl8KyjIioPyGWxyOQzPdhXW+er6A9ouyOzR/tHtZP35xGigze40
 Ly3w==
X-Gm-Message-State: AOJu0YyLPuOBVEqc9iEEiJBXqtAW/v9mAE56Quo57RLUs4DIyLfZRtv7
 4CQFX6//6yPiToStahFGzdJdDlGf2pxE/NhMUYle7eBJZnXnjpnhdUQy
X-Gm-Gg: ASbGnctj8YXBrS6ks6ogGa+6iTMlGL72cNmTcup7+J/h//6LTO3NjYuBj7yfVW3jKmv
 phvMYH1lvLN7LYXk4rbbttw92nr4f8sSUOuWHyBTUvs83ErnDV7QDMOHCPYUtQKH+Rdq5St5qFC
 9HCljp3YKf1oZ8j7Qss1HkKRFPEQVyTwyyetbWPHssni5pcNuHfPq63cniy2yt2p8yPPeMk+Xhy
 kMlOesg3PzI5oeiGKcOSfjJegc1vysNpPiHoId1X+g4raUxOltOZh/KHedbxrgHH6+spcHKErYw
 825yMfukLRxD9AKgdoB1ob61UAd5D2FLGqv6JzYhKn1ovgTBfXL+jQvf3u6L8q+MD1dIl9TAQC0
 8Tpz3c77WKSoK+ESCxqf+PNkC2jgxcxeEmg6nui/lJSY/5Dj/44UdCsG9huGXOoe5/kBnwXlLl5
 psiPXVdlzcJjibW97r3VyEipjdfGoXOrDy6xvicr09iS0djTrhRFUd2hvvDbxL9EQdAbBib88mB
 7g+OAdIWGfRUKMq1QTPympKzReK+TKo5oX3Em6pag==
X-Google-Smtp-Source: AGHT+IEeXBO2kqd+A7qdJNCbDUphuZvUVgOMJwk8/3pKF5BOAvfCV1Pr7wv82HtB7I2nWA7brxCiTQ==
X-Received: by 2002:a05:6000:40c8:b0:427:67b:b385 with SMTP id
 ffacd0b85a97d-429b4c38034mr7495896f8f.11.1761925394718; 
 Fri, 31 Oct 2025 08:43:14 -0700 (PDT)
Received: from pro4 (p200300e0b738df00b42a37bac059b60a.dip0.t-ipconnect.de.
 [2003:e0:b738:df00:b42a:37ba:c059:b60a])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-429c1125ad0sm4238667f8f.13.2025.10.31.08.43.13
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 31 Oct 2025 08:43:14 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane?= Marks <shipmints@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit
 unless --with-native-compilation specified
In-Reply-To: <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
References: <m2ms5brsjn.fsf@HIDDEN>
 <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
 <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
Date: Fri, 31 Oct 2025 16:43:13 +0100
Message-ID: <m2pla3nkku.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

St=C3=A9phane Marks <shipmints@HIDDEN> writes:

> On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks <shipmints@g=
mail.com> wrote:
>
>  On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellm=
ann@HIDDEN> wrote:
>
>  This is with master on macOS. Haven't checked with emacs-30.
>
>  Make sure that libgccjit is installed, for example via Homebrew. In a
>  terminal, run ./autogen.sh, so that ./configure exists.
>
>  1. ./configure
>  =3D> libgccjit not found
>
>  2. ./configure --with-native-compilation
>  =3D> libgccjit is found
>
>  I think the reason for this is here:
>
>  configure.ac<master>:
>   5199 if test "${with_native_compilation}" =3D "default"; then
>   5200     # Check if libgccjit is available.
>   5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
>   5202       [], [libgccjit_not_found])
>   5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found])
>   5204     if test "${with_native_compilation}" !=3D "no"; then
>   5205       # Check if libgccjit really works.
>   5206       AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken])
>   5207     fi
>   5208 fi
>
>  I think this misses the special handling of Homebrew and MacPorts
>  installations of libgccjit that is done a few lines below.
>
>  configure.ac<master>:
>   5218     if test "${opsys}" =3D "darwin"; then
>   5219       # Ensure libgccjit installed by Homebrew or macports can be =
found.
>   5220       if test -n "$BREW"; then
>   5221         if test -n "`$BREW --prefix --installed libgccjit 2>/dev/n=
ull`"; then
>   5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \
>   5223                                                 grep libgccjit.h))"
>   5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
>   5225                                   | grep -m1 -E 'libgccjit\.(so|dy=
lib)$'))"
>   5226         fi
>   5227       fi
>              ...
>
>  I don't understand why with_native_compilation=3Ddefault is handled the
>  way it is, and not as "use if available" like for other things, so I'll
>  leave this code untouched.
>
>  +my 2 cents, it would be great to handle this on macOS so we can avoid m=
anually specifying configure
>  options.
>
> It seems that homebrew dbus is also ignored. Gerd, is dbus configured cor=
rectly for you on macOS by default?

Homebrew dbus needs a service to be running. What does this show for
you?

.../emacs/github/igc % brew services list=20
Name       Status User File
dbus       other  gerd ~/Library/LaunchAgents/org.freedesktop.dbus-session.=
plist





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 15:34:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 11:34:15 2025
Received: from localhost ([127.0.0.1]:42691 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vEr8k-00064H-9A
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:34:15 -0400
Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]:51344)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1vEr8c-00062F-45
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:34:03 -0400
Received: by mail-vs1-xe35.google.com with SMTP id
 ada2fe7eead31-5db3b074f58so2876694137.2
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 08:34:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761924835; x=1762529635; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=aUY96mGqbgIkOMh5zMewQ+uXQQPsoSTPXAPfYhJTGfM=;
 b=U7CMVbJ+LgwMZBC7Lo7R21/szCS9FJk0FJhHIi9SLSYFBHWe8yIoQxRteXjNwUFtpH
 XSS/C3EzRPOCvm/4oJNmKTFloQuubdoFJQY1XHva2scsCXOF87yHB0rNQIhOlZwLgAg+
 flnQC0PJpAusI7M97KKSk6XxInvVKbMlnDSv5WPCbRbH3jmNaS3ltfhCfXk4aVpUQ7Rd
 bfDu0OAjH9X5ypPNtFCuWn/pZbiVqTGmHY3G21CT7Ayw8JVDfIyt0sQqyHez8btqCim5
 S8+MFpHPPs3ElPCe/1danFBvX4MqrRGDULtd0X3wa8uR2vQeCPHEXIJ1QSqTgXIxtIZ4
 OjiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761924835; x=1762529635;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=aUY96mGqbgIkOMh5zMewQ+uXQQPsoSTPXAPfYhJTGfM=;
 b=uwA6r3gg0yLm3rEQOA1kYrw3reEc62GHjSvMlqPOQTxzFTF58BXx6lvzyZUInobOH0
 CPfMo91zFIcR4B7Ji+5Xkb/2ENny4vsjxGs+5L9gZOBR7gbKivgcpDF4TkxnOEAq2NGY
 5NdOC72AGklkfH5XqP8V8STpVVqVaORdNT7dxPflR6C/O1Ru+ZWoTC8x/382SyHHcfYU
 VCpvqiprDHf5iTbTgXQklxhIh8rcE9VMb/oCGeG4Cqi2hzb9facBl3uscy57BRDhIYba
 7q0zZOO0ndzbDKVp9neE5ueA53M0GA5rC6O+7eK3EFc03jJMVjlGgb2pPiijC+BaOsoX
 eGdg==
X-Gm-Message-State: AOJu0Yzwoufg5th5XSgrO4ZE9ed83ytF+4j41TgS8EBewvDSfJ09Hzw0
 bCgLYrU6R64JUcYKgWbvtdaJ6mqOrRbXXGifqf6ElgghOaECTPnFR3ZnCsXSc0VRZGU2zwk511P
 ptplryKe6MM/bAZXhqcljmweTHvXE3wVZfYdR
X-Gm-Gg: ASbGncs4KP3G6dX8BcVt4btqZiv8rxS8Dn4C4tZ9t5Yq6neA8mJedWTvSRlFXqNltyF
 R25ERsUPDtJ+yTk6h42m/yH8Lfe2fR7gf3/ciBmyHWO3j2kx2uJx7/cgwJxOE93JBcbqfmU8E/M
 DmsKL+HJ4zs8Ok1XrBz+Uno0buXoF+eSNJudefP+eC1b7ezYwLh2Y4drJqIHpujHaDCcxA1howr
 4yuaenbUWUjRm4H/OwBP5qtxz6w4mHwE1gJXj0iZhon7mtKa4vWh2iTnbqPGM0=
X-Google-Smtp-Source: AGHT+IFzD7omzAgWO3S/mwNv0Q4lpKDvBiPnZ3wkd9kuiDOrqB7djJijKDHwLTp6CqUbEAHUpI9sahtz0cggQA6b7Iw=
X-Received: by 2002:a05:6102:50a9:b0:51e:8f20:159b with SMTP id
 ada2fe7eead31-5dbb132363fmr1652208137.29.1761924833913; Fri, 31 Oct 2025
 08:33:53 -0700 (PDT)
MIME-Version: 1.0
References: <m2ms5brsjn.fsf@HIDDEN>
 <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
In-Reply-To: <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Fri, 31 Oct 2025 11:33:42 -0400
X-Gm-Features: AWmQ_bnXfLCzHfy6i6KaaNU8KS7TMuVBNYxJsrV7vbElKrKNbeJqjErCTAyJCz0
Message-ID: <CAN+1HbqBXVu23AFt9wnWt+EcOZgDHW33JUPYmMuB5jphQxP+XQ@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d8aff8064276176f"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000d8aff8064276176f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks <shipmints@gma=
il.com> wrote:

> On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellma=
nn@HIDDEN>
> wrote:
>
>> This is with master on macOS. Haven't checked with emacs-30.
>>
>> Make sure that libgccjit is installed, for example via Homebrew. In a
>> terminal, run ./autogen.sh, so that ./configure exists.
>>
>> 1. ./configure
>> =3D> libgccjit not found
>>
>> 2. ./configure --with-native-compilation
>> =3D> libgccjit is found
>>
>> I think the reason for this is here:
>>
>> configure.ac<master>:
>>  5199 if test "${with_native_compilation}" =3D "default"; then
>>  5200     # Check if libgccjit is available.
>>  5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
>>  5202       [], [libgccjit_not_found])
>>  5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found])
>>  5204     if test "${with_native_compilation}" !=3D "no"; then
>>  5205       # Check if libgccjit really works.
>>  5206       AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken]=
)
>>  5207     fi
>>  5208 fi
>>
>> I think this misses the special handling of Homebrew and MacPorts
>> installations of libgccjit that is done a few lines below.
>>
>> configure.ac<master>:
>>  5218     if test "${opsys}" =3D "darwin"; then
>>  5219       # Ensure libgccjit installed by Homebrew or macports can be
>> found.
>>  5220       if test -n "$BREW"; then
>>  5221         if test -n "`$BREW --prefix --installed libgccjit
>> 2>/dev/null`"; then
>>  5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \
>>  5223                                                 grep libgccjit.h))=
"
>>  5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
>>  5225                                   | grep -m1 -E
>> 'libgccjit\.(so|dylib)$'))"
>>  5226         fi
>>  5227       fi
>>             ...
>>
>> I don't understand why with_native_compilation=3Ddefault is handled the
>> way it is, and not as "use if available" like for other things, so I'll
>> leave this code untouched.
>>
>
> +my 2 cents, it would be great to handle this on macOS so we can avoid
> manually specifying configure options.
>

It seems that homebrew dbus is also ignored. Gerd, is dbus configured
correctly for you on macOS by default?

--000000000000d8aff8064276176f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Fri, Oct 31, 2025 at 11:17=E2=80=AFAM St=C3=A9phane Marks &lt;<a href=3D=
"mailto:shipmints@HIDDEN">shipmints@HIDDEN</a>&gt; wrote:</span></div=
></div><div class=3D"gmail_quote gmail_quote_container"><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div sty=
le=3D"font-family:monospace"><span style=3D"font-family:Arial,Helvetica,san=
s-serif">On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann &lt;<a=
 href=3D"mailto:gerd.moellmann@HIDDEN" target=3D"_blank">gerd.moellmann@=
gmail.com</a>&gt; wrote:</span></div></div><div class=3D"gmail_quote"><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex">This is with master on macOS. =
Haven&#39;t checked with emacs-30.<br>
<br>
Make sure that libgccjit is installed, for example via Homebrew. In a<br>
terminal, run ./autogen.sh, so that ./configure exists.<br>
<br>
1. ./configure<br>
=3D&gt; libgccjit not found<br>
<br>
2. ./configure --with-native-compilation<br>
=3D&gt; libgccjit is found<br>
<br>
I think the reason for this is here:<br>
<br>
<a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_blank">config=
ure.ac</a>&lt;master&gt;:<br>
=C2=A05199 if test &quot;${with_native_compilation}&quot; =3D &quot;default=
&quot;; then<br>
=C2=A05200=C2=A0 =C2=A0 =C2=A0# Check if libgccjit is available.<br>
=C2=A05201=C2=A0 =C2=A0 =C2=A0AC_CHECK_LIB([gccjit], [gcc_jit_context_acqui=
re],<br>
=C2=A05202=C2=A0 =C2=A0 =C2=A0 =C2=A0[], [libgccjit_not_found])<br>
=C2=A05203=C2=A0 =C2=A0 =C2=A0AC_CHECK_HEADERS([libgccjit.h], [], [libgccji=
t_dev_not_found])<br>
=C2=A05204=C2=A0 =C2=A0 =C2=A0if test &quot;${with_native_compilation}&quot=
; !=3D &quot;no&quot;; then<br>
=C2=A05205=C2=A0 =C2=A0 =C2=A0 =C2=A0# Check if libgccjit really works.<br>
=C2=A05206=C2=A0 =C2=A0 =C2=A0 =C2=A0AC_RUN_IFELSE([libgccjit_smoke_test], =
[], [libgccjit_broken])<br>
=C2=A05207=C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A05208 fi<br>
<br>
I think this misses the special handling of Homebrew and MacPorts<br>
installations of libgccjit that is done a few lines below.<br>
<br>
<a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_blank">config=
ure.ac</a>&lt;master&gt;:<br>
=C2=A05218=C2=A0 =C2=A0 =C2=A0if test &quot;${opsys}&quot; =3D &quot;darwin=
&quot;; then<br>
=C2=A05219=C2=A0 =C2=A0 =C2=A0 =C2=A0# Ensure libgccjit installed by Homebr=
ew or macports can be found.<br>
=C2=A05220=C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;$BREW&quot;; then<br>
=C2=A05221=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;`$BREW --prefi=
x --installed libgccjit 2&gt;/dev/null`&quot;; then<br>
=C2=A05222=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_CFLAGS=3D&quot;-I$(d=
irname $($BREW ls -v libgccjit | \<br>
=C2=A05223=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0grep libgccjit.h))&quot;<br>
=C2=A05224=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_LIBS=3D&quot;-L$(dir=
name $($BREW ls -v libgccjit \<br>
=C2=A05225=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| grep -m1 -E=
 &#39;libgccjit\.(so|dylib)$&#39;))&quot;<br>
=C2=A05226=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A05227=C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br>
<br>
I don&#39;t understand why with_native_compilation=3Ddefault is handled the=
<br>
way it is, and not as &quot;use if available&quot; like for other things, s=
o I&#39;ll<br>
leave this code untouched.<br></blockquote><div><br></div><div style=3D"fon=
t-family:monospace">+my 2 cents, it would be great to handle this on macOS =
so we can avoid manually specifying configure options.</div></div></div></b=
lockquote><div><br></div><div class=3D"gmail_default" style=3D"font-family:=
monospace">It seems that homebrew dbus is also ignored. Gerd, is dbus confi=
gured correctly for you on macOS by default?</div></div></div>

--000000000000d8aff8064276176f--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at 79709 <at> debbugs.gnu.org:


Received: (at 79709) by debbugs.gnu.org; 31 Oct 2025 15:18:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 31 11:18:23 2025
Received: from localhost ([127.0.0.1]:42520 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vEqtT-0004dQ-1h
	for submit <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:18:23 -0400
Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:53615)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1vEqtM-0004dI-8X
 for 79709 <at> debbugs.gnu.org; Fri, 31 Oct 2025 11:18:17 -0400
Received: by mail-vs1-xe29.google.com with SMTP id
 ada2fe7eead31-5dbae7f85a3so612199137.3
 for <79709 <at> debbugs.gnu.org>; Fri, 31 Oct 2025 08:18:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761923889; x=1762528689; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=MWVCCkssoVaqv6MwbBdcy+yN3YxUBsTCxalVgn0z+WY=;
 b=LK4mBCLPRXojwUCZ26wMSRIMjd3Kz+5Scx9+sRL8Vmd2ArnKv+C3kuTU84gi1C47Jh
 o/MomeCATQwvpLHpYAP8DQ85Q9tGwqxLJvliCgcMK/BSHsZsoUxT7zr41hweDKOPuv3U
 vqGzRn0xkgp6CcvMlgaKaReMrAJZjoF+dhPyJ3HUKq+d0V5ksysRqgdAWT/eRmd4oaqC
 O98cytyjfcbNe+90fqQpfdZ5G/Td1W+H7NqzPloThSC9ATnD/G4vR6RafiV05zr6ECf7
 TdfgVPoYUf2vf+vEOzctTJy7psWHruSn7Vov3aGlL9c7/YzjxHG28NKxHghhUfFs7haR
 9VKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761923889; x=1762528689;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=MWVCCkssoVaqv6MwbBdcy+yN3YxUBsTCxalVgn0z+WY=;
 b=Y6Uocbsz4nyivl+9FjOkpQoQ1Tj9tESkIhALqCUPpjTpa4BiWMaTlRRNwdzjx7GkMU
 kF35PIyYAU1NI8p2DE0ZghRkTMPK7ipQQYzL0L8mvNx5hV/IxN0ETNWsWPbwG+PCiGzB
 r+xk6Bu6bzS/iq2twIVxbgquoqDYghvGodHWRBY9ZG6XJQqG9GVY5oHteusGWEglML55
 tzTaUAl/IGeRx9oiXZQZghGk3gpq6sIViFxGH3H5MUkCpEzdJvlVbA2PektV0THqvmif
 JucWSWyIje/FXumE/pQ01NEMc2ikXVDNg6bAsF/RTxMLMY92Ugswatr1TilcQHxacvfM
 VBJA==
X-Gm-Message-State: AOJu0Yy9UAF8cPCj72x+440C0Tsc9c8GvRaIJxy5CV8K+SHDNtp0KsdC
 kmYNMsEBgw9O3zqxjiqpkwGMxnyq+fjMkyyCQCqJ613bpEONJlrhUXuRJ/Ea8lpHze1hn9Ok7qy
 wabvgE6OGWTD8sKLKHFQXQvUxPfjfJbc=
X-Gm-Gg: ASbGncvgcjjR5/tfJ8Vflf0nPUWFXTNOkkQ+Cf8TBbOnzKlhhEG7006lxagxSG81be9
 38XtQodHiyUfKYax5xA05bEqc/NK9nh+KfOLwK0BsNmsTeCsMYRoKRrRn/dFc+w7UqdKXjjrRC3
 qwSitwdMuh1AHKZCDaisyqI0tRxcNeu3Zq3bUp6s9uZhOJwz+e7h22lysvFB03erlk1GWKM0fdv
 yqJkf+eC8L9mgyNVlq8AZIVGOhQE+uBCEcMPvkbJWrjKBUScZ2OaUK9z7vJsdw=
X-Google-Smtp-Source: AGHT+IEJjc6uvxOV+KCHD6BEAb9ySUr+81tohL4Nwwcc7OAGs30b0HTXBHeYXh2ojsZDyfFGVceZJT8Vpsl2Lgh+ZPo=
X-Received: by 2002:a05:6102:e14:b0:591:7a8a:1d99 with SMTP id
 ada2fe7eead31-5dbb12df4b9mr1201915137.22.1761923889112; Fri, 31 Oct 2025
 08:18:09 -0700 (PDT)
MIME-Version: 1.0
References: <m2ms5brsjn.fsf@HIDDEN>
In-Reply-To: <m2ms5brsjn.fsf@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Fri, 31 Oct 2025 11:17:58 -0400
X-Gm-Features: AWmQ_bmEDAV8Kzd0DSorKQE7NEeeMmMenNY0x5LYHCYXb7Q0RMKth_L_NSu6Ktc
Message-ID: <CAN+1HbpRcsW70k1fDmTEc0UagG=WKpNHd_Qm1gv1WFQqp_+MWQ@HIDDEN>
Subject: Re: bug#79709: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000882915064275df6b"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79709
Cc: Andrea Corallo <acorallo@HIDDEN>, 79709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000882915064275df6b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellmann=
@gmail.com>
wrote:

> This is with master on macOS. Haven't checked with emacs-30.
>
> Make sure that libgccjit is installed, for example via Homebrew. In a
> terminal, run ./autogen.sh, so that ./configure exists.
>
> 1. ./configure
> =3D> libgccjit not found
>
> 2. ./configure --with-native-compilation
> =3D> libgccjit is found
>
> I think the reason for this is here:
>
> configure.ac<master>:
>  5199 if test "${with_native_compilation}" =3D "default"; then
>  5200     # Check if libgccjit is available.
>  5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
>  5202       [], [libgccjit_not_found])
>  5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found])
>  5204     if test "${with_native_compilation}" !=3D "no"; then
>  5205       # Check if libgccjit really works.
>  5206       AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken])
>  5207     fi
>  5208 fi
>
> I think this misses the special handling of Homebrew and MacPorts
> installations of libgccjit that is done a few lines below.
>
> configure.ac<master>:
>  5218     if test "${opsys}" =3D "darwin"; then
>  5219       # Ensure libgccjit installed by Homebrew or macports can be
> found.
>  5220       if test -n "$BREW"; then
>  5221         if test -n "`$BREW --prefix --installed libgccjit
> 2>/dev/null`"; then
>  5222           MAC_CFLAGS=3D"-I$(dirname $($BREW ls -v libgccjit | \
>  5223                                                 grep libgccjit.h))"
>  5224           MAC_LIBS=3D"-L$(dirname $($BREW ls -v libgccjit \
>  5225                                   | grep -m1 -E
> 'libgccjit\.(so|dylib)$'))"
>  5226         fi
>  5227       fi
>             ...
>
> I don't understand why with_native_compilation=3Ddefault is handled the
> way it is, and not as "use if available" like for other things, so I'll
> leave this code untouched.
>

+my 2 cents, it would be great to handle this on macOS so we can avoid
manually specifying configure options.

--000000000000882915064275df6b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Tue, Oct 28, 2025 at 10:49=E2=80=AFAM Gerd M=C3=B6llmann &lt;<a href=3D"=
mailto:gerd.moellmann@HIDDEN">gerd.moellmann@HIDDEN</a>&gt; wrote:</s=
pan></div></div><div class=3D"gmail_quote gmail_quote_container"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">This is with master on macOS. Haven=
&#39;t checked with emacs-30.<br>
<br>
Make sure that libgccjit is installed, for example via Homebrew. In a<br>
terminal, run ./autogen.sh, so that ./configure exists.<br>
<br>
1. ./configure<br>
=3D&gt; libgccjit not found<br>
<br>
2. ./configure --with-native-compilation<br>
=3D&gt; libgccjit is found<br>
<br>
I think the reason for this is here:<br>
<br>
<a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_blank">config=
ure.ac</a>&lt;master&gt;:<br>
=C2=A05199 if test &quot;${with_native_compilation}&quot; =3D &quot;default=
&quot;; then<br>
=C2=A05200=C2=A0 =C2=A0 =C2=A0# Check if libgccjit is available.<br>
=C2=A05201=C2=A0 =C2=A0 =C2=A0AC_CHECK_LIB([gccjit], [gcc_jit_context_acqui=
re],<br>
=C2=A05202=C2=A0 =C2=A0 =C2=A0 =C2=A0[], [libgccjit_not_found])<br>
=C2=A05203=C2=A0 =C2=A0 =C2=A0AC_CHECK_HEADERS([libgccjit.h], [], [libgccji=
t_dev_not_found])<br>
=C2=A05204=C2=A0 =C2=A0 =C2=A0if test &quot;${with_native_compilation}&quot=
; !=3D &quot;no&quot;; then<br>
=C2=A05205=C2=A0 =C2=A0 =C2=A0 =C2=A0# Check if libgccjit really works.<br>
=C2=A05206=C2=A0 =C2=A0 =C2=A0 =C2=A0AC_RUN_IFELSE([libgccjit_smoke_test], =
[], [libgccjit_broken])<br>
=C2=A05207=C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A05208 fi<br>
<br>
I think this misses the special handling of Homebrew and MacPorts<br>
installations of libgccjit that is done a few lines below.<br>
<br>
<a href=3D"http://configure.ac" rel=3D"noreferrer" target=3D"_blank">config=
ure.ac</a>&lt;master&gt;:<br>
=C2=A05218=C2=A0 =C2=A0 =C2=A0if test &quot;${opsys}&quot; =3D &quot;darwin=
&quot;; then<br>
=C2=A05219=C2=A0 =C2=A0 =C2=A0 =C2=A0# Ensure libgccjit installed by Homebr=
ew or macports can be found.<br>
=C2=A05220=C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;$BREW&quot;; then<br>
=C2=A05221=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if test -n &quot;`$BREW --prefi=
x --installed libgccjit 2&gt;/dev/null`&quot;; then<br>
=C2=A05222=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_CFLAGS=3D&quot;-I$(d=
irname $($BREW ls -v libgccjit | \<br>
=C2=A05223=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0grep libgccjit.h))&quot;<br>
=C2=A05224=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAC_LIBS=3D&quot;-L$(dir=
name $($BREW ls -v libgccjit \<br>
=C2=A05225=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| grep -m1 -E=
 &#39;libgccjit\.(so|dylib)$&#39;))&quot;<br>
=C2=A05226=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A05227=C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br>
<br>
I don&#39;t understand why with_native_compilation=3Ddefault is handled the=
<br>
way it is, and not as &quot;use if available&quot; like for other things, s=
o I&#39;ll<br>
leave this code untouched.<br></blockquote><div><br></div><div class=3D"gma=
il_default" style=3D"font-family:monospace">+my 2 cents, it would be great =
to handle this on macOS so we can avoid manually specifying configure optio=
ns.</div></div></div>

--000000000000882915064275df6b--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Oct 2025 14:48:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 28 10:48:49 2025
Received: from localhost ([127.0.0.1]:53694 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vDl0C-0002aB-RQ
	for submit <at> debbugs.gnu.org; Tue, 28 Oct 2025 10:48:49 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39516)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vDl08-0002Zt-Rd
 for submit <at> debbugs.gnu.org; Tue, 28 Oct 2025 10:48:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vDl03-0006hz-5K
 for bug-gnu-emacs@HIDDEN; Tue, 28 Oct 2025 10:48:39 -0400
Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1vDkzz-0005pK-Ki
 for bug-gnu-emacs@HIDDEN; Tue, 28 Oct 2025 10:48:37 -0400
Received: by mail-ed1-x52f.google.com with SMTP id
 4fb4d7f45d1cf-63bea08a326so8569107a12.3
 for <bug-gnu-emacs@HIDDEN>; Tue, 28 Oct 2025 07:48:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761662910; x=1762267710; darn=gnu.org;
 h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=SxCRDyyIFdddPhmwuBaZLYS+v3BkxBZTn57yxrQSoj0=;
 b=A/dCIvEixwLVME9Y347BJ0oApY5dD+//kGDd8ISknDNg2tY3VT0T2q2IWTBZlxjxKs
 f62YF4lxFVNBSgKk5brz241Ia460MrmDAHAiILKwZ1/9axvdp4BbLKzTQ/hoXR7E1DkF
 AKbu6L3rv0JfVi7C2+lObwlDJLiwEvKx6vYbMrwFA5QHGhoKONb/N7g1rR9UW1BzEEEr
 Z+sR7gw5PHUi6uCmwK3eZV09viiO927UNzsQrEWqjFfUbHTjiYmD7TzLMQVV+4NucjA2
 1Z7ZarHLZ5riPZLNtfkfF6bF0DCgZo+fOg2lQyPHHdFo8nd8KrVQkSQze3qoLMRhWYUL
 Secg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761662910; x=1762267710;
 h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=SxCRDyyIFdddPhmwuBaZLYS+v3BkxBZTn57yxrQSoj0=;
 b=pkh1S2qkjhO4AtXPaAXFK/1kko3807+YxHyCFw6kpfR8F1diDzMiOujIVPAFckh+8x
 /1nl+8IhP7w99hOG+lHbDTRKrQ2ziR3DcbbsjYtn6c6abvih5xiJ/MgmdlDq8x1h1kzP
 eYZ8ADxCngrbQ7WAMDO5h5AYg1gg1LzGTIGXx9cSxtBt9FpEduTRT7w8TEgPZgGViJRQ
 Kx/wvfFDlLrG1o5DPGTtAlEY6SbBe1F8B3gEmjLjhH3vg8aacgrCMElr54CmTdYY6u+C
 d0R8VyTZ+okdKFRH1xj8BppHg0aw9r45Zu2j8V7/tPRmCfhe7yh8PWwbjo0L63EyriKK
 lDLA==
X-Gm-Message-State: AOJu0YwlgxZN7CCpXV6G5in4Zp4RSh54VWz/Bzj1UgWmHdGZNdbGfSPV
 OUTkxz0BJ1KweioFHL+g1Kdw7gFtFReQuhxMfEKx13/ikg1W3PEMP8SE4rzHucf3
X-Gm-Gg: ASbGnct/7oOKa0SNdj0GhpQYf58WH1HhwxDDrZzLaWQX2AU+wflj44Cg66gdiVq2sQP
 dB2Vxs77g6lBjl1wBkk8xPQmV9h3/bJiFUT7F9SwvvbC9/2beX1K/g6CCYr0jXtbMluE7GxE7ws
 ayrYFX+3quuUBKuXyjKVdJFm4z9eU8PGJs9LhHhKkrlrwHoB/u/53CZgXH+ZqN0hPFDpmIc/8Bu
 xzZg3LLwSiyTSoQFIvowyivE/h36O+vjC3mPgI+Z3L5YSPFGdzV8bjVIQe4Q3oqKXkUnIfzEZ6H
 N+Vp6dcHs6I050SpeR5CJAPifOSwcH7v3n1YHQsp0bJQxL0Q34X44CscY4O0cGgQPBxpL13m2LI
 mET26M779DZ4leC5is1inOOZZpNub17bCJLEq/Q7bZaou321gYfA5r0+rR8fPJ8uLEm20byvZ9w
 0g4DUhE0TnLsSvspEQq3xHIFpv3millwqt7DYuUUlw2hwx0edkIYIw53Bm0TYo/QmiHAbrNyvlz
 i5DaVcfMLR9
X-Google-Smtp-Source: AGHT+IExGrkbZzBf32TEJaF/SorWHNPxMWqTe0YaMefYA4hnVkptFGrEC46/DdEKF98HtpUVKNj2Cg==
X-Received: by 2002:a05:6402:3494:b0:63c:6b38:758d with SMTP id
 4fb4d7f45d1cf-63ed816296fmr3464656a12.23.1761662909711; 
 Tue, 28 Oct 2025 07:48:29 -0700 (PDT)
Received: from pro4 (p200300e0b724cb00d53261a79f6e1097.dip0.t-ipconnect.de.
 [2003:e0:b724:cb00:d532:61a7:9f6e:1097])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-63e7ef95e8dsm9054382a12.20.2025.10.28.07.48.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 28 Oct 2025 07:48:29 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; macOS: configure not finding libgccjit unless
 --with-native-compilation specified
X-Debbugs-Cc: 
Date: Tue, 28 Oct 2025 15:48:28 +0100
Message-ID: <m2ms5brsjn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::52f;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ed1-x52f.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Andrea Corallo <acorallo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

This is with master on macOS. Haven't checked with emacs-30.

Make sure that libgccjit is installed, for example via Homebrew. In a
terminal, run ./autogen.sh, so that ./configure exists.

1. ./configure
=> libgccjit not found

2. ./configure --with-native-compilation
=> libgccjit is found

I think the reason for this is here:

configure.ac<master>:
 5199 if test "${with_native_compilation}" = "default"; then
 5200     # Check if libgccjit is available.
 5201     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
 5202       [], [libgccjit_not_found])
 5203     AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found])
 5204     if test "${with_native_compilation}" != "no"; then
 5205       # Check if libgccjit really works.
 5206       AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken])
 5207     fi
 5208 fi

I think this misses the special handling of Homebrew and MacPorts
installations of libgccjit that is done a few lines below.

configure.ac<master>:
 5218     if test "${opsys}" = "darwin"; then
 5219       # Ensure libgccjit installed by Homebrew or macports can be found.
 5220       if test -n "$BREW"; then
 5221         if test -n "`$BREW --prefix --installed libgccjit 2>/dev/null`"; then
 5222           MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \
 5223                                                 grep libgccjit.h))"
 5224           MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit \
 5225                                   | grep -m1 -E 'libgccjit\.(so|dylib)$'))"
 5226         fi
 5227       fi
            ...

I don't understand why with_native_compilation=default is handled the
way it is, and not as "use if available" like for other things, so I'll
leave this code untouched.




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79709; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 14 Nov 2025 07:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.