https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124233
Bug ID: 124233
Summary: MinGW-w64 gcc/rust build issues due to missing
open_memstream()
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rust
Assignee: unassigned at gcc dot gnu.org
Reporter: brechtsanders at users dot sourceforge.net
CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org,
pierre-emmanuel.patry at embecosm dot com
Target Milestone: ---
I was just trying to build GCC with Rust language support on native Windows
using MinGW-w64.
Compilation is getting quite far but stops on gcc/rust/typecheck/rust-tyty.cc
because open_memstream() (used in generate_tree_str) does not exist on this
platform.
Is there a way to rewrite generate_tree_str() so it doesn't use
open_memstream()?
Or is there an alternative to print_generic_stmt() to dump a tree to a string
instead of a file stream?