https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460
--- Comment #12 from Huaqi <fanghuaqi at vip dot qq.com> --- Hello, this is the command used to configure gcc /work/gcc/configure --target=riscv64-unknown-elf --host=i686-w64-mingw32 --prefix=/work/LocalInstall/win32/newlibc/2023.04-eng2/gcc --disable-shared --di sable-threads --enable-languages=c,c++ --with-pkgversion=g465fcab6ea9 --with-system-zlib --enable-tls --with-newlib --with-sysroot=/work/LocalInstall/win32/n ewlibc/2023.04-eng2/gcc/riscv64-unknown-elf --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-li bgomp --disable-nls --disable-tm-clone-registry --src=/work/gcc --enable-multilib --with-multilib-generator=rv32emc-ilp32e--;rv32emac-ilp32e--;rv32imc-ilp32- -;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv32imac_zba_zbb_zbc_zbs-ilp32--;rv32imafc_zba_zbb_zbc_zbs-ilp32f--;rv32imafdc_zba_zbb_zbc_zbs-ilp3 2d--;rv64imac-lp64--;rv64imafc-lp64f--;rv64imafdc-lp64d--;rv64imac_zba_zbb_zbc_zbs-lp64--;rv64imafc_zba_zbb_zbc_zbs-lp64f--;rv64imafdc_zba_zbb_zbc_zbs-lp64d- -; --with-abi=lp64 --with-arch=rv64ima --with-tune=rocket --with-isa-spec=2.2 CFLAGS_FOR_TARGET=-Os -mcmodel=medany CXXFLAGS_FOR_TARGET=-Os -mcmodel=meda ny and then do command below make