Closed slightlyunconventional closed 6 years ago
This is now fixed, by using "make sdk". The recently released 2018.02-1 bleeding edge toolchains have correct RPATH. The 2018.02-1 stable toolchains were still broken due to a separate mistake in the build logic, but I've just started a build of 2018.02-2 stable toolchains, which hopefully should be complete by the end of the day, and which will fix this problem. Thanks for the report!
Most of the toolchain (gcc, objdump, etc) works great on RHEL6. One exception though is gdb, which can't find libncurses.so.6. (RHEL 6. and CentOS 6. seem to provide only libncurses.so.5.)
However, I see that aarch64--glibc--stable/lib/libncurses.so.6 is actually included, so why isn't it found?
Needless to say, I didn't install my aarch64--glibc--stable toolchain into /tmp. Editing rpath fixes it.
I guess another alternative is to set LD_LIBRARY_PATH (chrpath is not installed by default, any many of these users lack root permissions), but far better to correct the rpath in the binary.