devbuild fails: ClrHost.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM64' #8563
Replies: 3 comments
-
I've never seen that error message before. |
Beta Was this translation helpful? Give feedback.
-
It looks like you've configured something around the ClrHost.obj such that it has generated it as an x86 type object file. But then you're trying to link it all into an ARM64 assembly. I'd suggest that you delete ALL of the files. You should also indicate what build environment you're running under. I assume you're running under an x64 type machine... but assumptions aren't a good idea. Perhaps you're on an ARM64 Mac trying to do weird things with containers/Parallels... |
Beta Was this translation helpful? Give feedback.
-
Found the issue, I selected the arm toolset instead of arm64 😿 I'm going to optimistically close this |
Beta Was this translation helpful? Give feedback.
-
I tried running
devbuild.cmd
after forking the repository. I double checked and have the latest VCS bits (x86/x64/arm64), all the .NET framework targeting and developer packs, NET 6, 7, 8 and 9. I'm on VS 2022 (17.9.0). I have all the required workloads listed installed as well.Does this error look familiar. I tried searching this discussion for the message (both open and closed items), but didn't find anything. I'm guessing it's something environmental on my setup.
Beta Was this translation helpful? Give feedback.
All reactions