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

[BUG] Failed to build blazesym #148

Open
LeifYoung opened this issue Nov 21, 2024 · 0 comments
Open

[BUG] Failed to build blazesym #148

LeifYoung opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@LeifYoung
Copy link

Describe the bug
When build blazesym with command

cargo build --features=cheader

an error occurred, here are the error log

Compiling blazesym v0.1.0 (/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym)
error: failed to run custom build command for `blazesym v0.1.0 (/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym)`

Caused by:
  process didn't exit successfully: `/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/target/debug/build/blazesym-9f0c1bf552a4b816/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test.c
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-no-debug.bin
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test.c
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-dwarf-v4.bin
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.ld
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.c
  cargo:rerun-if-changed=/home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.bin

  --- stderr
  thread 'main' panicked at build.rs:88:6:
  failed to run `cc`: `cc -gdwarf-4 -T /home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.ld -Wl,--build-id=none -O0 -nostdlib /home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.c -o /home/ubuntu/WorkSpace/QEMU-SCE/shared/ebpf/bpf-developer-tutorial/src/third_party/blazesym/data/test-gsym.bin` reported non-zero exit-status (1): /usr/bin/ld: discarded output section: `.got.plt'
  collect2: error: ld returned 1 exit status
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • OS: Ubuntu 20.04 linux-6.1 aarch64

Could you please help me with that? Thanks a lot.

@LeifYoung LeifYoung added the bug Something isn't working label Nov 21, 2024
@yunwei37 yunwei37 added the help wanted Extra attention is needed label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants