termux-pacman / pacman-for-termux

Special configured pacman for termux.
https://termux-pacman.dev
MIT License
64 stars 6 forks source link

installation on arm7 #15

Closed bart594 closed 2 years ago

bart594 commented 2 years ago

Hi,

im on arm7 (snapdragon 801) and during installation I got these errors

Installing collected packages: meson Successfully installed meson-0.59.3 WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/data/data/com.termux/files/usr/bin/python3 -m pip install --upgrade pip' command.

Installing pacman. The Meson build system Version: 0.59.3 Source dir: /data/data/com.termux/files/home/pacman-for-termux/pacman-arch Build dir: /data/data/com.termux/files/home/pacman-for-termux/pacman-arch/build Build type: native build Project name: pacman Project version: 6.0.0 C compiler for the host machine: cc (clang 13.0.0 "clang version 13.0.0") C linker for the host machine: cc ld.lld 13.0.0

meson.build:1:0: ERROR: Unknown linker(s): [['llvm-ar'], ['ar'], ['gar']] The following exception(s) were encountered: Running "llvm-ar --version" gave "[Errno 2] No such file or directory: 'llvm-ar'" Running "ar --version" gave "[Errno 2] No such file or directory: 'ar'" Running "gar --version" gave "[Errno 2] No such file or directory: 'gar'" A full log can be found at /data/data/com.termux/files/home/pacman-for-termux/pacman-arch/build/meson-logs/meson-log.txt

And here the log

Build started at 2021-10-24T15:37:21.900692

Main binary: /data/data/com.termux/files/usr/bin/python3 Build Options: Python system: Linux The Meson build system Version: 0.59.3 Source dir: /data/data/com.termux/files/home/pacman-for-termux/pacman-arch Build dir: /data/data/com.termux/files/home/pacman-for-termux/pacman-arch/build Build type: native build Project name: pacman Project version: 6.0.0 Sanity testing C compiler: cc Is cross compiler: False. Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64 Sanity check compile stdout: Sanity check compile stderr: Running test binary command: /data/data/com.termux/files/home/pacman-for-termux/pacman-arch/build/meson-private/sa> C compiler for the host machine: cc (clang 13.0.0 "clang version 13.0.0") C linker for the host machine: cc ld.lld 13.0.0

meson.build:1:0: ERROR: Unknown linker(s): [['llvm-ar'], ['ar'], ['gar']] The following exception(s) were encountered: Running "llvm-ar --version" gave "[Errno 2] No such file or directory: 'llvm-ar'" Running "ar --version" gave "[Errno 2] No such file or directory: 'ar'"

Maxython commented 2 years ago

This is not a problem from pacman, but from the clang compiler. Now, in termux, there is a global update of NDK-R23, because of this, compilation in termux is not stable.

But pacman is already added to the termux-packages repo, so you can install via apt (pkg).

pkg upd -y
pkg ins pacman -y