[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-30 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #8 from William Tang --- (In reply to Alan Modra from comment #7) > sysroot and rpath are complicated, and can be difficult to get right. If > using sysroot you have a linker that has access to your entire file system, > but defau

[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-29 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #6 from William Tang --- Also, I can confirm the issue does not exist when using gold, only happens when using bfd ld -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-28 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #5 from William Tang --- 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/u

[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-28 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #4 from William Tang --- Hi, Nick Here are the logs you requested: [william@NoteBook cross-compile](master)$ ls /usr/arm-linux-gnueabihf/lib/libcrypto.so.1.1 /usr/arm-linux-gnueabihf/lib/libcrypto.so.1.1 [william@NoteBook cross-

[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-27 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 William Tang changed: What|Removed |Added Summary|Dependent libraries cannot |Dependent libraries cannot

[Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir

2022-06-27 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #2 from William Tang --- Okay, it seems there is another issue. Although the ld is configured with --with-sysroot option. The -rpath values are still not used for shared library dependency resolution. This is against the behavio

[Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir

2022-06-26 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #1 from William Tang --- Okay, the issue is related to sysroot searchdir. For detailed description, please refer to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106088 -- You are receiving this mail because: You are on the CC li

[Bug ld/29288] Dependent libraries cannot be found if with default sysroot search dir

2022-06-26 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 William Tang changed: What|Removed |Added Summary|Redundant '=' before|Dependent libraries cannot

[Bug ld/29288] New: Redundant '=' before default search path

2022-06-26 Thread galaxyking0419 at gmail dot com
Component: ld Assignee: unassigned at sourceware dot org Reporter: galaxyking0419 at gmail dot com Target Milestone: --- When I build for arm-linux-gnu-binutils using this script (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=arm-linux-gnueabihf-binutils), the sear