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

Linux Image Fails for Certain Targets Due to Migration from Kernel 5.x to 6.x #1094

Closed
4 of 11 tasks
Alexhuszagh opened this issue Oct 24, 2022 · 0 comments · Fixed by #1095
Closed
4 of 11 tasks

Linux Image Fails for Certain Targets Due to Migration from Kernel 5.x to 6.x #1094

Alexhuszagh opened this issue Oct 24, 2022 · 0 comments · Fixed by #1095
Assignees
Labels
A-powerpc Area: PowerPC targets A-riscv Area: riscv targets A-sparc Area: sparc targets breaking change bug container-images

Comments

@Alexhuszagh
Copy link
Contributor

Alexhuszagh commented Oct 24, 2022

Checklist

Describe your issue

Builds for certain images, such as sparc64-unknown-linux-gnu, have failed due to a failure to find candidate kernel install versions in the latest repositories. This causes wildcard expansion to fail, which then means max_kernel_version is called with no suitable candidates: an empty string.

The offending lines are of the following:

powerpc64)
    # there is no stable port
    arch=ppc64
    # https://packages.debian.org/en/sid/linux-image-powerpc64
    kernel='5.*-powerpc64'
    debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
    debsource="${debsource}\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
    # sid version of dropbear requires these dependencies
    deps=(libcrypt1:"${arch}")
    ;;
riscv64)
    kernel="5.*-riscv64"
    debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
    debsource="${debsource}\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
    deps=(libcrypt1:"${arch}")
    ;;
sparc64)
    # there is no stable port
    # https://packages.debian.org/en/sid/linux-image-sparc64
    kernel='5.*-sparc64'
    debsource="deb http://ftp.ports.debian.org/debian-ports unstable main"
    debsource="${debsource}\ndeb http://ftp.ports.debian.org/debian-ports unreleased main"
    # sid version of dropbear requires these dependencies
    deps=(libcrypt1:"${arch}")
    ;;

Changing all wildcards to accept 5.x or 6.x should fix this issue.

What target(s) are you cross-compiling for?

powerpc64-unknown-linux-gnu, riscv64gc-unknown-linux-gnu, sparc64-unknown-linux-gnu

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.4 (e23ef05)

Additional information / notes

This will be a breaking change, but it's unavoidable really. Luckily, we're in the middle of migrating from 0.2.4 to 0.3.0, so a breaking change is acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-powerpc Area: PowerPC targets A-riscv Area: riscv targets A-sparc Area: sparc targets breaking change bug container-images
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant