[Bug other/105352] Building cross-compiler for host i686-w64-mingw32, target mips32-elf, fails

dragorn421 at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 22 20:59:47 GMT 2022


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

Dragorn421 <dragorn421 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED
              Build|                            |x86_64-pc-linux-gnu
               Host|                            |i686-w64-mingw32
             Target|                            |mips64-unknown-elf
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=65863

--- Comment #2 from Dragorn421 <dragorn421 at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> >../gcc-11.3.0/configure --host=i686-w64-mingw32 --target=mips32-elf --disable-nls
> 
> 
> >I want the compiled executable files to run natively on Windows 32-bits as .exe , hence the host `i686-w64-mingw32`.
> 
> You don't have a i686-w64-mingw32 cross compiler installed though.
> So you are just doing something which won't work until you get a cross
> compiler on the machine.

Doesn't `sudo apt install gcc-mingw-w64-i686` take care of that? It seems to be
detected correctly going by the configure output:

```
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-w64-mingw32-gcc accepts -g... yes
checking for i686-w64-mingw32-gcc option to accept ISO C89... none needed
```


More information about the Gcc-bugs mailing list