I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a 64-bit Windows 7 system. I tried it with the 32-bit compiler as a test case first and that appeared to work, then with the 64-bit compiler in the hope that would give me a 64-bit build of LLVM, but instead got this error message: [ 86%] Generating X86CompilationCallback_Win64.obj Microsoft (R) Macro Assembler (x64) Version 11.00.51106.1 Copyright (C) Microsoft Corporation. All rights reserved. MASM : warning A4018:invalid command-line option : /llvm-3.3.src/lib/Target/X86/X86CompilationCallback_Win64.asm MASM : fatal error A1017:missing source filename NMAKE : fatal error U1077: 'echo' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. Am I doing something wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130824/d6d12d01/attachment.html>
After some running some more tests, a weird addendum to this case: the build also fails at the same place with the same error message if MinGW isn't in the path. I'm not talking about MinGW instead of Microsoft C++, it's just that the build works if and only if MinGW is in the path _as well as_ the 32-bit version of Microsoft C++. On Sat, Aug 24, 2013 at 8:15 PM, Russell Wallace <russell.wallace at gmail.com>wrote:> I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a > 64-bit Windows 7 system. I tried it with the 32-bit compiler as a test case > first and that appeared to work, then with the 64-bit compiler in the hope > that would give me a 64-bit build of LLVM, but instead got this error > message: > > [ 86%] Generating X86CompilationCallback_Win64.obj > Microsoft (R) Macro Assembler (x64) Version 11.00.51106.1 > Copyright (C) Microsoft Corporation. All rights reserved. > > MASM : warning A4018:invalid command-line option : > /llvm-3.3.src/lib/Target/X86/X86CompilationCallback_Win64.asm > MASM : fatal error A1017:missing source filename > NMAKE : fatal error U1077: 'echo' : return code '0x1' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > > Am I doing something wrong? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130826/3b5616b3/attachment.html>
... Or maybe not? I just tried it again in the exact same configuration that did work before, and this time it fails at an earlier stage with a different error: [ 66%] Building CXX object lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/Mips16FrameLowering.cpp.obj Mips16FrameLowering.cpp NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. On Mon, Aug 26, 2013 at 3:58 AM, Russell Wallace <russell.wallace at gmail.com>wrote:> After some running some more tests, a weird addendum to this case: the > build also fails at the same place with the same error message if MinGW > isn't in the path. I'm not talking about MinGW instead of Microsoft C++, > it's just that the build works if and only if MinGW is in the path _as well > as_ the 32-bit version of Microsoft C++. > > > On Sat, Aug 24, 2013 at 8:15 PM, Russell Wallace < > russell.wallace at gmail.com> wrote: > >> I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a >> 64-bit Windows 7 system. I tried it with the 32-bit compiler as a test case >> first and that appeared to work, then with the 64-bit compiler in the hope >> that would give me a 64-bit build of LLVM, but instead got this error >> message: >> >> [ 86%] Generating X86CompilationCallback_Win64.obj >> Microsoft (R) Macro Assembler (x64) Version 11.00.51106.1 >> Copyright (C) Microsoft Corporation. All rights reserved. >> >> MASM : warning A4018:invalid command-line option : >> /llvm-3.3.src/lib/Target/X86/X86CompilationCallback_Win64.asm >> MASM : fatal error A1017:missing source filename >> NMAKE : fatal error U1077: 'echo' : return code '0x1' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> >> Am I doing something wrong? >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130826/09beade5/attachment.html>
Hi Russel, I never tried to build LLVM with nmake. With msbuild it works without problems. You can find a short desription here: http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC, section Build LLVM. Regards Kai On 24.08.2013 21:15, Russell Wallace wrote:> I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a > 64-bit Windows 7 system. I tried it with the 32-bit compiler as a test > case first and that appeared to work, then with the 64-bit compiler in > the hope that would give me a 64-bit build of LLVM, but instead got this > error message: > > [ 86%] Generating X86CompilationCallback_Win64.obj > Microsoft (R) Macro Assembler (x64) Version 11.00.51106.1 > Copyright (C) Microsoft Corporation. All rights reserved. > > MASM : warning A4018:invalid command-line option : > /llvm-3.3.src/lib/Target/X86/X86CompilationCallback_Win64.asm > MASM : fatal error A1017:missing source filename > NMAKE : fatal error U1077: 'echo' : return code '0x1' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > > Am I doing something wrong? > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Ah, that worked much better, thanks! It actually appears to build correctly now with this sequence of commands: cd \ md llvm cd llvm \CMake\bin\cmake.exe \llvm-3.3.src msbuild ALL_BUILD.vcxproj On Mon, Aug 26, 2013 at 5:32 AM, Kai Nacke <kai.nacke at redstar.de> wrote:> Hi Russel, > > I never tried to build LLVM with nmake. With msbuild it works without > problems. You can find a short desription here: http://wiki.dlang.org/** > Building_and_hacking_LDC_on_**Windows_using_MSVC<http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC>, > section Build LLVM. > > Regards > Kai > > > > On 24.08.2013 21:15, Russell Wallace wrote: > >> I'm trying to build LLVM 3.3 using cmake/nmake, Microsoft C++ 2012, on a >> 64-bit Windows 7 system. I tried it with the 32-bit compiler as a test >> case first and that appeared to work, then with the 64-bit compiler in >> the hope that would give me a 64-bit build of LLVM, but instead got this >> error message: >> >> [ 86%] Generating X86CompilationCallback_Win64.**obj >> Microsoft (R) Macro Assembler (x64) Version 11.00.51106.1 >> Copyright (C) Microsoft Corporation. All rights reserved. >> >> MASM : warning A4018:invalid command-line option : >> /llvm-3.3.src/lib/Target/X86/**X86CompilationCallback_Win64.**asm >> MASM : fatal error A1017:missing source filename >> NMAKE : fatal error U1077: 'echo' : return code '0x1' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> >> Am I doing something wrong? >> >> >> ______________________________**_________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130826/23e932c3/attachment.html>