[cfe-dev] 64-bit Tool set linker error on windows
Reid Kleckner via cfe-dev
cfe-dev at lists.llvm.org
Wed Jan 17 09:36:18 PST 2018
If you had to change the default platform target to debug-x64, it sounds
like CMake did not generate x64 project files. I believe our CMake scripts
do not support generating projects that allow changing from x86 to x64.
I am only familiar with the old way to generate x64 project files, which is
to use the "Visual Studio 14 Win64" generator or something like that. The
documentation (
https://cmake.org/cmake/help/v3.9/generator/Visual%20Studio%2015%202017.html)
suggests
that the new way is to pass "-DCMAKE_GENERATOR_PLATFORM=x64".
On Tue, Jan 16, 2018 at 10:26 PM, Apoorva Paneliya via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> 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.!!
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180117/a475c0cc/attachment.html>
More information about the cfe-dev
mailing list