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

build.yml for Android xmake build #234

Closed
wants to merge 1 commit into from

Conversation

guri87-byte
Copy link
Contributor

@guri87-byte guri87-byte commented Oct 31, 2023

Covering Android builds for armv7a and x86_64.

Currently failing with errors mentioned by several users (libbpf/bpftool#120)

Getting the error at compile stage:

[ 12%]: compiling.bpf uprobe.bpf.c
[ 12%]: compiling.bpf bootstrap.bpf.c
[ 12%]: compiling.bpf minimal_legacy.bpf.c
libbpf: map 'my_pid_map': unsupported map linkage static.
Error: failed to open BPF object file: Operation not supported
error: execv(bpftool gen skeleton build/.gens/minimal_legacy/android/x86_64/release/rules/bpf/minimal_legacy.bpf.o) failed(161)
Error: Process completed with exit code 255

covering Android builds for armv7a and x86_64.
@anakryiko
Copy link
Member

@waruqi, can you please help users with xmake-related setup and problems? Thanks!

@waruqi
Copy link
Contributor

waruqi commented Nov 2, 2023

try xmake f -p android -c --require-bpftool=y?

This seems to be the same issue as this one
#130

@waruqi
Copy link
Contributor

waruqi commented Nov 2, 2023

I have fixed it. see this patch. #236

@anakryiko
Copy link
Member

added as part of #236, closing

@anakryiko anakryiko closed this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants