setup-build-env: Fix cross compilation toolchain#179
Merged
theihor merged 2 commits intolibbpf:mainfrom Apr 17, 2025
Merged
Conversation
theihor
added a commit
to kernel-patches/vmtest
that referenced
this pull request
Apr 17, 2025
0859390 to
67e2ae9
Compare
Allow action caller to skip building pahole by passing 'none' as the target revision. See: https://lore.kernel.org/dwarves/8f5711430e4f9bb02fd06d3a5b00d46d8643fea1@linux.dev/ Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
d163719 to
bc6d680
Compare
theihor
added a commit
to kernel-patches/vmtest
that referenced
this pull request
Apr 17, 2025
Cross compilation is broken due to apt packages conflicts. Switch to native builds for now. See: libbpf/ci#179 Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
theihor
added a commit
to kernel-patches/vmtest
that referenced
this pull request
Apr 17, 2025
Cross compilation is broken due to apt packages conflicts. Switch to native builds for now. See: libbpf/ci#179 Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
BPF CI got broken due to apt errors when installing cross compilers: * https://github.com/kernel-patches/bpf/actions/runs/14519065074/job/40735249827 dpkg --add-architecture now breaks apt config. Looks like there were changes in Ubuntu that require migrating to deb822 [1][2] format of apt package lists. In our case not only target arch repos need to be added, but also default /etc/apt/sources.list.d/ubuntu.sources needs to be modified. The host architecture has to be whitelisted, otherwise apt attempts fetching target arch packages from archive and security, and they are not there. Another issue was with libelf-dev:s390x dependencies. Current linux-libc-dev breaks linux-libc-dev:s390x, and unfortunately we need both for a proper cross-compilation build. Using aptituide I found that downgrading linux-libc-dev:amd64 resolves this conflict. [1] actions/runner-images#10901 [2] https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-deb822-sources-management Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
bc6d680 to
98daeca
Compare
Contributor
Author
|
Apparently, downgrade of linux-libc-dev:amd64 helps: https://github.com/kernel-patches/vmtest/actions/runs/14520463948/job/40756555954 Merging this in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.