[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=]

2024-03-03 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461

Jeffrey A. Law  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||law at gcc dot gnu.org

--- Comment #5 from Jeffrey A. Law  ---
Should be fixed on the trunk now.

[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=]

2024-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461

--- Comment #4 from Andrew Pinski  ---
Try after r14-8211-g2341df1cb9b3681bfefe29207887b2b3dc271a95 which was just
committed.

[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=]

2024-01-18 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461

--- Comment #3 from Rainer Orth  ---
Created attachment 57135
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57135=edit
Proposed patch

Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu.

[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=]

2024-01-18 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461

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 member
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 argument
3 has type 'std::set::size_type' {aka
'unsigned int'} [-Werror=format=]
  968 |   rust_debug_loc (expr_locus, "resolved to %lu candidates",
candidates.size ());
  |~~^ 
~~
  |  | 
|
  |  long unsigned int 
std::set::size_type {aka unsigned int}
  |%u

I'm using the attached patch to fix the build.

[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=]

2024-01-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113461

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |14.0
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2024-01-18
   Keywords||build

--- Comment #1 from Andrew Pinski  ---
Confirmed, this was also reported on IRC.
I think there will be a patch pushed in the next day or so too to fix this.