Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two subsequent build.sh runs produce error #62918

Closed
kant2002 opened this issue Dec 16, 2021 · 3 comments
Closed

Two subsequent build.sh runs produce error #62918

kant2002 opened this issue Dec 16, 2021 · 3 comments

Comments

@kant2002
Copy link
Contributor

Description

I run .\build.sh twice. First time build was success, second time it fails.

Reproduction Steps

rm -rf artifacts
./build.sh
./build.sh

Expected behavior

No errors after second run.

Actual behavior

/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/crossgen2.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/crossgen2.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.DependencyAnalysisFramework.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.DependencyAnalysisFramework.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.Diagnostics.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.Diagnostics.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.ReadyToRun.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.ReadyToRun.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.TypeSystem.ReadyToRun.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.TypeSystem.ReadyToRun.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner labels Dec 16, 2021
@ghost
Copy link

ghost commented Dec 16, 2021

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

I run .\build.sh twice. First time build was success, second time it fails.

Reproduction Steps

rm -rf artifacts
./build.sh
./build.sh

Expected behavior

No errors after second run.

Actual behavior

/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/crossgen2.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/crossgen2.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.DependencyAnalysisFramework.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.DependencyAnalysisFramework.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.Diagnostics.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.Diagnostics.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.ReadyToRun.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.ReadyToRun.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]
/opt/dotnet-sdk-bin-6.0/sdk/6.0.100/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File '~/runtime/artifacts/bin/coreclr/Linux.x64.Debug/PDB/ILCompiler.TypeSystem.ReadyToRun.pdb' is not added because the package already contains file 'runtimes/linux-x64/lib/net7.0/../../../../tools/ILCompiler.TypeSystem.ReadyToRun.pdb' [~/runtime/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj]

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: kant2002
Assignees: -
Labels:

area-Infrastructure-coreclr, untriaged

Milestone: -

@ghost ghost added this to Untriaged in Infrastructure Backlog Dec 16, 2021
@JoshSchreuder
Copy link
Contributor

JoshSchreuder commented Dec 31, 2021

Removing PDBs in artifacts\bin\coreclr\[runtime]\PDB seems to workaround this

EDIT: Actually maybe not.

@agocke agocke added this to the Future milestone Jul 1, 2022
@agocke agocke removed the untriaged New issue has not been triaged by the area owner label Jul 1, 2022
@ivdiazsa
Copy link
Member

This issue might have been already fixed at some point. I've been building multiple times in a row for a while now and it doesn't seem to fail anymore. Closing for now. Feel free to reopen if it reproduces again at some point.

Infrastructure Backlog automation moved this from Untriaged to Closed Oct 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants