From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +7TkHLfuCGTyNQkAWB0awg (envelope-from ) for ; Wed, 08 Mar 2023 15:23:19 -0500 Received: by simark.ca (Postfix, from userid 112) id 662A71E223; Wed, 8 Mar 2023 15:23:19 -0500 (EST) 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=Vvn77jRC; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 164BA1E110 for ; Wed, 8 Mar 2023 15:23:19 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F4643851143 for ; Wed, 8 Mar 2023 20:23:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F4643851143 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678306997; bh=Io3xHqn5CZYrE1my9msfG8YAEzatGIZ70L96yBlVCyg=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Vvn77jRChkHhW5hrelITzC+B/6SEydI7DtwkhHLIvCDr8PLRj1OKVGjfcW+1W1+IC 3APwBU7mREL0ERgvv0sWMQ6sqKLGVVXvPEeatWqgjq4ne/Ds/UDwM07bMWgzv5+C+Z gNFN3mgUhNJalUn9acv7PKszjFXxOxAN6g8gPwTs= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 818D53858D33 for ; Wed, 8 Mar 2023 20:22:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 818D53858D33 Received: from [172.16.0.192] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id D8C1D1E110; Wed, 8 Mar 2023 15:22:50 -0500 (EST) Message-ID: Date: Wed, 8 Mar 2023 15:22:50 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: GDB 13.1 and clang Content-Language: fr To: Chris Johns , gdb@sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 3/8/23 15:07, Chris Johns wrote: > Hi, > > I have just tried to build the latest RTEMS tools and we now use gdb 13.1. I am > seeing a build failure on FreeBSD 13.1 of: > > In file included from ../../gdb-13.1/gdb/xml-tdesc.c:23: > In file included from ../../gdb-13.1/gdb/target.h:42: > In file included from ../../gdb-13.1/gdb/infrun.h:21: > In file included from ../../gdb-13.1/gdb/gdbthread.h:26: > In file included from ../../gdb-13.1/gdb/breakpoint.h:38: > ../../gdb-13.1/gdb/target/waitstatus.h:113:1: error: use of undeclared > identifier 'DIAGNOSTIC_ERROR_SWITCH' > DIAGNOSTIC_ERROR_SWITCH > ^ > > I only have clang installed on the FreeBSD machine. > > A quick review of include/diagnostics.h seems to show support for > DIAGNOSTIC_ERROR_SWITCH only in the gcc area? Hmm, I see it in the clang section: # define DIAGNOSTIC_ERROR_SWITCH \ DIAGNOSTIC_ERROR ("-Wswitch") https://sourceware.org/cgit/binutils-gdb/tree/include/diagnostics.h?h=gdb-13.1-release&id=4f3e26ac6ee31f7bc4b04abd8bdb944e7f1fc5d2#n76 Unless there's a typo I don't see. diagnostics.h is included at the top of waitstatus.h. Is it possible that another unrelated diagnostics.h gets included on FreeBSD? You could inspect the preprocessed file to see what the preprocessor included for diagnostics.h. Simon