facebookexperimental / facebookexperimental/ExtendedAndroidTools

error: unknown target triple 'unknown'

Ouverte
#130 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Makefile
Étoiles
266
Forks
99
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.