Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: After updating qemu-system-x86_64 returns CANNOT LINK EXECUTABLE "qemu-system-x86_64": library "libdw.so.1" not found and CANNOT LINK EXECUTABLE "qemu-system-x86_64": library "libasound.so" not found #23078

Open
NoteAfterNote opened this issue Jan 31, 2025 · 4 comments
Labels
bug report Something is not working properly

Comments

@NoteAfterNote
Copy link

NoteAfterNote commented Jan 31, 2025

Problem description

After updating Termux with "apt update" and "apt upgrade" "qemu-system-x86_64" needs the "libdw.so.1" and "libasound.so" libraries to work. After "apt install libdw jack" qemu-system-x86_64 worked.

What steps will reproduce the bug?

An earlier version of qemu-system-x86_64 is installed.

apt update; apt upgrade

~ $ qemu-system-x86_64 --version
CANNOT LINK EXECUTABLE "qemu-system-x86_64": library "libdw.so.1" not found
~ $

After "apt install libdw":
~ $ qemu-system-x86_64 --version
CANNOT LINK EXECUTABLE "qemu-system-x86_64": library "libasound.so" not found
~ $

After "apt install jack" qemu-system-x86_64 works:
~ $ qemu-system-x86_64 --version
QEMU emulator version 8.2.6
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers
~ $

"qemu-system-x86_64 -nographic" works too.

What is the expected behavior?

The latest version of qemu-system-x86_64 working.

System information

From termux-info:

TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
termux-tools version:
1.44.6
Android version:
10
Installed termux plugins:
com.termux.api versionCode:51
com.termux.gui versionCode:6
@NoteAfterNote NoteAfterNote added bug report Something is not working properly untriaged labels Jan 31, 2025
@Biswa96
Copy link
Member

Biswa96 commented Jan 31, 2025

Which qemu package did you install? There are two types of qemu packages - headless and with X.

@NoteAfterNote
Copy link
Author

Which qemu package did you install? There are two types of qemu packages - headless and with X.

@Biswa96 the earlier version of qemu-system-x86_64 that was already installed was "apt install qemu-system-x86_64". The headless version is not used or installed.

@Biswa96
Copy link
Member

Biswa96 commented Jan 31, 2025

It seems that qemu-system-x86_64 in x11-packages repository depends in libdw and libasound. I am not sure if those dependencies should be added in build script or be disabled with a build option. Please wait for others.

$ llvm-readelf -d data/data/com.termux/files/usr/bin/qemu-system-x86_64 | grep Shared | sort | head
  0x0000000000000001 (NEEDED)       Shared library: [libasound.so]
  0x0000000000000001 (NEEDED)       Shared library: [libbz2.so.1.0]
  0x0000000000000001 (NEEDED)       Shared library: [libcairo.so]
  0x0000000000000001 (NEEDED)       Shared library: [libc.so]
  0x0000000000000001 (NEEDED)       Shared library: [libcurl.so]
  0x0000000000000001 (NEEDED)       Shared library: [libdw.so.1]
  0x0000000000000001 (NEEDED)       Shared library: [libepoxy.so]
  0x0000000000000001 (NEEDED)       Shared library: [libfdt.so]
  0x0000000000000001 (NEEDED)       Shared library: [libgbm.so]
  0x0000000000000001 (NEEDED)       Shared library: [libgdk-3.so]

@licy183 licy183 removed the untriaged label Feb 4, 2025
@licy183
Copy link
Member

licy183 commented Feb 4, 2025

If qemu is able to be compiled without libasound, it is better to disable some features that will make qemu depend on libasound. IIRC libasound doesn't work properly on Android...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly
Projects
None yet
Development

No branches or pull requests

3 participants