From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1693199535; 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=IRCFF/r+dykf2zZaMYkuQ1P1as0ZJf4PgxACsCDFBHY=; b=RQL6tmBCu37xSVtg99f1DovnY0bnFMzxHVNhQVnEmcrVDTQ0BM7WtPAr1n4soxP+K2bC0a WJyeCB+5mg/GJ8wv33Fvm8RDSN4A4DJE4hw2C1+5hX6cLc1joqaO0RYt/PY0mztsagbMSr 9eYXlf3JRMgsZQ5mJublZnQ4qoO8fho= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1693199535; 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=IRCFF/r+dykf2zZaMYkuQ1P1as0ZJf4PgxACsCDFBHY=; b=Ho8QjaHjJ/y9gpljAhuNDkAY7mw3LAJVmU8qyj9pKE+tBwFdaTmzEI8jc4rtYFYjA+QRZ1 1rI0TmVPgHZyDIBg== 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> From: Tom de Vries 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 List-Id: 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.) >