[Bug sanitizer/69839] cross-compiling programs w/-fsanitize=address fails: ld: warning: libstdc++.so.6, needed by libasan.so, not found (try using -rpath or -rpath-link)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 25 15:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69839
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Joakim Tjernlund from comment #8)
> > That is correct.
>
> hmm, this feels a bit odd. Using
I'm not the author of --sysroot changes, but I'd say that it is again user
error:
> sudo /usr/powerpc-g2.20-linux-gnu/sbin/ldconfig -v -C
> /usr/powerpc-g2.20-linux-gnu/etc/ld.so.cache -f
> /usr/powerpc-g2.20-linux-gnu/etc/ld.so.conf
If you have sysrooted file, you should use .../ldconfig -r
/usr/powerpc-g2.20-linux-gnu/ ...
(of course only if you actually can run the binaries, in most cases you are
cross-compiling for incompatible architecture and you need either emulator, or
can't run it at all).
Anyway, I don't think gcc bugzilla is the right forum to learn about sysroots.
More information about the Gcc-bugs
mailing list