Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Joakim Tjernlund <joakim.tjernlund@...>
Subject: Re: crossdev builds libiberty.a with host arch
Date: Sun, 13 Nov 2011 00:39:33 +0100
>
> Mike Frysinger <vapier@g.o> wrote on 2011/11/11 17:01:28:
> >
> > On Friday 11 November 2011 10:47:02 Joakim Tjernlund wrote:
> > > Mike Frysinger <vapier@g.o> wrote on 2011/11/11 15:46:44:
> > > > On Friday 11 November 2011 03:26:22 Joakim Tjernlund wrote:
> > > > > I installed binutils
> > > > > and now I got a the correct libbfd.so and libiberty.a under
> > > > >
> > > > >  /usr/powerpc-softfloat-linux-gnu/usr/lib/binutils/powerpc-softfloat-li
> > > > >  nux-
> > > > >
> > > > > gnu/2.16.1/ There is no symlink under
> > > > >
> > > > >  /usr/powerpc-softfloat-linux-gnu/lib/
> > > > >
> > > > > though which forces me to pass -L and -I options too gcc in order to
> > > > > build oprofile. Would be nice if the symlinks were created to make the
> > > > > x-compile env. mimic the normal host env.
> > > >
> > > > try running:
> > > >    ROOT=/usr/powerpc-softfloat-linux-gnu binutils-config 1
> > >
> > > :) that got me
> > > /usr/powerpc-softfloat-linux-gnu/usr/i686-pc-linux-gnu/powerpc-softfloat-l
> > > inux-gnu/lib/libiberty.a ->
> > > /usr/lib/binutils/powerpc-softfloat-linux-gnu/2.16.1/libiberty.a
> > >
> > > but this is a host arch libiberty.a so can't use it for x-compile :(
> >
> > hmm, yeah, that's because binutils-config doesn't use relative symlinks.  i
> > wonder if relative would be fine since it isn't crossing the /usr boundary ...
>
> Possibly, can't think of a reason not to.
>
> >
> >
> > > No sign of any new libiberty.h header files though.
> > > Did I miss something?
> >
> > you might also have to manually set CHOST otherwise binutils-config will think
> > it's setting up a cross-compiler.
> >
> > CHOST=powerpc-softfloat-linux-gnu \
> > ROOT=/usr/powerpc-softfloat-linux-gnu \
> > binutils-config 1
>
> Nope, that didn't change anything

oops, my mistake there is
ls -l /usr/powerpc-softfloat-linux-gnu/usr/include/libiberty.h
lrwxrwxrwx 1 root root 72 12 nov 22.26 /usr/powerpc-softfloat-linux-gnu/usr/include/libiberty.h -> /usr/lib/binutils/powerpc-softfloat-linux-gnu/2.16.1/include/libiberty.h

I guess crossdev should run binutils-config automatically?

BTW, somewhat offtopic but why isn't libtool-2.4.2 unstable yet?

 Jocke



Replies:
Re: crossdev builds libiberty.a with host arch
-- Mike Frysinger
References:
crossdev builds libiberty.a with host arch
-- Joakim Tjernlund
Re: crossdev builds libiberty.a with host arch
-- Mike Frysinger
Re: crossdev builds libiberty.a with host arch
-- Joakim Tjernlund
Re: crossdev builds libiberty.a with host arch
-- Mike Frysinger
Re: crossdev builds libiberty.a with host arch
-- Joakim Tjernlund
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: crossdev builds libiberty.a with host arch
Next by thread:
Re: crossdev builds libiberty.a with host arch
Previous by date:
Re: crossdev builds libiberty.a with host arch
Next by date:
Re: crossdev builds libiberty.a with host arch


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.