-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
runtime-community: Failure to build System.Security.Cryptography.Native/opensslshim.c due to overflow in expression with type long #104333
Comments
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
cc @sbomer, looks related to the changes for ARM32 64-bit time_t support. |
I found it in the official rolling build but I noticed it first in my PR where I was fixing a build failure in armv6: #102403 Here's the failing CI leg: https://dev.azure.com/dnceng-public/public/_build/results?buildId=728642&view=logs&j=db8e93a1-262e-5037-1aaf-a14621311ed2&t=df0c0844-666d-543b-d576-d26fca1aab72&l=3498 |
We now require a 64-bit time_t, even on ARM32. This adds a static_assert to ensure time_t is 64-bit, and if not, produce a compile time error. This also uses a constant instead of `(time_t)INT_MAX + 1` since, if that overflows, it is UB because time_t is a signed type. Contributes to #104333
I think we should move this back to Infrastructure. Based on a conversation in #104368, the runtime now requires systems that have a 64-bit |
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
I'm seeing the same failure but happening in the
|
@carlossanlop I think you can change the The best I could do is improve the error message, but the issue remains that the image used in CI is not a supported configuration anymore. |
Until the CI image is fixed: #104333
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=728088
Build error leg or test failing:
runtime-community
-linux-armv6 Release AllSubsets_Mono
Error Message
main
: https://dev.azure.com/dnceng-public/public/_build/results?buildId=728088&view=resultslinux-armv6 Release AllSubsets_Mono
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=728088
Error message validated:
[overflow in expression; result is -2147483648 with type 'long' [-Werror,-Winteger-overflow] time_t timeVal = (time_t)INT_MAX + 1
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/2/2024 10:30:44 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: