https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113553
Bug ID: 113553 Summary: rust fails to build on spar64-linux-gnu Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rust Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org Target Milestone: --- seen with trunk 20240121 on sparc64-linux-gnu: [...] ../../../../src/libgrust/libp roc_macro_internal/literal.cc: In static member function 'static ProcMacro::Literal ProcMacro:: Literal::make_f32(float, bool)': ../../../../src/libgrust/libproc_macro_internal/literal.cc:155:57: error: call of overloaded 'to_string(float&)' is ambiguous 155 | auto text = FFIString::make_ffistring (std::to_string (value)); | ~~~~~~~~~~~~~~~^~~~~~~ In file included from /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/string:54, from ../../../../src/libgrust/libproc_macro_internal/literal.h:27, from ../../../../src/libgrust/libproc_macro_internal/literal.cc:23: /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4240:3: note: candidate: 'std::string std::__cxx11::to_string(int)' 4240 | to_string(int __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4259:3: note: candidate: 'std::string std::__cxx11::to_string(unsigned int)' 4259 | to_string(unsigned __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4275:3: note: candidate: 'std::string std::__cxx11::to_string(long int)' 4275 | to_string(long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4294:3: note: candidate: 'std::string std::__cxx11::to_string(long unsigned int)' 4294 | to_string(unsigned long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4310:3: note: candidate: 'std::string std::__cxx11::to_string(long long int)' 4310 | to_string(long long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4327:3: note: candidate: 'std::string std::__cxx11::to_string(long long unsigned int)' 4327 | to_string(unsigned long long __val) | ^~~~~~~~~ ../../../../src/libgrust/libproc_macro_internal/literal.cc:157:70: error: could not convert '{ProcMacro::LitKind::make_float(), text, suffix, ProcMacro::Span::make_unknown()}' from '<brace-enclosed initializer list>' to 'ProcMacro::Literal' 157 | return {LitKind::make_float (), text, suffix, Span::make_unknown ()}; | ^ | | | <brace-enclosed initializer list> ../../../../src/libgrust/libproc_macro_internal/literal.cc: In static member function 'static ProcMacro::Literal ProcMacro::Literal::make_f64(double, bool)': ../../../../src/libgrust/libproc_macro_internal/literal.cc:163:57: error: call of overloaded 'to_string(double&)' is ambiguous 163 | auto text = FFIString::make_ffistring (std::to_string (value)); | ~~~~~~~~~~~~~~~^~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4240:3: note: candidate: 'std::string std::__cxx11::to_string(int)' 4240 | to_string(int __val) | ^~~~~~~~~ checking if /<<PKGBUILDDIR>>/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/build/./gcc/ -B/usr/sparc64-linux-gnu/bin/ -B/usr/sparc64-linux-gnu/lib/ -isystem /usr/sparc64-linux-gnu/include -isystem /usr/sparc64-linux-gnu/sys-include -isystem /<<PKGBUILDDIR>>/build/sys-include supports -fno-rtti -fno-exceptions... /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4259:3: note: candidate: 'std::string std::__cxx11::to_string(unsigned int)' 4259 | to_string(unsigned __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4275:3: note: candidate: 'std::string std::__cxx11::to_string(long int)' 4275 | to_string(long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4294:3: note: candidate: 'std::string std::__cxx11::to_string(long unsigned int)' 4294 | to_string(unsigned long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4310:3: note: candidate: 'std::string std::__cxx11::to_string(long long int)' 4310 | to_string(long long __val) | ^~~~~~~~~ /<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:4327:3: note: candidate: 'std::string std::__cxx11::to_string(long long unsigned int)' 4327 | to_string(unsigned long long __val) | ^~~~~~~~~ ../../../../src/libgrust/libproc_macro_internal/literal.cc:165:70: error: could not convert '{ProcMacro::LitKind::make_float(), text, suffix, ProcMacro::Span::make_unknown()}' from '<brace-enclosed initializer list>' to 'ProcMacro::Literal' 165 | return {LitKind::make_float (), text, suffix, Span::make_unknown ()}; | ^ | | | <brace-enclosed initializer list> make[5]: *** [<builtin>: literal.o] Error 1 make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgrust/libproc_macro_internal' make[4]: *** [Makefile:421: all-recursive] Error 1 make[4]: Leaving directory '/<<PKGBUILDDIR>>/build/sparc64-linux-gnu/libgrust'