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

Build Failure on MacOS ARM64 Rid issue with sqlite #90434

Closed
mikelle-rogers opened this issue Aug 11, 2023 · 20 comments
Closed

Build Failure on MacOS ARM64 Rid issue with sqlite #90434

mikelle-rogers opened this issue Aug 11, 2023 · 20 comments
Labels
area-Meta Known Build Error Use this to report build issues in the .NET Helix tab tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Milestone

Comments

@mikelle-rogers
Copy link
Member

mikelle-rogers commented Aug 11, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Build error leg or test failing: Build / Libraries Build osx arm64 Debug / Restore and Build Product
Pull request: #90049

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Error message validated: error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/11/2023 10:14:34 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@mikelle-rogers mikelle-rogers added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 11, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 11, 2023
@ghost
Copy link

ghost commented Aug 11, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Build error leg or test failing: Build / Libraries Build osx arm64 Debug / Restore and Build Product
Pull request: #90049

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: mikelle-rogers
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, Known Build Error

Milestone: -

@ghost
Copy link

ghost commented Aug 14, 2023

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Build error leg or test failing: Build / Libraries Build osx arm64 Debug / Restore and Build Product
Pull request: #90049

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Error message validated: error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/11/2023 10:14:34 PM UTC

Report

Build Definition Step Name Console log Pull Request
372110 dotnet/runtime Restore and Build Product Log #90053
372015 dotnet/runtime Restore and Build Product Log #90253
371832 dotnet/runtime Build product Log
371810 dotnet/runtime Restore and Build Product Log
371758 dotnet/runtime Restore and Build Product Log #90429
371425 dotnet/runtime Restore and Build Product Log #90049

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 6 6
Author: mikelle-rogers
Assignees: -
Labels:

blocking-clean-ci, untriaged, area-Extensions-Logging, Known Build Error

Milestone: -

@ViktorHofer
Copy link
Member

@elinor-fung based on this issue, looks like the added NoWarn from #88827 (comment) doesn't work anymore. Please take a look.

@tarekgh tarekgh added this to the 9.0.0 milestone Aug 14, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 14, 2023
@elinor-fung
Copy link
Member

elinor-fung commented Aug 14, 2023

@dsplaisted Any ideas why NoWarn occasionally doesn't disable the warning? Am I not understanding how this should work?

It must be disabling it most of the time, otherwise we'd have a lot more than those 6 hits - every build would be hitting this.

@dsplaisted
Copy link
Member

No, I don't know why that would be happening.

@rainersigwald @dotnet/msbuild Any idea why a NoWarn for a NETSDK warning code would seem to not always apply? (WarnAsError is enabled here).

@tarekgh
Copy link
Member

tarekgh commented Aug 15, 2023

It is interesting that this looks like it is happening on osx only. does this ring a bill to anyone? I want to point out that the number of hits is climbing too.

@elinor-fung
Copy link
Member

It also looks like it only started happening after switching the runtime repo to build with .NET 8 Preview 7 instead of .NET 8 Preview 6 (the warning was added in Preview 6): #90014

@Forgind
Copy link
Member

Forgind commented Aug 15, 2023

I don't think MSBuild's warning handling is any different between operating systems. My first thought was that MSBuild ignores NoWarn (for its own warnings, anyway) if MSBuildWarningsAsMessages already has a value or if you don't import Microsoft.Common.CurrentVersion.targets for whatever reason. It's possible MSBuild would mishandle it if you specify both WarnAsError and NoWarn for the same warning code...but I'm not 100% sure on that one.

Do you have any OS-specific logic that could lead to not importing Microsoft.Common.targets?

@tarekgh
Copy link
Member

tarekgh commented Aug 15, 2023

what is the next step here?

@JanKrivanek
Copy link
Member

This looks strikingly similar to dotnet/msbuild#8814 (fixed by dotnet/msbuild#8954) - basically there was a concurrency issue that could in some cases cause some postprocessing of warnings to be skipped.

Can this be transfered to dotnet/msbuild? Or if you need this issue for other tracking as well - please create a new issue in dotnet/msbuild.

Please also attach or link binlog of the failed run that ignored the NoWarn

@ghost
Copy link

ghost commented Aug 16, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Build error leg or test failing: Build / Libraries Build osx arm64 Debug / Restore and Build Product
Pull request: #90049

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=371425
Error message validated: error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/11/2023 10:14:34 PM UTC

Report

Build Definition Step Name Console log Pull Request
376075 dotnet/runtime Restore and Build Product Log #90642
375764 dotnet/runtime Build product Log
374242 dotnet/runtime Build product Log
373976 dotnet/runtime Restore and Build Product Log #90568
373447 dotnet/runtime Restore and Build Product Log #90455
373174 dotnet/runtime Restore and Build Product Log #90526
372110 dotnet/runtime Restore and Build Product Log #90053
372015 dotnet/runtime Restore and Build Product Log #90253
371832 dotnet/runtime Build product Log
371810 dotnet/runtime Restore and Build Product Log
371758 dotnet/runtime Restore and Build Product Log #90429
371425 dotnet/runtime Restore and Build Product Log #90049

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 12 12
Author: mikelle-rogers
Assignees: -
Labels:

area-Meta, blocking-clean-ci, Known Build Error

Milestone: 9.0.0

@tarekgh tarekgh added the tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly label Aug 16, 2023
@tarekgh
Copy link
Member

tarekgh commented Aug 16, 2023

@JanKrivanek I have created the issue dotnet/msbuild#9133 and attached the binlog there. We need to keep this runtime issue open for a while as CI test building will continue to fail till, we get the new SDK having the fixed msbuild.

This is not specific to MacOS as we have started to see the failures on Linux_musl arm64. We are seeing the failures with arm64 builds only though.

@JanKrivanek
Copy link
Member

Thank you @tarekgh
We'll take it through triage
The arch might actually be just a timing factor in a concurency issue

@kasperk81
Copy link
Contributor

fix is in installer release 8.0.100-rc.2.23425.1

@ViktorHofer
Copy link
Member

We can't upgrade to an RC1 SDK yet as our .NET SDK upgrade policy requires signed builds. We made a few exceptions in the past but I don't think this case justifies that. cc @mmitche

@carlossanlop
Copy link
Member

carlossanlop commented Sep 18, 2023

FYI I am seeing this also happening in x64 and in release/8.0:

https://github.com/dotnet/runtime/pull/91918/checks?check_run_id=16837643737

Queue: Build Libraries Build osx x64 Debug
Failure message:

.dotnet/sdk/8.0.100-preview.7.23376.3/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(267,5): error NETSDK1206: (NETCORE_ENGINEERING_TELEMETRY=Build)
Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3. In .NET 8.0 and higher,
assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.

@tarekgh
Copy link
Member

tarekgh commented Sep 18, 2023

do we know if sdk/8.0.100-preview.7.23376.3 has the msbuild fix?

@JanKrivanek
Copy link
Member

do we know if sdk/8.0.100-preview.7.23376.3 has the msbuild fix?

It doesn't have it.
Fix was merged and inserted on Aug/24, v8.0.100-pre was created on Aug/8

@build-analysis build-analysis bot removed this from the 9.0.0 milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the 9.0.0 milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Feb 16, 2024
@jeffschwMSFT
Copy link
Member

removing blocking-clean-ci as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@elinor-fung
Copy link
Member

Closing, since both release/8.0[-staging] and main are using SDKs that have the fix now:

runtime/global.json

Lines 2 to 3 in 91b2946

"sdk": {
"version": "8.0.101",

runtime/global.json

Lines 2 to 3 in 50c0153

"sdk": {
"version": "9.0.100-alpha.1.23615.4",

@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Meta Known Build Error Use this to report build issues in the .NET Helix tab tracking-external-issue The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Projects
None yet
Development

No branches or pull requests