From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ZFSOGqyjzGFgKwAAWB0awg (envelope-from ) for ; Wed, 29 Dec 2021 13:06:36 -0500 Received: by simark.ca (Postfix, from userid 112) id 5A9FD1F0D7; Wed, 29 Dec 2021 13:06:36 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CB78F1F0D0 for ; Wed, 29 Dec 2021 13:06:35 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16DDA3858C3A for ; Wed, 29 Dec 2021 18:06:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16DDA3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1640801195; bh=MyC0mAqIW7Qfw3Tgcd2B6ewjgVTngOKRcLZT9B+SWWE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RQTWkZ450pIq6BZEgCaLM+Obd6HbwIscan3eMz+vy1DJZwr3lJOIOrOFPTFWsQ931 QvnEQeQCNRq94MBC0qJME8GtPjFgj+FaenR7Qp+AuyqGoO7C6btTDZcvbzaCugJrT0 MBGmvEBp57Ag/PeZYd6LiJW9tAmE6G8dYK7zBHBg= Received: from confino.investici.org (confino.investici.org [IPv6:2a00:c38:11e:ffff::a020]) by sourceware.org (Postfix) with ESMTPS id 00C593858D39 for ; Wed, 29 Dec 2021 18:06:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 00C593858D39 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4JPK8Z5P7Rz111D; Wed, 29 Dec 2021 18:06:06 +0000 (UTC) Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4JPK8Z4RjNz1117; Wed, 29 Dec 2021 18:06:06 +0000 (UTC) To: aburgess@redhat.com Subject: Re: -Werror enabled by default on GNU/Hurd Date: Wed, 29 Dec 2021 19:06:04 +0100 Message-ID: <87fsqbthf7.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain 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: Andrea Monaco via Gdb Reply-To: Andrea Monaco Cc: gdb@sourceware.org Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" > with this patch I am now able to build GDB on GNU/Hurd (i686). This > might help you out. Thanks, that solves a warning. But the build still fails with this output: CXX msg_U.o cc1: warning: command-line option '-Wno-mismatched-tags' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wsuggest-override' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wdeprecated-copy' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wdeprecated-copy-dtor' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wredundant-move' is valid for C++/ObjC++ but not for C cc1: warning: command-line option '-Wstrict-null-sentinel' is valid for C++/ObjC++ but not for C msg_U.c: In function 'msg_set_init_ports': msg_U.c:1044:22: error: conversion from 'unsigned int' to 'short unsigned int' changes value from '4294967295' to '65535' [-Werror=overflow] 1044 | /* msgtl_name = */ MACH_MSG_TYPE_POLYMORPHIC, | ^~~~~~~~~~~~~~~~~~~~~~~~~ msg_U.c: In function 'msg_set_dtable': msg_U.c:1838:22: error: conversion from 'unsigned int' to 'short unsigned int' changes value from '4294967295' to '65535' [-Werror=overflow] 1838 | /* msgtl_name = */ MACH_MSG_TYPE_POLYMORPHIC, | ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Makefile:1684: recipe for target 'msg_U.o' failed make: *** [msg_U.o] Error 1