https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #8 from niXman ---
(In reply to boot...@163.com from comment #7)
> After a lg compile, I get the same error on my Ubuntu WSL. but I think
> it might be a problem with the WSL VM.
there is nothing unusual in your instruction exc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #7 from bootmgr at 163 dot com ---
(In reply to boot...@163.com from comment #5)
> (In reply to niXman from comment #4)
> > please provide the step-by-step instruction you used.
> 1. Extract binutils gcc mingw-w64 files to any where
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #6 from bootmgr at 163 dot com ---
(In reply to niXman from comment #3)
> what GCC version was used on the host?
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #5 from bootmgr at 163 dot com ---
(In reply to niXman from comment #4)
> please provide the step-by-step instruction you used.
1. Extract binutils gcc mingw-w64 files to any where
Extract gmp mpfr mpc isl to gcc source directory
not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #4 from niXman ---
> The gcc I compiled generated wrong assembly code on Windows.
> This gcc is Canadian compiled from Ubuntu.
please provide the step-by-step instruction you used.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #3 from niXman ---
> The gcc I compiled generated wrong assembly code on Windows.
> This gcc is Canadian compiled from Ubuntu.
what GCC version was used on the host?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101823
--- Comment #2 from bootmgr at 163 dot com ---
I reconfigured gcc with --enable-threads=win32 (not --enable-threads=posix) and
this gcc can compile the program correctly.The posix thread model cannot.