From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1D4B0138846 for ; Mon, 4 Feb 2013 06:45:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A68921C060; Mon, 4 Feb 2013 06:45:26 +0000 (UTC) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AEE6F21C008 for ; Mon, 4 Feb 2013 06:45:24 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id cr7so1122527qab.1 for ; Sun, 03 Feb 2013 22:45:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=imh0mAHV8i0Q/n4I1oQpbuzHRLy6OORKymmB6TF7yYg=; b=Sho7ie57KY/CWvw8H2DrKK747ISESM9imTbS+LPUVh9gH6L7sJTLJQ0zq0esPKcYru K69QFZMvVszABioWviOGREmxCaTzKEH9GmgJvAcquaZDfVDZ4QHNBxfIKdeTKNxEmDih DxCqv9mJqu6UL5O2Mje/HScYOwMCwZQiASziWpLBfhHY/5XCT0eG6ddwBijMPmg689Kk Hm+cCMC53a+TJkk+igBnIjte60PEQ3yhhv0erkRcjR5s8iSDFMelFZfRF5YG0WJ8zojp QTOJkXIv3O72B3UESQT1dqOjlGG18xqcJK/lbP09o+1uayenG2yPn1z/qeG5pif7GlGd hWng== X-Received: by 10.49.62.39 with SMTP id v7mr20479095qer.15.1359960323769; Sun, 03 Feb 2013 22:45:23 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.49.104.197 with HTTP; Sun, 3 Feb 2013 22:44:43 -0800 (PST) In-Reply-To: <20130204063205.GA30347@dethkomp> References: <510E8726.7010600@gmail.com> <510EAB75.9030204@nileshgr.com> <510EDA29.2050905@gmail.com> <20130204063205.GA30347@dethkomp> From: Nilesh Govindrajan Date: Mon, 4 Feb 2013 12:14:43 +0530 Message-ID: Subject: Re: [gentoo-user] Compiling Gentoo for Raspberry Pi (Was: List of base system packages) To: Gentoo User Mailing List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkw+Lj6QUqMRQxFOaaddDLr/79IVLUYu8fh60t9aK913EGDCyuQVuUR3SaA/wf3LYDfByeh X-Archives-Salt: 5819960d-b87f-4389-a8d1-e03e14dc3009 X-Archives-Hash: 907bc78e75b7538456ab0e2ee4b0b129 On Mon, Feb 4, 2013 at 12:02 PM, Yohan Pereira wrote: > > I recently got a minimal gentoo running on the pi (without running > emerge/compiling on the pi), here's what I've learned. > > Cross compilation is FUN <\sarcasm>. Lots of packages (like python) > don't like being cross compiled. A good number of failures occurred > because of missing build time dependencies on the host, Some times I had > to copy certain files need at build-time from the host to the arm > sysroot (mainly for the x11-proto/* packages). > > For the really adamant packages (like python) I used the method > described here [1] to build binary packages using a native arm chroot + > qemu-user (a rather interesting way to go about it). > > However I've not compared the performance (wrt compilation time) to > running a full blown arm qemu vm so you may want to try that and see > what works better for you. But I reckon any of these methods should be > faster than compiling on the pi on a modern CPU. > > Also note cross-compiling is way faster than this method so I preferred > cross-compiling and only resorted to this for packages like python. > > In the end I got it to boot. Then I decided I wanted to try xbmc, after > seeing the long list of dependencies, I went ahead and installed > openELEC :D. Which works great BTW (Still trying to find some indian > news streams). > > [1] http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5 > (Note that page is a bit dated, app-emulation/qemu-user is masked in the > tree. Use app-emulation/qemu instead) > Emulating the Pi on my machine would be slower since I have a dated E2180. It would be rather easier to get distcc on the Pi and make use of the 3 processors. But need to first figure out how to install emerge there... alternatively, could go with paludis which is written in C++, so the nagging python thing won't be there. -- Nilesh Govindrajan http://nileshgr.com