Skip to content

C# build failing on LGTM #14306

@xtqqczze

Description

@xtqqczze

https://lgtm.com/projects/g/PowerShell/PowerShell/logs/languages/lang:csharp

/opt/out/snapshot: Running in /opt/dist: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, interpretConfig, /opt/lgtm-worker-tools.jar, csharp, /opt/out/lgtm.effective.yml]
[2020-12-02 04:29:42] [build] Configuration file:
[2020-12-02 04:29:42] [build] extraction:
[2020-12-02 04:29:42] [build]   csharp:
[2020-12-02 04:29:42] [build]     index:
[2020-12-02 04:29:42] [build]       build_command: "pwsh -Command \"Import-Module ./build.psm1; Start-PSBuild\""
/opt/out/snapshot: Running in /opt/dist: [/opt/work/lgtm-workspace/lgtm/extract.sh]
[2020-12-02 04:29:45] [build] prepare:
[2020-12-02 04:29:45] [build] index:
[2020-12-02 04:29:46] [build-err] /opt/out/snapshot: Running in /opt/src: [/opt/dist/csharp/tools/autobuild.sh]
[2020-12-02 04:29:48] [build] [2020-12-02 04:29:48] [build] CodeQL C# autobuilder
[2020-12-02 04:29:48] [build] [2020-12-02 04:29:48] [build] Working directory: /opt/src
[2020-12-02 04:29:49] [build] [2020-12-02 04:29:49] [build] Attempting to download .NET Core 5.0.100
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Running chmod u+x dotnet-install.sh
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Exit code 0
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] Running ./dotnet-install.sh --channel release --version 5.0.100 --install-dir /opt/src/.dotnet
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
[2020-12-02 04:29:51] [build] [2020-12-02 04:29:51] [build] dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
[2020-12-02 04:29:53] [build] [2020-12-02 04:29:53] [build] dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz
[2020-12-02 04:29:55] [build] [2020-12-02 04:29:55] [build] dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Adding to current process PATH: `/opt/src/.dotnet`. Note: This change will be visible only when sourcing script.
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Note that the script does not resolve dependencies during installation.
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: To check the list of dependencies, go to https://docs.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] dotnet-install: Installation finished successfully.
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Exit code 0
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Running rm dotnet-install.sh
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Exit code 0
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build] Running /opt/work/lgtm-workspace/lgtm/index_build_command.sh 
[2020-12-02 04:29:59] [build] [2020-12-02 04:29:59] [build-err] + pwsh -Command 'Import-Module ./build.psm1; Start-PSBuild'
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using configuration 'Debug'
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using framework 'net5.0'
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Using runtime 'linux-x64'
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] VERBOSE: Top project directory is /opt/src/src/powershell-unix
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Run dotnet restore /opt/src/src/powershell-unix --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Welcome to .NET 5.0!
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ---------------------
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] SDK Version: 5.0.100
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ----------------
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Installed an ASP.NET Core HTTPS development certificate.
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Learn about HTTPS: https://aka.ms/dotnet-https
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] ----------------
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Write your first app: https://aka.ms/dotnet-hello-world
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Find out what's new: https://aka.ms/dotnet-whats-new
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Explore documentation: https://aka.ms/dotnet-docs
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Report issues and find source on GitHub: https://github.com/dotnet/core
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
[2020-12-02 04:30:02] [build] [2020-12-02 04:30:02] [build] --------------------------------------------------------------------------------------
[2020-12-02 04:31:45] [build] [2020-12-02 04:31:45] [build] Done restoring /opt/src/src/powershell-unix
[2020-12-02 04:31:45] [build] [2020-12-02 04:31:45] [build] Run dotnet restore /opt/src/src/TypeCatalogGen --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet
[2020-12-02 04:31:49] [build] [2020-12-02 04:31:49] [build] Done restoring /opt/src/src/TypeCatalogGen
[2020-12-02 04:31:49] [build] [2020-12-02 04:31:49] [build] Run dotnet restore /opt/src/src/ResGen --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet
[2020-12-02 04:31:53] [build] [2020-12-02 04:31:53] [build] Done restoring /opt/src/src/ResGen
[2020-12-02 04:31:53] [build] [2020-12-02 04:31:53] [build] Run dotnet restore /opt/src/src/Modules --runtime linux-x64 /property:SDKToUse=Microsoft.NET.Sdk --verbosity quiet
[2020-12-02 04:32:01] [build] [2020-12-02 04:32:01] [build] Done restoring /opt/src/src/Modules
[2020-12-02 04:32:01] [build] [2020-12-02 04:32:01] [build] Run ResGen (generating C# bindings for resx files)
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] It was not possible to find any compatible framework version
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] The framework 'Microsoft.NETCore.App', version '5.0.0' was not found.
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err]   - The following frameworks were found:
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err]       2.1.13 at [/opt/work/.dotnet/shared/Microsoft.NETCore.App]
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err]       3.1.5 at [/opt/work/.dotnet/shared/Microsoft.NETCore.App]
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] You can resolve the problem by installing the specified framework and/or SDK.
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] The specified framework can be found at:
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err]   - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.0&arch=x64&rid=ubuntu.19.10-x64
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[91mException: �[0m/opt/src/build.psm1:2228
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[96mLine |
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[96m2228 | �[0m                 �[96mthrow $errorMessage�[0m
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[96m     | �[91m                 ~~~~~~~~~~~~~~~~~~~
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[91m�[96m     | �[91mExecution of { dotnet run } by build.psm1: line 2075 failed
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[96m     | �[91mwith exit code 150
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build-err] �[0m
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [build] Exit code 1
[2020-12-02 04:32:31] [build] [2020-12-02 04:32:31] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/dist/tools/linux64/preload_tracer, /opt/dist/csharp/tools/autobuild.sh])
[2020-12-02 04:32:31] [build-err] A fatal error occurred: Exit status 1 from command: [/opt/dist/csharp/tools/autobuild.sh]
[2020-12-02 04:32:31] [ERROR] Spawned process exited abnormally (code 2; tried to run: [/opt/work/lgtm-workspace/lgtm/extract.sh])
A fatal error occurred: Exit status 2 from command: [/opt/work/lgtm-workspace/lgtm/extract.sh]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions