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-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Piergiorgio Beruto <piergiorgio.beruto@...>
Subject: Re: prefixed gentoo for cross-compile (question)
Date: Thu, 28 Apr 2011 14:03:00 +0200
Hello!

On Wednesday 27 April 2011 19:06:29 Michael Haubenwallner wrote:
> On 04/27/11 13:29, Piergiorgio Beruto wrote:
> >> But I fail to see a reason for crossdev not to work in Prefix, even if
> >> I've not used crossdev myself. So IMO it just has To Be Done (tm).
> > 
> > Well, I've tried to have crossdev itself working in prefix and I
> > succeeded, the big problem was to cross-build the glibc, then I didnt
> > have the time to finish but maybe I could use some help?
> 
> Shouldn't glibc be the very first package crossdev does build?
> What exactly is the problem?
Actually the build order is binutils, kernel headers, glibc headers, gcc stage 
1, glibc and gcc stage 2. I encountered problems with glibc not being able to 
properly detect the previous installed packages, most probably because of 
prefix as on the plain vanilla gentoo everything worked fine... but I've tried 
this some time ago, I'd better try again and eventually report the problem 
with the full log maybe?
> 
> >> The special use case for Prefix here IMO is the combination of
> >> ROOT="/somewhere" with EPREFIX="" and non-Prefix profiles/keywords.
> > 
> > Yes, crossdev already uses the ROOT variable to specify the
> > installation path, I'm not yet very familiar with prefix related
> > variables so it might only be a matter of studying...
> 
> Eventually you might try to build your packages within Prefix,
> without cross-compiling first.
--> already done, works just fine.
> 
> > For instance what you mean exactly by "non-Prefix profiles/keywords"?
> 
> I'm not familiar with crossdev, but I guess you need to set up the
> "${ROOT}/etc/make.profile" symlink, pointing to something like
> ".../usr/portage/profiles/default/linux/...", resulting in
> ACCEPT_KEYWORDS like "x86 ~x86"
ah, ok, crossdev already care about this but now I understand what u mean.
> 
> In Prefix, you set up "${ROOT}${EPREFIX}/etc/make.profile" pointing
> to something like ".../usr/portage/profiles/prefix/...", so
> ACCEPT_KEYWORDS is something like "~x86-interix".
> 
> The special case for your crossdev-usecase within Prefix is that EPREFIX
> is empty for $host (as in $ROOT$EPREFIX), while not empty for $build.
> 
> > Yes, I'm already a crossdev user and I actually think it could be the
> > tool I am looking for, possibly with some tweaks.
> 
> Have you also tried using crossdev on vanilla Gentoo Linux to build
> your software?
Yes, works like a charm (more or less!)
> 
> >> Then I'd try to fix crossdev to work within Gentoo Prefix, trying
> >> to get identical output as on the vanilla Gentoo Linux system.
> > 
> > That's the difficult part :)
> 
> Show us the error messages, and you might get concrete help.
Thank you, I'll come back to you as soon as I try again.
> 
> > Do you guys find this kind
> > of development useful/challenging?
> 
> Definitively.
Good, I should be able to spend some time on this then, thank you.
> > In which case, have you got a rough
> > idea about the effort in making a working prototype (your guess would
> > be much better then mine)?
> 
> Unfortunately, not from me.
Nevermind, I think it's worth a try anyway :)
> 
> /haubi/

Bye,
Piergiorgio


Replies:
Re: prefixed gentoo for cross-compile (question)
-- Michael Haubenwallner
References:
prefixed gentoo for cross-compile (question)
-- Piergiorgio Beruto
Re: prefixed gentoo for cross-compile (question)
-- Piergiorgio Beruto
Re: prefixed gentoo for cross-compile (question)
-- Michael Haubenwallner
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: prefixed gentoo for cross-compile (question)
Next by thread:
Re: prefixed gentoo for cross-compile (question)
Previous by date:
Re: prefixed gentoo for cross-compile (question)
Next by date:
Re: prefixed gentoo for cross-compile (question)


Updated Jun 18, 2012

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

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