Gentoo Archives: gentoo-embedded

From: Peter Stuge <peter@×××××.se>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev and ASAN
Date: Fri, 13 Nov 2015 12:16:35
Message-Id: 20151113121627.4921.qmail@stuge.se
In Reply to: Re: [gentoo-embedded] crossdev and ASAN by Joakim Tjernlund
1 Joakim Tjernlund wrote:
2 > > cross toolchains cannot use ASAN today:
3 > > powerpc-g2.20-linux-gnu-gcc -fsanitize=address mmap.c
4 > > /usr/libexec/gcc/powerpc-g2.20-linux-gnu/ld: warning: libstdc++.so.6, needed by /usr/lib/gcc/powerpc-g2.20-
5 > > linux-gnu/4.9.3/libasan.so, not found (try using -rpath or -rpath-link)
6 >
7 > hmm, there is a libstdc++.so.6 which will work to link with under:
8 >  /usr/lib64/gcc/powerpc-g2.20-linux-gnu/4.9.3/libstdc++.so.6
9 > But powerpc-g2.20-linux-gnu-gcc cannot find it there, stracing gcc
10 > one can see:
11 >
12 > [pid  3860] open("/usr/powerpc-g2.20-linux-gnu/...
13
14 Is /usr/powerpc-g2.20-linux-gnu the sysroot?
15 If yes, why is libstdc++.so.6 not in there?
16 If no, why is gcc looking there?
17
18
19 //Peter