public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Frank Steinmetzger <Warp_7@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?
Date: Sat, 28 Mar 2015 12:13:53 +0100	[thread overview]
Message-ID: <20150328111353.GA5901@kern.lan> (raw)
In-Reply-To: <20150319015612.GA7416@waltdnes.org>

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

On Wed, Mar 18, 2015 at 09:56:12PM -0400, Walter Dnes wrote:
>   My situation...
> 
> * I've dug up my ancient netbook, and got Gentoo re-installed on it
> * The cpu is a dual-core Intel(R) Atom(TM) CPU Z520
> * It's 32-bit only; YES!
> * Compiling just the Seamonkey binary (ignoring its dependancies) took
>   14 hours
> 
>   I obviously want to offload compiling to another machine.  As per the
> subject, will a 64-bit no-multilb install be able to cross compile
> 32-bit code?

I recently did the first update after many months on my netbook, too. But I
choose the chroot path; using another linux, I tar'ed off the root
filesystem to an external disk and plugged that into my main rig. In there I
used the power of my might i5-4590 to do the upgrades. That's just that much
faster because many small packages use up minutes and minutes in the
configure and install phase. Not to mention hours spent of depend*e*ncy
calculations.

To quickly switch between building locally and via distcc (or chroot in this
case), I set up the usual march, CFLAGS, features, mirrors and such in
make.conf and then below that source my .conf file for distcc or chroot
which will override those settings. That way I only need to uncomment one
line in make.conf and I'm good to go.

Since there are different kinds of atoms, I also used the full range of
-mno- flags as given by `gcc -v -Q -march=native -O2 test.c -o test` and
because my Atom is 64 bit, but my userland 32, I manually added -m32 to
those. It went through in only a few hours for 500 packages including KDE.

The only problem I had was building the kernel. For some reason, I haven't
quite achieved coolness there yet with building it on my big machine.
-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.

Thinking is work, work is energy and you should conserve energy.

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

  parent reply	other threads:[~2015-03-28 11:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19  1:56 [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code? Walter Dnes
2015-03-19  2:27 ` Fernando Rodriguez
2015-03-19  4:20   ` Walter Dnes
2015-03-19  5:12     ` Fernando Rodriguez
2015-03-21 12:46     ` Mike Gilbert
2015-03-21 19:52       ` Fernando Rodriguez
2015-03-22 14:03         ` Mike Gilbert
2015-03-22 14:05           ` Mike Gilbert
2015-03-23  0:56           ` Fernando Rodriguez
2015-03-23  1:25           ` Fernando Rodriguez
2015-03-24  1:51             ` Walter Dnes
2015-03-23 22:18               ` Mike Gilbert
2015-03-23 22:41                 ` Fernando Rodriguez
2015-03-23 22:48                   ` Mike Gilbert
2015-03-24  0:37                     ` Fernando Rodriguez
2015-03-24  6:06                   ` Walter Dnes
2015-03-24  7:17                 ` Walter Dnes
2015-03-24 17:18                   ` Mike Gilbert
2015-03-24 19:01                   ` Fernando Rodriguez
2015-03-25  2:01                     ` Walter Dnes
2015-03-25  5:20                     ` Walter Dnes
2015-03-25  6:44                       ` Walter Dnes
2015-03-24  0:26               ` Peter Humphrey
2015-03-22 11:32       ` Walter Dnes
2015-03-28 11:13 ` Frank Steinmetzger [this message]
2015-03-28 13:03   ` Walter Dnes

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=20150328111353.GA5901@kern.lan \
    --to=warp_7@gmx.de \
    --cc=gentoo-user@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