Gentoo Archives: gentoo-embedded

From: Jeremi Piotrowski <jeremi.piotrowski@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev and ASAN
Date: Fri, 13 Nov 2015 14:31:06
Message-Id: 20151113143054.GA13628@fedora-tp.localdomain
In Reply to: Re: [gentoo-embedded] crossdev and ASAN by Joakim Tjernlund
1 On Fri, Nov 13, 2015 at 01:17:05PM +0000, Joakim Tjernlund wrote:
2 >
3 > I think it is because cross-powerpc-g2.20-linux-gnu/glibc is special, it is not
4 > the real/whole glibc, just the stuff needed x-compile.
5
6 cross-.../glibc is the real deal - it has everything needed for
7 x-compilation and at runtime. libstdc++ is part of cross-.../gcc, and I
8 guess mostly meant for development.
9
10 > But as there is and /usr/lib64/gcc/powerpc-g2.20-linux-gnu/4.9.3/libstdc++.so.6 gcc
11 > shoudl look there? libasan.so.1 lives there also.
12
13 g++ will look there because it will explicitly link against libstd++ in
14 all cases.
15
16 I guess the warning is trying to tell you that libstdc++ is not in the
17 default runtime lib search path _and_ that the library is an implicit
18 dependency of libasan. You'll see that if you add `-lstdc++` to the
19 compile command it won't mention a thing.
20
21 What's your use case anyway? If you want libstdc++ in the sysroot you
22 either cross-emerge gcc or just copy libstdc++ over. Or maybe static
23 linking?