[Bug rust/113553] rust fails to build on sparc64-linux-gnu

ro at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 24 14:33:55 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113553

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
The build works for me just fine on sparc-sun-solaris2.11.

I've also fired one off on sparc64-unknown-linux-gnu which worked just as well.
It was a rough ride, however, with the build aborting with

xgcc: fatal error: cannot execute
'/var/gcc/regression/master/6.4.0-gcc-gas-gld/build/./gcc/cc1plus':
posix_spawn: Bad address

several times.  When I ran make under strace -f, however, the build worked just
fine.  Quite ugly, actually.

That said, those specializations of std::to_string live in
libstdc++-v3/include/bits/basic_string.h.
The floating point ones are guarded by _GLIBCXX_USE_C99_STDIO.  In my build,
sparc64-unknown-linux-gnu/libstdc++-v3/config.h has

#define _GLIBCXX11_USE_C99_STDIO 1
#define _GLIBCXX98_USE_C99_STDIO 1

If yours does not, you need to check config.log to find out what's wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gcc-rust mailing list