From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id bUyoMNcF4WSkMQUAWB0awg (envelope-from ) for ; Sat, 19 Aug 2023 14:11:35 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=LbYtw/Qo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B3CC91E0C2; Sat, 19 Aug 2023 14:11:35 -0400 (EDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 63C2C1E028 for ; Sat, 19 Aug 2023 14:11:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF8053858004 for ; Sat, 19 Aug 2023 18:11:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF8053858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692468692; bh=iLzIZRN7/w07X0/ua7m/WdyxZSCRDnQgHpFa6cCjGQ0=; h=Date:To:CC:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=LbYtw/QoMGuLWqX7os3MzFtj5cuWfFshRW1z5cvzop5K2svBKs6gt2lzf6dLp5LZj PS5qj1BibF+NBGxkObiwx2JiNo4AuT6oze8ASmIv/HXCEpFYnLi8w0kcScQFF3Eytr kVpZg52w/Ur8pf4ZvjLORuc+8ThaziU1rx60BRS8= Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id EAE4F3858C2D for ; Sat, 19 Aug 2023 18:11:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EAE4F3858C2D Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37J4I6lr013327; Sat, 19 Aug 2023 20:11:03 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3sjmmdtem7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 19 Aug 2023 20:11:03 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A4E90100053; Sat, 19 Aug 2023 20:11:02 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9D90722A6DD; Sat, 19 Aug 2023 20:11:02 +0200 (CEST) Received: from [10.252.20.60] (10.252.20.60) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Sat, 19 Aug 2023 20:11:02 +0200 Message-ID: <0badf084-d0b7-54bb-aec6-b79f29ad191d@foss.st.com> Date: Sat, 19 Aug 2023 20:11:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: CC: Tom Tromey Subject: GDB13 fails to build on MacOS using supplied GNU Bison 2.3 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.252.20.60] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To EQNDAG1NODE4.st.com (10.75.129.133) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-19_21,2023-08-18_01,2023-05-22_02 X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Torbjorn SVENSSON via Gdb Reply-To: Torbjorn SVENSSON Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hello, I'm trying to build GDB13 for arm-none-eabi on MacOS and have some mixed results. It looks like after b2bc564fe817f857b4915903f16026472acfbdcc got merged, the Bison version included in least Mojave, Catalina and Ventura is having trouble to generate code that can be compiled. Snippet of the build error: YACC m2-exp.c CXX m2-exp.o In file included from .../gdb/m2-exp.y:42: In file included from .../gdb/language.h:26: In file included from .../gdb/symtab.h:39: .../gdb/split-name.h:34:3: error: expected identifier DOT, ^ m2-exp.c:163:13: note: expanded from macro 'DOT' #define DOT 302 ^ In file included from .../gdb/m2-exp.y:42: In file included from .../gdb/language.h:26: .../gdb/symtab.h:307:23: error: expected unqualified-id style = split_style::DOT; ^ m2-exp.c:163:13: note: expanded from macro 'DOT' #define DOT 302 ^ 2 errors generated. All three versions of MacOS includes GNU Bison 2.3 and it appears that this issue was fixed in GNU Bison 2.4. The change between GNU Bison 2.3 and 2.4 for the m2-exp.c file is that the include statements are placed before the list of token kinds (define statements, including the define for DOT that is used in an enum definition in symtab.h). Looking at the binutils tree, I see that sub-directory gprofng contains bison.m4 and a check to confirm that at least version 3.0.4 is available. I think the bison.m4 file should be moved up one level and used in both gprofng and gdb, but I'm unable to re-generate the configure scripts. Can someone with knowledge of how automake works fix this? (CC'ing you Tom as you were the one introducing the split-name.h file that highlights this flaw.) Kind regards, Torbjörn