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

2022-07-03 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 --- Comment #9 from Alan Modra --- The script you used overrode the proper library path by specifying --with-lib-path. Normally the library path is $tool_lib:/usr/local/lib:/lib:/usr/lib all of which are prefixed with "=" when sysrooted. You

[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 amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 Alan Modra changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[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-28 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #3

[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