termux-pacman / glibc-packages

Glibc packages for termux
MIT License
134 stars 19 forks source link

[Bug]: locale-gen Bad system call #242

Closed spz2020 closed 6 months ago

spz2020 commented 6 months ago

Problem description

locale-gen zh_CN.UTF-8 Generating locales... en_US.UTF-8... done zh_CN.GB18030... done zh_CN.GBK... done zh_CN.UTF8.../data/data/com.termux/files/usr/glibc/bin/locale-gen: line 41: 20473 Bad system call localedef --no-archive -i $input -c -f $charset -A /data/data/com.termux/files/usr/glibc/share/locale/locale.alias $locale

System information

termux-info:

Termux Variables:
TERMUX_API_APP__VERSION_NAME=0.50.1+3035f0a
TERMUX_APP_PACKAGE_MANAGER=pacman
TERMUX_APP__AM_SOCKET_SERVER_ENABLED=true
TERMUX_APP__APK_PATH=/data/app/~~rXzLiacmu4gqO117Um3CwQ==/com.termux-TPg_dWnG0Sub6mftt-wwew==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__FILES_DIR=/data/user/0/com.termux/files
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_MANAGER=apt
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PACKAGE_VARIANT=apt-android-7
TERMUX_APP__PID=11876
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c17,c258,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c17,c258,c512,c768
TERMUX_APP__TARGET_SDK=28
TERMUX_APP__UID=10529
TERMUX_APP__USER_ID=0
TERMUX_APP__VERSION_CODE=118
TERMUX_APP__VERSION_NAME=0.118.0+2f40df9
TERMUX_MAIN_PACKAGE_FORMAT=pacman
TERMUX_VERSION=0.118.0+2f40df9
TERMUX__USER_ID=0
Packages CPU architecture:
arm
Subscribed repositories:
# /data/data/com.termux/files/usr/etc/pacman.conf
[main]
Usage = All
Server = https://service.termux-pacman.dev/main/arm
Server = https://s3.amazonaws.com/termux-pacman.us/main/arm
[x11]
Usage = All
Server = https://service.termux-pacman.dev/x11/arm
Server = https://s3.amazonaws.com/termux-pacman.us/x11/arm
[root]
Usage = All
Server = https://service.termux-pacman.dev/root/arm
Server = https://s3.amazonaws.com/termux-pacman.us/root/arm
[tur]
Usage = All
Server = https://service.termux-pacman.dev/tur/arm
Server = https://s3.amazonaws.com/termux-pacman.us/tur/arm
[tur-continuous]
Usage = All
Server = https://service.termux-pacman.dev/tur-continuous/arm
Server = https://s3.amazonaws.com/termux-pacman.us/tur-continuous/arm
[tur-multilib]
Usage = All
Server = https://service.termux-pacman.dev/tur-multilib/arm
Server = https://s3.amazonaws.com/termux-pacman.us/tur-multilib/arm
[gpkg]
Usage = All
Server = https://service.termux-pacman.dev/gpkg/arm
Server = https://s3.amazonaws.com/termux-pacman.us/gpkg/arm
[gpkg-dev]
Usage = All
Server = https://service.termux-pacman.dev/gpkg-dev/arm
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
12
Kernel build information:
Linux localhost 4.14.186+ #1 SMP PREEMPT Tue Nov 28 22:29:36 CST 2023 armv8l GNU/Linux
Device manufacturer:
OPPO
Device model:
PDCM00
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=
Installed termux plugins:
com.termux.api versionCode:51
Maxython commented 6 months ago

Run the following command and send the glibc-runner-debug-strace-*.log file:

grun -d 4 -n locale-gen

I also noticed that you are using the gpkg and gpkg-dev repositories, which is not acceptable as it may break some functions due to installing packages with different settings. Please ensure that all glibc-based packages are installed from the gpkg repo. Run the following command to verify this (should return nothing):

pacman -Sl gpkg-dev | grep '\[installed\]'
spz2020 commented 6 months ago

Okay, it's my problem

Maxython commented 6 months ago

Okay, it's my problem

Everything is fine. Feel free to ask for help if any problems arise.