https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460
--- Comment #9 from Huaqi <fanghuaqi at vip dot qq.com> --- Hi, Costas Argyris, I am using this repo to help build toolchain, the repo link is here: https://github.com/riscv-collab/riscv-gnu-toolchain clone this source code and its submodule, and change gcc to upstream version git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git git submodule update --init --recursive --depth 1 cd gcc # fetch upstream gcc source code git fetch --all git checkout master cd .. Tested in Ubuntu 18.04, with packages binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 installed and other requirements in https://github.com/riscv-collab/riscv-gnu-toolchain#prerequisites. build command: mkdir build cd build ../configure --prefix=$(pwd)/install --with-host=i686-w64-mingw32 --enable-multilib make -j16 Then you will be able to reproduce this issue. Thanks