llvm-mingw icon indicating copy to clipboard operation
llvm-mingw copied to clipboard

machine type x64 conflicts with x86

Open lianquke opened this issue 1 year ago • 4 comments

Dear friends, I am a programming novice, but also a new user of llvm-mingw, thank you for providing such an excellent tool, I have encountered a problem, would like to consult the solution: My computer is Windows x86_64 architecture, I want to build programs for i686 platform, so I downloaded llvm-mingw-20240619-ucrt-i686, but when compiling, I was prompted machine type x64 conflicts with x86. Can you tell me the right thing to do? I'd appreciate it.

lianquke avatar Jul 16 '24 13:07 lianquke

The x86_64 and i686 in the releases are for the compiler binaries itself. Both versions of the toolchain can compile for all 4 CPU architectures.

longnguyen2004 avatar Jul 16 '24 14:07 longnguyen2004

The x86_64 and i686 in the releases are for the compiler binaries itself. Both versions of the toolchain can compile for all 4 CPU architectures.

Thank you for your reply! Could you tell me how to compile programs for i686 using an x86_64 toolchain? Thanks.

lianquke avatar Jul 16 '24 14:07 lianquke

Use the i686-w64-mingw32-clang++.exe binary

longnguyen2004 avatar Jul 16 '24 15:07 longnguyen2004

Use the i686-w64-mingw32-clang++.exe binary

Thanks.You are right!

lianquke avatar Jul 16 '24 15:07 lianquke