From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#57380: 29.0.50; configure --config-cache --with-native-compilation failing Date: Wed, 24 Aug 2022 16:32:20 +0200 Message-ID: References: <83pmgp6cx3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.91 (gnu/linux) Cc: Eli Zaretskii , 57380@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 16:34:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQrSY-0005xD-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 16:34:22 +0200 Original-Received: from localhost ([::1]:43724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQrSX-0001P0-G3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 10:34:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQrRH-0000M4-HG for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 10:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQrRH-0005bs-8N for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 10:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQrRG-0007KW-4W for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57380 X-GNU-PR-Package: emacs Original-Received: via spool by 57380-submit@debbugs.gnu.org id=B57380.166135155228138 (code B ref 57380); Wed, 24 Aug 2022 14:33:02 +0000 Original-Received: (at 57380) by debbugs.gnu.org; 24 Aug 2022 14:32:32 +0000 Original-Received: from localhost ([127.0.0.1]:47629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQrQm-0007Jm-1Q for submit@debbugs.gnu.org; Wed, 24 Aug 2022 10:32:32 -0400 Original-Received: from smtp-out2.suse.de ([195.135.220.29]:43902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQrQh-0007JW-IH for 57380@debbugs.gnu.org; Wed, 24 Aug 2022 10:32:31 -0400 Original-Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 1CB591FBCD; Wed, 24 Aug 2022 14:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661351541; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zpENw9ImJi0iWiwoiDYyizw0+wni0C/cHdm7gcfpCoA=; b=U9y/7v3Xg/VFsxfRGNEAUgsy0ZmPIee3bN0t0FMfYGMrhKRVK2FN1/7G/cI/N/42n8EYJi PSMvhCZ1HKNhG/y0rEwYaJLlKNPGVPIfwGcIZ9CzYat5uO3kdAsT7FpAA0yMIJGT41qCdj 0PfKO4cwYQMdLPRJiom4qSQO+uGyLRo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661351541; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zpENw9ImJi0iWiwoiDYyizw0+wni0C/cHdm7gcfpCoA=; b=b4Guph0WZ38BDOn1CJU2RqWREFaWW0goE5YRJp8dXKpLJ+QHM1Fefadm/GgCpOFqadAKc2 CP7ppkV3DBr3FbAw== Original-Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 13EEF2C141; Wed, 24 Aug 2022 14:32:20 +0000 (UTC) Original-Received: by hawking.suse.de (Postfix, from userid 17005) id DE6B5444B04; Wed, 24 Aug 2022 16:32:20 +0200 (CEST) X-Yow: Isn't this my STOP?! In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Wed, 24 Aug 2022 15:37:16 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240633 Archived-At: On Aug 24 2022, Gerd Möllmann wrote: > diff --git a/configure.ac b/configure.ac > index 7616e450d0..08a41a7808 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -4273,6 +4273,7 @@ AC_DEFUN > [], [libgccjit_not_found]) > AC_CHECK_HEADERS([libgccjit.h], [], [libgccjit_dev_not_found]) > # Check if libgccjit really works. > + AC_LANG(C) > AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken]) > HAVE_NATIVE_COMP=yes > case "${opsys}" in > > This makes it work for me. That appears to be a misuse of AC_LANG_PUSH/POP. Apparently they must not be used inside AC_CACHE_CHECK. diff --git a/configure.ac b/configure.ac index 7616e450d0..39bfe7800b 100644 --- a/configure.ac +++ b/configure.ac @@ -2155,32 +2155,32 @@ AC_SUBST([NS_OBJ]) AC_SUBST([NS_OBJC_OBJ]) if test "${HAVE_NS}" = yes; then + AC_LANG_PUSH([Objective C]) AC_CACHE_CHECK( [if the Objective C compiler supports instancetype], [emacs_cv_objc_instancetype], - [AC_LANG_PUSH([Objective C]) - AC_COMPILE_IFELSE( + [AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[@interface Test + (instancetype)test; @end]])], [emacs_cv_objc_instancetype=yes], - [emacs_cv_objc_instancetype=no]) - AC_LANG_POP([Objective C])]) + [emacs_cv_objc_instancetype=no])]) + AC_LANG_POP([Objective C]) if test x$emacs_cv_objc_instancetype = xyes ; then AC_DEFINE([NATIVE_OBJC_INSTANCETYPE], [1], [Define if ObjC compiler supports instancetype natively.]) fi + AC_LANG_PUSH([Objective C]) AC_CACHE_CHECK( [if the Objective C compiler defaults to C99], [emacs_cv_objc_c99], - [AC_LANG_PUSH([Objective C]) - AC_COMPILE_IFELSE( + [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [[for (int i = 0;;);]])], [emacs_cv_objc_c99=yes], - [emacs_cv_objc_c99=no]) - AC_LANG_POP([Objective C])]) + [emacs_cv_objc_c99=no])]) + AC_LANG_POP([Objective C]) if test x$emacs_cv_objc_c99 = xno ; then GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -std=c99" -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."