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

DLPX-93264 24.04 LTS upgrade: kernel builds fail due to rustc conflict #21

Conversation

palash-gandhi
Copy link

@palash-gandhi palash-gandhi commented Jan 29, 2025

Problem:

Kernel builds using a 24.04 DE-based buildserver fail with:

23:15:00  Correcting dependencies...Starting pkgProblemResolver with broken count: 1
23:15:00  Starting 2 pkgProblemResolver with broken count: 1
23:15:00  Investigating (0) delphix-rust:amd64 < 1.0.0-1delphix.2025.01.23.02.41 @ii K Ib >
23:15:00  Broken delphix-rust:amd64 Conflicts on rustc:amd64 < none -> 1.75.0+dfsg0ubuntu1-0ubuntu7.1 @un uN >
23:15:00    Considering rustc:amd64 -1 as a solution to delphix-rust:amd64 1
23:15:00    Added rustc:amd64 to the remove list
23:15:00    Conflicts//Breaks against version 1.75.0+dfsg0ubuntu1-0ubuntu7 for rustc but that is not InstVer, ignoring
23:15:00    Conflicts//Breaks against version 1.74.1+dfsg0ubuntu1-0ubuntu13 for rustc-1.74 but that is not InstVer, ignoring
23:15:00    Fixing delphix-rust:amd64 via keep of rustc:amd64
23:15:00  Investigating (0) bindgen-0.65:amd64 < none -> 0.65.1+dfsg0-0ubuntu1 @un uN Ib >
23:15:00  Broken bindgen-0.65:amd64 Depends on rustc:amd64 < none | 1.75.0+dfsg0ubuntu1-0ubuntu7.1 @un uH > (>= 1.72.0+dfsg)
23:15:00    Considering rustc:amd64 -1 as a solution to bindgen-0.65:amd64 0
23:15:00    Holding Back bindgen-0.65:amd64 rather than change rustc:amd64
23:15:00  Investigating (0) linux-build-deps:amd64 < 6.8.0-47.47 @iU K Nb Ib >
23:15:00  Broken linux-build-deps:amd64 Depends on bindgen-0.65:amd64 < none | 0.65.1+dfsg0-0ubuntu1 @un uH >
23:15:00    Considering bindgen-0.65:amd64 0 as a solution to linux-build-deps:amd64 -2
23:15:00    Removing linux-build-deps:amd64 rather than change bindgen-0.65:amd64
23:15:00  Done
23:15:00   Done
...
...
23:15:08  mk-build-deps: Unable to install linux-build-deps at /usr/bin/mk-build-deps line 460.
23:15:08  mk-build-deps: Unable to install all build-dep packages
23:15:08  Error: failed command 'sudo mk-build-deps --install debian/control --tool apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes'

Example: https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/linux-pkg/job/os-upgrade/job/build-package/job/linux-kernel-generic/job/pre-push/48/consoleFull

On a DE-based buildserver delphix-rust's version is 1.0.0:

$ apt show delphix-rust
$ apt show delphix-rust
Package: delphix-rust
Version: 1.0.0-1delphix.2025.01.23.02.41
...
Provides: cargo, rust-gdb, rustc
Conflicts: cargo, rust-gdb, rustc

As I understand it, the problem is:

  • delphix-rust:amd64: Conflicts with rustc:amd64.
  • bindgen-0.65:amd64: Depends on rustc:amd64.
  • linux-build-deps:amd64: Depends on bindgen-0.65:amd64.

Prakash helped shed some light and the issue turned out to be that bindgen-0.65 required rustc >1.72 but since delphix-rust's version 1.0.0 was not going to satisfy the dependency. As such, apt tried to install rustc 1.75 which conflicted with delphix-rust.

Solution:

Change the version of delphix-rust to be the actual version of rustc supplied by the virtual package.

Testing

build-package: https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/linux-pkg/job/os-upgrade/job/build-package/job/delphix-rust/job/pre-push/63/console
This change can only be fully tested after merging this change, building a buildserver and finally building the kernel. There is currently no easy way to test this process pre-push for os-upgrade.

@palash-gandhi palash-gandhi force-pushed the dlpx/pr/palash-gandhi/30f6c40f-35c1-4d93-bfe9-acfd41db29a1 branch 2 times, most recently from 0c10369 to 4959c3f Compare January 30, 2025 19:06
@palash-gandhi palash-gandhi force-pushed the dlpx/pr/palash-gandhi/30f6c40f-35c1-4d93-bfe9-acfd41db29a1 branch from 4959c3f to aada0f3 Compare January 30, 2025 23:28
@palash-gandhi palash-gandhi changed the title 24.04 LTS upgrade: kernel builds fail due to rustc conflict DLPX-93264 24.04 LTS upgrade: kernel builds fail due to rustc conflict Jan 30, 2025
@palash-gandhi palash-gandhi marked this pull request as ready for review January 30, 2025 23:28
@palash-gandhi palash-gandhi enabled auto-merge (squash) January 30, 2025 23:47
@palash-gandhi palash-gandhi merged commit 6a83f07 into os-upgrade Jan 31, 2025
4 of 5 checks passed
@palash-gandhi palash-gandhi deleted the dlpx/pr/palash-gandhi/30f6c40f-35c1-4d93-bfe9-acfd41db29a1 branch January 31, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants