From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B0242385828A; Thu, 18 Jan 2024 09:05:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0242385828A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705568732; bh=wktquNg/mwhQ++KvcMSwZtJmP4BwKZghXCnma4pTkQI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S9O/ewcYPOD/P8CLDEY8+yJeD4k637ll4CM7BFoBvT7ble7gdssuKFv/xpRHL5X58 vh7R6sp2tz7kfLK3Dv5io/UThFghL4Ws7BZ1Aune9e0VhnV8JzErqbNHK2P7Qv7h6i 1z0WE8RxQfeS6q+mSkID4sdlGbV+ydWSjZW0Ey9w= From: "ro at gcc dot gnu.org" To: gcc-rust@gcc.gnu.org Subject: [Bug rust/113461] [14 Regression] rust-proc-macro.cc:174:15: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Werror=format=] Date: Thu, 18 Jan 2024 09:05:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rust X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113461 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target|hppa*-*-linux* |hppa*-*-linux*, | |*-*-solaris2.11 CC| |ro at gcc dot gnu.org --- Comment #2 from Rainer Orth --- I'm seeing the same on 32-bit Solaris/SPARC and x86. On top of that, there= 's also /vol/gcc/src/hg/master/local/gcc/rust/backend/rust-compile-base.cc: In memb= er function 'tree_node* Rust::Compile::HIRCompileBase::resolve_method_address(Rust::TyTy::FnType*, Rust::TyTy::BaseType*, location_t)': /vol/gcc/src/hg/master/local/gcc/rust/backend/rust-compile-base.cc:968:46: error: format '%lu' expects argument of type 'long unsigned int', but argum= ent 3 has type 'std::set::size_type' {aka 'unsigned int'} [-Werror=3Dformat=3D] 968 | rust_debug_loc (expr_locus, "resolved to %lu candidates", candidates.size ()); | ~~^=20=20=20=20=20=20=20= =20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~ | |=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | | long unsigned int=20= =20=20=20=20=20=20=20=20 std::set::size_type {aka unsigned i= nt} | %u I'm using the attached patch to fix the build. --=20 You are receiving this mail because: You are on the CC list for the bug.=