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 D28BA138845 for ; Mon, 4 Feb 2013 06:29:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8FBD21C00D; Mon, 4 Feb 2013 06:29:41 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B926B21C001 for ; Mon, 4 Feb 2013 06:29:39 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id kp1so375207pab.3 for ; Sun, 03 Feb 2013 22:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=t8sHld416m2hVrC9CEjYY4Z1XkjNUmYh9HmO6OOS2Lk=; b=en7tqXvYycyfstRyKe6KiuGgRJw25kWGlGPN9+mwu0Z975hKQ5aLC6EanGaDwivs61 iBLfUsr/1//o3TSJIUUkI6GamhwysjRyBoyIO65yGxs1IEQZkShtWsDLAvrkH8ZS2HJE 81iRQPfG2BROkpTKc5xgksLI9hOgr0BWZKrTcTMhz/neNgGFsNpqoCmjJHAjYiePW69E LoXyTSZgEQINdjd39pOM/1bzGxPrFpZVGkWRxOl+8NI2gbhbztVhLpP9rYEPIeA6Lm0Y 1ch+94CkXI/bGa5R1N99Pm2SnyZ7Njq6v2VisbFlUb4cX9eaBN1ADj4VizWoIXsThKzG RZKA== X-Received: by 10.66.77.201 with SMTP id u9mr49554165paw.80.1359959378485; Sun, 03 Feb 2013 22:29:38 -0800 (PST) Received: from localhost (triband-mum-59.182.72.221.mtnl.net.in. [59.182.72.221]) by mx.google.com with ESMTPS id a1sm18836373pav.2.2013.02.03.22.29.35 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Feb 2013 22:29:37 -0800 (PST) Date: Mon, 4 Feb 2013 12:02:06 +0530 From: Yohan Pereira To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Compiling Gentoo for Raspberry Pi (Was: List of base system packages) Message-ID: <20130204063205.GA30347@dethkomp> References: <510E8726.7010600@gmail.com> <510EAB75.9030204@nileshgr.com> <510EDA29.2050905@gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 6ece96aa-1c88-4951-969f-f4d62c9e28eb X-Archives-Hash: 1287bbdbf8727a7a4e45cd6264f998b6 On 04/02/13 at 11:13am, Nilesh Govindrajan wrote: > Nah, I don't need berkdb, I'll do without it. > Did you install emerge/portage on the Pi yet? > Python cannot be cross compiled (it's a hot topic since ages, but very > few people have been successful with that). > So I guess Python would have to be compiled on the Pi itself... the > question is, emerge needs python and python needs emerge?!!? 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) -- - Yohan Pereira The difference between a Miracle and a Fact is exactly the difference between a mermaid and a seal. -- Mark Twain