public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] New Global USE: crossdev
@ 2004-07-10  1:36 Kumba
  2004-07-10 20:38 ` Lisa Seelye
  0 siblings, 1 reply; 6+ messages in thread
From: Kumba @ 2004-07-10  1:36 UTC (permalink / raw
  To: gentoo-dev

Like to get people's opinions on a new global USE flag for crossdev. 
This would be needed because there are some patches that need to be 
applied to gcc/glibc that are needed only for a cross-compiler to be 
built, and I don't want said patch interfereing with normal, day-to-day 
useage.

Some examples include the patch found here:
http://gcc.gnu.org/ml/gcc-patches/2003-10/msg01647.html

That patch needs to be replicated for several archs to build a bootstrap 
gcc-3.4 compiler properly (tested to be needed on ppc, sh4).  Probably 
not the best workaround, and as one of the followups to that URL above 
indicates, there is a more desirable alternative.

Also, some patches need to be applied to glibc for some archs to build, 
notably sh4 (for anyone looking at the possibility of Gentoo/Dreamcast).

Said USE Flag would mostly be applicable to gcc, glibc, and binutils. 
Possibly kernel-headers too, if needed.

Any objections?


--Kumba

-- 
"Such is oft the course of deeds that move the wheels of the world: 
small hands do them because they must, while the eyes of the great are 
elsewhere."  --Elrond

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] New Global USE: crossdev
  2004-07-10  1:36 [gentoo-dev] New Global USE: crossdev Kumba
@ 2004-07-10 20:38 ` Lisa Seelye
  2004-07-10 22:33   ` [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev) Jeremy Huddleston
  0 siblings, 1 reply; 6+ messages in thread
From: Lisa Seelye @ 2004-07-10 20:38 UTC (permalink / raw
  To: kumba; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

On Fri, 2004-07-09 at 21:36, Kumba wrote:
> Said USE Flag would mostly be applicable to gcc, glibc, and binutils. 
> Possibly kernel-headers too, if needed.
> 
> Any objections?

Sounds like a good idea.  I can see this being used in conjunction with
distcc for crosscompiling somewhere down the line.

-- 
Regards,
-Lisa
<Quidquid latine dictum sit, altum viditur>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev)
  2004-07-10 20:38 ` Lisa Seelye
@ 2004-07-10 22:33   ` Jeremy Huddleston
  2004-07-11  0:29     ` Mike Frysinger
  2004-07-11  1:23     ` [gentoo-dev] crossdev, distcc, and multiple toolchains Lars Weiler
  0 siblings, 2 replies; 6+ messages in thread
From: Jeremy Huddleston @ 2004-07-10 22:33 UTC (permalink / raw
  To: gentoo-dev, kumba, lisa

I'm all for the crossdev USE flag...  I think there's a lot we can do 
with it for moving away from crossdev towards a crosscompilation 
toolchain straight out of portage...

First of all, I think we should have a binutils-config package similar 
to gcc-config so we can switch between different toolchains...  then we 
can put the gcc-config and binutils-config options into 
/etc/{init,conf}.d/distcc

Additionally, it would be nice if the gcc (and in the future, binutils) 
profiles had the complete gentoo version string for the profile name:
x86_64-pc-linux-gnu-3.4.0-r6 instead of x86_64-pc-linux-gnu-3.4.0.

Can SLOT be dynamically set yet based on use flags?  IIRC, something 
like the following isn't allowed because we're not supposed to have code 
in the global section of an ebuild:

if use crossdev; then
	SLOT="${PV}-${CTARGET}"
else
	SLOT="${PV}"
fi

solar caught me commenting about crossdev stuff in #-dev earlier today, 
and it looks like I volunteered to help at putting all this together...

Does anyone have any suggestions about this?

Lisa Seelye wrote:

> On Fri, 2004-07-09 at 21:36, Kumba wrote:
> 
>>Said USE Flag would mostly be applicable to gcc, glibc, and binutils. 
>>Possibly kernel-headers too, if needed.
>>
>>Any objections?
> 
> 
> Sounds like a good idea.  I can see this being used in conjunction with
> distcc for crosscompiling somewhere down the line.
> 


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev)
  2004-07-10 22:33   ` [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev) Jeremy Huddleston
@ 2004-07-11  0:29     ` Mike Frysinger
  2004-07-11  1:23     ` [gentoo-dev] crossdev, distcc, and multiple toolchains Lars Weiler
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2004-07-11  0:29 UTC (permalink / raw
  To: gentoo-dev

On Saturday 10 July 2004 06:33 pm, Jeremy Huddleston wrote:
> Can SLOT be dynamically set yet based on use flags?

no, portage still sucks handling this ... it is the #1 reason cross compiling 
stuff cannot happen with portage right now
-mike

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] crossdev, distcc, and multiple toolchains...
  2004-07-10 22:33   ` [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev) Jeremy Huddleston
  2004-07-11  0:29     ` Mike Frysinger
@ 2004-07-11  1:23     ` Lars Weiler
  2004-07-11  3:41       ` Kumba
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Weiler @ 2004-07-11  1:23 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]

* Jeremy Huddleston <eradicator@gentoo.org> [04/07/10 15:33 -0700]:
> Does anyone have any suggestions about this?

Be aware that if you want to provide distcc for more than
one architecture, you can't handle it with one daemon.  You
have to configure it so, that every architecture's distccd
listens on another port, as it has to point to the correct
toolchain-directory.  But that could be handled very easily
by editing the conf.d-file and provide the path to the
architectures' toolchain and another port.

Another thing is autoconfiguration, as you should first
check the found distcc-host for it's installed toolchain.
Kugelfang and I recently had the fun with our iBooks running
distcc, that other x86-users at our Gentoo User Meeting LAN
used nmap to find distcc-hosts and also wrote them in their
host-file :-) No wonder that the big-endian doped code
wouldn't run on their machine...

Today I found in the distcc-ML-archive a 'sanity-check'
script [1], which sends to every host a snippet of C-code
and fails, if the target does not provide the same
toolchain.  In combination with nmap, this looks like a good
start for a kind of automated distcc-host-search.

Regards, Lars

[1] http://lists.samba.org/archive/distcc/2003q3/001301.html

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] crossdev, distcc, and multiple toolchains...
  2004-07-11  1:23     ` [gentoo-dev] crossdev, distcc, and multiple toolchains Lars Weiler
@ 2004-07-11  3:41       ` Kumba
  0 siblings, 0 replies; 6+ messages in thread
From: Kumba @ 2004-07-11  3:41 UTC (permalink / raw
  To: gentoo-dev

Lars Weiler wrote:

> * Jeremy Huddleston <eradicator@gentoo.org> [04/07/10 15:33 -0700]:
> 
>>Does anyone have any suggestions about this?
> 
> 
> Be aware that if you want to provide distcc for more than
> one architecture, you can't handle it with one daemon.  You
> have to configure it so, that every architecture's distccd
> listens on another port, as it has to point to the correct
> toolchain-directory.  But that could be handled very easily
> by editing the conf.d-file and provide the path to the
> architectures' toolchain and another port.

Already done (somewhat).  tuxus setup a miniscript that works 
wonderfully for such things.

http://dev.gentoo.org/~tuxus/build-mips-with-distcc-cross.txt
http://dev.gentoo.org/~tuxus/mips-distcc.sh


--Kumba

-- 
"Such is oft the course of deeds that move the wheels of the world: 
small hands do them because they must, while the eyes of the great are 
elsewhere."  --Elrond

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-11  3:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-10  1:36 [gentoo-dev] New Global USE: crossdev Kumba
2004-07-10 20:38 ` Lisa Seelye
2004-07-10 22:33   ` [gentoo-dev] crossdev, distcc, and multiple toolchains... (was New global USE: crossdev) Jeremy Huddleston
2004-07-11  0:29     ` Mike Frysinger
2004-07-11  1:23     ` [gentoo-dev] crossdev, distcc, and multiple toolchains Lars Weiler
2004-07-11  3:41       ` Kumba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox