Skip to content

Tablegen fails when building for debug on Windows with the latest Visual Studio version. #45453

@mvhooren

Description

@mvhooren
Bugzilla Link 46108
Resolution DUPLICATE
Resolved on May 27, 2020 14:23
Version 10.0
OS Windows NT
Blocks #44654
CC @efriedma-quic,@tstellar

Extended Description

Using the latest Visual Studio release 16.6.0, llvm fails to build on Windows when building for debug.
This issue is present in the 10.0.0 release as well as the 10.0.1-rc1 release, but not in the current master branch.

llvm-tblgen.exe shows some unexpected behaviour.

See also https://llvm.discourse.group/t/llvm-not-building-in-vusual-studio/1139/3

Here is some of the erroneous output:

>llvm-tblgen.exe: Unknown command line argument '-gen-attrs'. Try: '..\..\Debug\bin\llvm-tblgen.exe --help' 28>llvm-tblgen.exe: Did you mean '--stats'? 27>llvm-tblgen.exe: Unknown command line argument '-gen-attrs'. Try: '..\..\..\Debug\bin\llvm-tblgen.exe --help' 27>llvm-tblgen.exe: Did you mean '--stats'? 31>llvm-tblgen.exe: Unknown command line argument '-gen-opt-parser-defs'. Try: '..\..\..\Debug\bin\llvm-tblgen.exe --help' 31>llvm-tblgen.exe: Did you mean '--info-output-file'? 29>llvm-tblgen.exe: Unknown command line argument '-gen-searchable-tables'. Try: '..\..\..\Debug\bin\llvm-tblgen.exe --help' 29>llvm-tblgen.exe: Did you mean '--info-output-file'? 30>llvm-tblgen.exe: Unknown command line argument '-gen-opt-parser-defs'. Try: '..\..\..\Debug\bin\llvm-tblgen.exe --help' 30>llvm-tblgen.exe: Did you mean '--info-output-file'? 28>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. 28>Done building project "AttributeCompatFuncTableGen.vcxproj" -- FAILED. 31>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. 31>Done building project "LibOptionsTableGen.vcxproj" -- FAILED. 27>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. 27>Done building project "intrinsics_gen.vcxproj" -- FAILED. 29>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. 29>Done building project "InstCombineTableGen.vcxproj" -- FAILED. 30>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. 30>Done building project "DllOptionsTableGen.vcxproj" -- FAILED.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicatetablegen

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions