[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)

joakim.tjernlund at infinera dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 24 16:41:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69839

--- Comment #2 from Joakim Tjernlund <joakim.tjernlund at infinera dot com> ---
(In reply to Jakub Jelinek from comment #1)
> Are you using a sysroot for this?  If not, you should.

Yes, the toolchain is sysrooted at /usr/powerpc-g2.20-linux-gnu/
(toolchain built with Gentoo's crossdev tool)

There is no libstdc++ in sysroot, it is located in
/usr/lib/gcc/powerpc-softfloat_4.9.3-linux-gnu/4.9.3/


More information about the Gcc-bugs mailing list