termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
745 stars 161 forks source link

gentoo distro show error message : scanelf: terminated by signal 31 ...... Bad system call #184

Closed zxq432 closed 2 years ago

zxq432 commented 2 years ago

Problem description

>>> Completed installing sys-apps/portage-3.0.23 into /var/tmp/portage/sys-apps/portage-3.0.23/image

 * Final size of build directory: 15088 KiB (14.7 MiB)
 * Final size of installed tree:  20894 KiB (20.4 MiB)

xargs: scanelf: terminated by signal 31
 * Verifying compiled files in /usr/lib/python3.9/site-packages
/var/tmp/portage/._portage_reinstall_.uqcv0lou/bin/estrip: line 38: 32113 Bad system call         scanelf -yqRBF '#k%F' -k '.symtab' "${find_paths[@]}"
strip: aarch64-unknown-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version

>>> Installing (1 of 1) sys-apps/portage-3.0.23::gentoo

Steps to reproduce

 proot-distro install gentoo
 proot-distro login gentoo
 curl -LO http://distfiles.gentoo.org/experimental/prefix/arm/prefix-stage3-arm64-latest.tar.xz
 tar -C /data -xf prefix-stage3-arm64-latest.tar.xz
 mv /usr/bin/patch /usr/bin/patch.bk
 ln -s /data/gentoo64/usr/bin/patch /usr/bin/patch
 nano /etc/portage/make.conf   ;#   add '-xattr' to USE in the /etc/portage/make.conf.
 emerge -v1 patch
 rm /usr/bin/patch.bk
 emerge -v1 portage

Expected behavior

no such message: scanelf: terminated by signal

Additional information

$ termux-info
Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://grimler.se/termux-packages-24/ stable main
# science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
# game-repo (sources.list.d/game.list)
deb https://packages.termux.org/apt/termux-games games stable
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 4.14.116 #1 SMP PREEMPT Fri Aug 6 19:16:39 CST 2021 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
SPN-AL00
$
zxq432 commented 2 years ago

this is repeated in https://github.com/termux/proot/issues/187