Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM' #366

Open
PRIMETSS opened this issue Jul 23, 2019 · 2 comments

Comments

@PRIMETSS
Copy link

When using VS2019 Developer Command Prompt and trying to build the BusTools with

msbuild /p:Platform=ARM /p:Configuration=Release

was getting Linker error

fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM'

But all projects and solution seemed to have Target set correctly for ARM.
After some time found solution was that VS2019 did not have MSVC v142 - VS 2019 C++ ARM build tools (v14.21) installed via VS installer.

Personally not C++ experience much these days, is this type of issue expected, or should there be a more clearer error message indicating the ARM build tools may not be available?
As it was not clear in either CLI or VS that the /p:Platform=ARM switch was failing and falling back to using X86

@SCIEN-00
Copy link

I have similar problem when going through this sample (installing python on windows IoT core) and building process gives me similar error: fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM'.

@LB--
Copy link

LB-- commented Feb 27, 2022

I ran into this issue recently, turns out for some reason the ARM build tools were actually not installed anymore. Not sure why or how as I had definitely installed them before, but just double check and make sure you have them selected in Visual Studio Installer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants