dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.19k stars 4.72k forks source link

CoreCLR failed to build due to error MSB1008 with MSVC on windows #13220

Closed spacelg closed 4 years ago

spacelg commented 5 years ago

Environment: Windows Server 2016 + VS2017 CoreCLR master branch latest srouce code

We tried to build CoreCLR and it failed to build due to error MSB1008: Only one project can be specified. It can be first reproduced on 929da85 revision. It should be a CoreCLR source issue. Could you look at this issue? Thanks a lot.

Repro steps: 1.git clone https://github.com/dotnet/coreclr D:\CoreCLR\src 2.Open a clean x86 prompt and browse to D:\CoreCLR\src 3.build x86 release -- /clp:ShowCommandLine

log_x86_build.log

Error info: Time Elapsed 00:01:10.28 BUILDTEST: Starting the Managed Tests Build BUILDTEST: Building tests divided into 3 test groups Running: msbuild D:\CoreCLR\src\tests\build.proj /flp:Verbosity=normal;LogFile="D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.log";Append=false /flp1:WarningsOnly;LogFile="D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.wrn";Append=false /flp2:ErrorsOnly;LogFile="D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.err";Append=false /p:TargetsWindows=true /p:__BuildOS=Windows_NT /p:BuildType=Release /p:BuildArch=x86 /nologo /verbosity:minimal /clp:Summary /maxcpucount /clp:ShowCommandLine MSBUILD : error MSB1008: Only one project can be specified. Switch: /clp:ShowCommandLine

For switch syntax, type "MSBuild -help" Build failed. BUILDTEST: Error: managed test build failed. Refer to the build log files for details: D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.log D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.wrn D:\CoreCLR\src\bin\Logs\Tests_Managed_Windows_NTx86Release.err [command took 1076 seconds]

jkotas commented 5 years ago

It can be first reproduced on 929da85 revision

cc @elinor-fung