Skip to content

Crashes on Mac M1 under Linux Asahi  #35

@fmatosqg

Description

@fmatosqg

I'm trying to run pre-build aapt downloaded from this repository, but no success.

Android 9 version crashes with

fmatos@fabio-mac:~/Downloads -$ ./aapt2\(1\) compile file
libc: pthread_create failed: couldn't mprotect TLS: Invalid argument
failed to initialize TLS: Invalid argument
libc: failed to initialize TLS: Invalid argument
[1]    29469 IOT instruction (core dumped)  ./aapt2\(1\) compile file

and Andrioid 11 crashes with

fmatos@fabio-mac:~/Downloads -$ ./aapt2 compile file
[1]    29492 segmentation fault  ./aapt2 compile file
fmatos@fabio-mac:~/Downloads 134$ uname -a
Linux fabio-mac 5.19.0-rc5-asahi-7-1-ARCH #1 SMP PREEMPT_DYNAMIC Sun, 17 Jul 2022 12:30:54 +0000 aarch64 GNU/Linux
fmatos@fabio-mac:~/Downloads -$ file aap*
aapt2:                      ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, BuildID[md5/uuid]=94f64bdde4f6b0610497708a2afc9d67, stripped
aapt2(1):                   ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, BuildID[md5/uuid]=64fe4b44d1e7d9b1ae78a1d376f81859, stripped

For comparison, ls downloaded from Arch's AUR gives me

fmatos@fabio-mac:~/Downloads -$ file /usr/bin/ls
/usr/bin/ls: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=a415f1ababdad1abf47af006ce591343a4960a1d, for GNU/Linux 3.7.0, stripped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions