facebookexperimental / facebookexperimental/ExtendedAndroidTools

error: unknown target triple 'unknown'

Aperta
#130 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Makefile
Stelle
266
Fork
99
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I successfully compiled bpftrace using the following method:

> $ ./scripts/build-docker-image.sh && ./scripts/run-docker-build-env.sh
> $ make bpftrace STATIC_LINKING=true LLVM_BPF_ONLY=true NDK_ARCH=arm64 BUILD_TYPE=Release

the information of bpftrace is as follows:

> $ file out/android/arm64/bin/bpftrace
> out/android/arm64/bin/bpftrace: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, BuildID[sha1]=cce10138c4fd29d85c8a0563f76541ae8977cfb5, stripped

> $readelf -d out/android/arm64/bin/bpftrace
> Dynamic section at offset 0x4b25e98 contains 26 entries:
> Tag Type Name/Value
> 0x0000000000000001 (NEEDED) Shared library: [libdl.so]
> 0x0000000000000001 (NEEDED) Shared library: [libm.so]
> 0x0000000000000001 (NEEDED) Shared library: [libz.so]
> 0x0000000000000001 (NEEDED) Shared library: [libc.so]
> 0x000000000000001e (FLAGS) BIND_NOW
> 0x000000006ffffffb (FLAGS_1) Flags: NOW PIE
> .....
> .....

the bpftrace binary can run normally on the android system,but it can't executed with commands and reports error "unknown target triple", as follow:

> $ bpftrace -e 'tracepoint:tcp:tcp_probe { @[comm] = count();}'
> error: unknown target triple 'unknown'

How should I solve this problem ?
Thanks.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.