From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Andrea Monaco To: aburgess@redhat.com Cc: gdb@sourceware.org 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Wed, 29 Dec 2021 18:06:10 -0000 > 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