From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2B6E63857353; Fri, 5 May 2023 14:28:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B6E63857353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683296893; bh=BOdmijel+FQYhAjBGXtUv8Td1eQEZMdh/88eGp3qc68=; h=From:To:Subject:Date:From; b=ou58p1nlwFQqnF3oy+tsowg2nW8vMj4vFkj7rq4PKzhnzhnhliwZjpMI7uBnza08N CfDP7ilnJXCMm2lbUxrztlZCs5dvUB63/79syLSFYWIDg31uzGA07BpiCedT184k/F MbEyApQe6ofdl/3pJVA3F+rx9/BOj9yFC2+DZeMU= From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/30423] New: Build failures with clang 16 Date: Fri, 05 May 2023 14:28:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon.marchi at polymtl dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30423 Bug ID: 30423 Summary: Build failures with clang 16 Product: gdb Version: 13.1 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: simon.marchi at polymtl dot ca Target Milestone: --- Building GDB 13.1 with clang 16, I get these warnings: CXX gdb.o In file included from /home/smarchi/src/binutils-gdb/gdb/gdb.c:19: In file included from /home/smarchi/src/binutils-gdb/gdb/defs.h:66: /home/smarchi/src/binutils-gdb/gdb/../gdbsupport/enum-flags.h:95:52: error: integer value -1 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] integer_for_size(T (-1) < T (0))>::type ^ This breaks the build, since clang makes -Wenum-constexpr-conversion an err= or by default (without -Werror). Then, we have a few of these warnings: CXX z80-tdep.o /home/smarchi/src/binutils-gdb/gdb/z80-tdep.c:338:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] info->prologue_type.load_args =3D 1; ^ ~ We have patches for these issues in master: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Dae61525fcf4= 56ab395d55c45492a106d1275873a https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D07f28593488= 6016ddd82cac99a3873e68b499d5c We can consider cherry-picking them in gdb-13-branch. --=20 You are receiving this mail because: You are on the CC list for the bug.=