public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: "gentoo-embedded@lists.gentoo.org" <gentoo-embedded@lists.gentoo.org>
Subject: Re: [gentoo-embedded] crossdev and ASAN
Date: Fri, 13 Nov 2015 13:17:05 +0000	[thread overview]
Message-ID: <1447420625.477.31.camel@transmode.se> (raw)

On Fri, 2015-11-13 at 13:16 +0100, Peter Stuge wrote:
> Joakim Tjernlund wrote:
> > > cross toolchains cannot use ASAN today:
> > > powerpc-g2.20-linux-gnu-gcc -fsanitize=address mmap.c
> > > /usr/libexec/gcc/powerpc-g2.20-linux-gnu/ld: warning: libstdc++.so.6, needed by /usr/lib/gcc/powerpc-
> > > g2.20-
> > > linux-gnu/4.9.3/libasan.so, not found (try using -rpath or -rpath-link)
> > 
> > hmm, there is a libstdc++.so.6 which will work to link with under:
> >  /usr/lib64/gcc/powerpc-g2.20-linux-gnu/4.9.3/libstdc++.so.6
> > But powerpc-g2.20-linux-gnu-gcc cannot find it there, stracing gcc
> > one can see:
> > 
> > [pid  3860] open("/usr/powerpc-g2.20-linux-gnu/...
> 
> Is /usr/powerpc-g2.20-linux-gnu the sysroot?
Yes

> If yes, why is libstdc++.so.6 not in there?

I think it is because cross-powerpc-g2.20-linux-gnu/glibc is special, it is not
the real/whole glibc, just the stuff needed x-compile.
But as there is and /usr/lib64/gcc/powerpc-g2.20-linux-gnu/4.9.3/libstdc++.so.6 gcc 
shoudl look there? libasan.so.1 lives there also.

Speaking of libasan.so, it has an odd runpath:
0x0000001d (RUNPATH) Library runpath: [/usr/powerpc-g2.20-linux-gnu/lib/../lib]

My host has(amd64):
0x000000000000001d (RUNPATH) Library runpath: [/usr/lib/../lib64]

 Jocke

> If no, why is gcc looking there?
> 
> 
> //Peter
> 

             reply	other threads:[~2015-11-13 13:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-13 13:17 Joakim Tjernlund [this message]
2015-11-13 14:30 ` [gentoo-embedded] crossdev and ASAN Jeremi Piotrowski
  -- strict thread matches above, loose matches on Subject: below --
2015-11-13 10:14 Joakim Tjernlund
2015-11-13 10:35 ` Joakim Tjernlund
2015-11-13 12:16   ` Peter Stuge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447420625.477.31.camel@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox