[cfe-dev] 64-bit Tool set linker error on windows

Apoorva Paneliya via cfe-dev cfe-dev at lists.llvm.org
Tue Jan 16 22:26:56 PST 2018


hi all,

http://clang.llvm.org/get_started.html
I am followed the instruction given in above article for compiling 64-bit
toolset on windows using Visual studio 15.


Command used for visual studio project generation:- *cmake -Thost=x64 -G
"Visual Studio 14" ..\llvm*

it successfully generates LLVM.sln.
*Now, open LLVM.sln and change the platform target to "debug-x64".*
start building clang.exe project.

I am seeing below errors.

1. x64\Debug\ItaniumDemangle.obj : *fatal error LNK1112: module machine
type 'x64' conflicts with target machine type 'X86'*
2. x64\Debug\ClangASTNodesEmitter.obj : fatal error LNK1112: module machine
type 'x64' conflicts with target machine type 'X86'
3. x64\Debug\AsmLexer.obj : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type 'X86'

And many more such error.

*so, what to know solution for such errors or am i missing any steps?*

Thanks in advance.!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180117/c0dfcb3b/attachment.html>


More information about the cfe-dev mailing list