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

7.0.103 source build regression? #3262

Closed
alucryd opened this issue Feb 17, 2023 · 4 comments
Closed

7.0.103 source build regression? #3262

alucryd opened this issue Feb 17, 2023 · 4 comments
Labels
area-build Improvements in source-build's own build process untriaged

Comments

@alucryd
Copy link

alucryd commented Feb 17, 2023

Hi guys, building the latest 7.0 release fails on Arch Linux without any change to our build recipe, did anything change on your end?

Full build log here: https://build.alucryd.xyz/#/builders/257/builds/342/steps/9/logs/stdio
Build recipe: https://github.com/archlinux/svntogit-community/blob/packages/dotnet-core/trunk/PKGBUILD

@marcpopMSFT
Copy link
Member

@dotnet/source-build-internal

@lbussell lbussell transferred this issue from dotnet/installer Feb 17, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added area-build Improvements in source-build's own build process untriaged labels Feb 17, 2023
@lbussell
Copy link
Contributor

Hi @alucryd, this error happens when the RID for the .NET SDK doesn't match the RID for the packages in the Private.SourceBuilt.Artifacts archive. Starting with .NET 7.0.101, our artifacts also no longer include portable packages due to #3027 (our 7.0 artifacts are built with CentOS 8).

It appears your build definition isn't using the Arch Linux version of the 7.0.102 .NET SDK to build 7.0.103. Is that correct? If so, the build is probably using the Microsoft-built SDK which is always portable, which doesn't match up with our artifacts. Adding the --bootstrap argument to prep.sh might unblock you for this month. The option causes the script to automatically download portable versions of non-portable packages in the Private.SourceBuilt.Artifacts archive. You would add the option here: https://github.com/archlinux/svntogit-community/blob/packages/dotnet-core/trunk/PKGBUILD#L124

#3222 should eliminate the need for the extra argument, and it should land in the next .NET source-build release.

@alucryd
Copy link
Author

alucryd commented Feb 21, 2023

Hi @alucryd, this error happens when the RID for the .NET SDK doesn't match the RID for the packages in the Private.SourceBuilt.Artifacts archive. Starting with .NET 7.0.101, our artifacts also no longer include portable packages due to #3027 (our 7.0 artifacts are built with CentOS 8).

It appears your build definition isn't using the Arch Linux version of the 7.0.102 .NET SDK to build 7.0.103. Is that correct?

That's correct, I had a lot of issues in the past when bootstrapping using our own previous build, switching to yours was a lot smoother. I can give ours another try though if that's the preferred way.

If so, the build is probably using the Microsoft-built SDK which is always portable, which doesn't match up with our artifacts. Adding the --bootstrap argument to prep.sh might unblock you for this month. The option causes the script to automatically download portable versions of non-portable packages in the Private.SourceBuilt.Artifacts archive. You would add the option here: https://github.com/archlinux/svntogit-community/blob/packages/dotnet-core/trunk/PKGBUILD#L124

#3222 should eliminate the need for the extra argument, and it should land in the next .NET source-build release.

Thank you, will give --bootstrap a try, and then explore bootstrapping with our own previous package again later on.

@alucryd
Copy link
Author

alucryd commented Feb 21, 2023

That did the trick, thanks!

@alucryd alucryd closed this as completed Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-build Improvements in source-build's own build process untriaged
Projects
None yet
Development

No branches or pull requests

3 participants