From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id jqyUItIs7GRVbwwAWB0awg (envelope-from ) for ; Mon, 28 Aug 2023 01:12:50 -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=AT+sid4/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7FFD31E0C2; Mon, 28 Aug 2023 01:12:50 -0400 (EDT) Received: from server2.sourceware.org (server2.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 70EE11E028 for ; Mon, 28 Aug 2023 01:12:48 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 840D33858417 for ; Mon, 28 Aug 2023 05:12:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 840D33858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693199567; bh=IRCFF/r+dykf2zZaMYkuQ1P1as0ZJf4PgxACsCDFBHY=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=AT+sid4/yGw/OW24BF1VCk6i3VkKyFyGdLKj0gJLMrN+JsohGYDaz6lhJ5A4KA/Zm NqBsLTjNavDSPvd5ey2pvofhtaCXOnThMBQ+kLU6Jk9VhUtoTYuD53IHcu5vP1e/O8 iAHp9cUJfSJTT7G7cxOkk3UEKZDvlWqjIuP6aEBE= Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 2E23E3858D28 for ; Mon, 28 Aug 2023 05:12:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E23E3858D28 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DB2681F855; Mon, 28 Aug 2023 05:12:15 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BC097139CC; Mon, 28 Aug 2023 05:12:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bzVHLK8s7GQ5UwAAMHmgww (envelope-from ); Mon, 28 Aug 2023 05:12:15 +0000 Message-ID: <76910a49-d8c8-830c-ac1e-313bcb55a45e@suse.de> Date: Mon, 28 Aug 2023 07:12:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: GDB13 fails to build on MacOS using supplied GNU Bison 2.3 Content-Language: en-US To: Torbjorn SVENSSON , gdb@sourceware.org Cc: Tom Tromey References: <0badf084-d0b7-54bb-aec6-b79f29ad191d@foss.st.com> In-Reply-To: <0badf084-d0b7-54bb-aec6-b79f29ad191d@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb Reply-To: Tom de Vries Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 8/19/23 20:11, Torbjorn SVENSSON via Gdb wrote: > 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. > > Filed earlier here ( https://sourceware.org/bugzilla/show_bug.cgi?id=30286 ). Thanks, - Tom > 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.) >