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
{{ message }}
Repository navigation
[ArPow] Build has a hard dependency on libunwind, which is not available on RHEL 8 #2477
I can't build installer commit 28be3e9a006d90d8c6e87d4353b77882829df718 on RHEL 8:
dotnet-28be3e9a006d90d8c6e87d4353b77882829df718-x64-bootstrap/src/source-build-reference-packages.0aba30b468e666bdc3cfc6c36a8b417a0f6fb62a/artifacts/source-build/self/package-cache/runtime.linux-x64.microsoft.netcore.ilasm/6.0.0-rc.2.21459.6/runtimes/linux-x64/native/ilasm: error while loading shared libraries: libunwind-x86_64.so.8: cannot open shared object file: No such file or directory
This SDK prebuilt nuget package has a hard dependency on libunwind, which is not available in RHEL 8.
Is there some way I can rebuild this to avoid this hard dependency?
Is there a longer term fix we can use to avoid depending on libunwind for our bootstrap builds?
Activity
ghost added
area-buildImprovements in source-build's own build process
changed the title [-][ArPow] Build has a hard dependency on libunwind[/-][+][ArPow] Build has a hard dependency on libunwind, which is not available on RHEL 8[/+]on Sep 26, 2021
This SDK has a hard dependency on libunwind, which is not available in RHEL 8.
Is there some way I can rebuild this to avoid this hard dependency?
Is there a longer term fix we can use to avoid depending on libunwind for our bootstrap builds?
We don't have bootstrapping figured out here since there is only one build (i.e. no production build to generate the tarball). I think we need a way to build without previously source-built packages for an initial bootstrap build that will generate previously source-built packages for subsequent builds. I'll investigate and report back here.
Looking at this closer, it appears that we should be able to bootstrap off of previously source-built packages. The problem here is that the current version of previously source-built packages wasn't built with this change in runtime: dotnet/runtime#58911. This should get fixed in the next update of previously source-built packages here: dotnet/installer#12161. I verified that the version of ilasm in this package does not have a hard dependency on libunwind.
@dseefeld Thanks! That wont address the GLIBC ABI change, though, will it? AFAICS, RHEL 7 will remain broken as we discovered in dotnet/installer#12141.
Have you considered whether it might be a good idea to take the previously source-built packages, and replace all the portable bits in it with the real portable bits published on the in-development .NET nuget feeds?
Have you considered whether it might be a good idea to take the previously source-built packages, and replace all the portable bits in it with the real portable bits published on the in-development .NET nuget feeds?
Have you considered whether it might be a good idea to take the previously source-built packages, and replace all the portable bits in it with the real portable bits published on the in-development .NET nuget feeds?
I see what you're saying. I was originally looking at creating a bootstrap version of previously source-built packages. I'll continue on that. Thanks!
Activity
omajid commentedon Sep 26, 2021
I tried replacing
runtime.linux-x64.microsoft.netcore.ilasmandruntime.linux-x64.microsoft.netcore.ildasmwith versions downloaded from https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json but it leads to errors in the build:Is this a known issue? Any idea how to work around this?
[-][ArPow] Build has a hard dependency on libunwind[/-][+][ArPow] Build has a hard dependency on libunwind, which is not available on RHEL 8[/+]omajid commentedon Sep 26, 2021
Any thoughts, @crummel @dseefeld @lbussell @MichaelSimons ?
dseefeld commentedon Sep 27, 2021
We don't have bootstrapping figured out here since there is only one build (i.e. no production build to generate the tarball). I think we need a way to build without previously source-built packages for an initial bootstrap build that will generate previously source-built packages for subsequent builds. I'll investigate and report back here.
omajid commentedon Sep 27, 2021
Adding
/p:EnablePackageValidation=falseto runtime'sSourceBuild.propsseems to have done the trick.Thanks, @tmds for the idea!
dseefeld commentedon Sep 28, 2021
Looking at this closer, it appears that we should be able to bootstrap off of previously source-built packages. The problem here is that the current version of previously source-built packages wasn't built with this change in runtime: dotnet/runtime#58911. This should get fixed in the next update of previously source-built packages here: dotnet/installer#12161. I verified that the version of
ilasmin this package does not have a hard dependency on libunwind.omajid commentedon Sep 28, 2021
@dseefeld Thanks! That wont address the GLIBC ABI change, though, will it? AFAICS, RHEL 7 will remain broken as we discovered in dotnet/installer#12141.
Have you considered whether it might be a good idea to take the previously source-built packages, and replace all the portable bits in it with the real portable bits published on the in-development .NET nuget feeds?
tmds commentedon Sep 28, 2021
imo that is the way to go, see dotnet/installer#12141 (comment).
dseefeld commentedon Sep 28, 2021
I see what you're saying. I was originally looking at creating a bootstrap version of previously source-built packages. I'll continue on that. Thanks!
dseefeld commentedon Oct 4, 2021
Fixed by dotnet/installer#12222