[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/29288] Dependent libraries cannot be found with default sysroot
From: |
galaxyking0419 at gmail dot com |
Subject: |
[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld |
Date: |
Wed, 29 Jun 2022 04:39:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29288
--- Comment #5 from William Tang <galaxyking0419 at gmail dot com> ---
So, the rapth issue is that, if the environment is located under other folders
instead of /usr/arm-linux-gnueabihf/lib and compile the program with command
arm-linux-gnueabihf-gcc main.c -I /tmp/rpi-root/usr/include -Wl,--verbose
-Wl,-rpath=/tmp/rpi-root/usr/lib /tmp/rpi-root/usr/lib/libarchive.so
The ld seems not searching /tmp/rpi-root/usr/lib, ld verbose log:
/usr/bin/arm-linux-gnueabihf-ld: warning: libcrypto.so.1.1, needed by
/tmp/rpi-root/usr/lib/libarchive.so, not found (try using -rpath or
-rpath-link)
libacl.so.1 needed by /tmp/rpi-root/usr/lib/libarchive.so
attempt to open /usr/arm-linux-gnueabihf/tmp/rpi-root/usr/lib/libacl.so.1
failed
attempt to open /usr/lib/binutils/arm-linux-gnueabihf/libacl.so.1 failed
attempt to open
/usr/arm-linux-gnueabihf/usr/arm-linux-gnueabihf/lib/libacl.so.1 failed
attempt to open /usr/arm-linux-gnueabihf/tmp/rpi-root/usr/lib/libacl.so.1
failed
attempt to open /usr/lib/binutils/arm-linux-gnueabihf/libacl.so.1 failed
attempt to open
/usr/arm-linux-gnueabihf/usr/arm-linux-gnueabihf/lib/libacl.so.1 failed
However, it did work with rpath-link option:
libcrypto.so.1.1 needed by /tmp/rpi-root/usr/lib/libarchive.so
found libcrypto.so.1.1 at /tmp/rpi-root/usr/lib/libcrypto.so.1.1
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/29288] New: Redundant '=' before default search path, galaxyking0419 at gmail dot com, 2022/06/26
- [Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir, galaxyking0419 at gmail dot com, 2022/06/26
- [Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir, galaxyking0419 at gmail dot com, 2022/06/26
- [Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir, galaxyking0419 at gmail dot com, 2022/06/27
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, galaxyking0419 at gmail dot com, 2022/06/27
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, nickc at redhat dot com, 2022/06/28
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, galaxyking0419 at gmail dot com, 2022/06/28
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld,
galaxyking0419 at gmail dot com <=
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, galaxyking0419 at gmail dot com, 2022/06/29
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, amodra at gmail dot com, 2022/06/29
- [Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld, galaxyking0419 at gmail dot com, 2022/06/30