From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-embedded+bounces-1023-garchives=archives.gentoo.org@gentoo.org>) id 1FztX6-0007tI-23 for garchives@archives.gentoo.org; Mon, 10 Jul 2006 11:02:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6AB1Vrj000414; Mon, 10 Jul 2006 11:01:31 GMT Received: from smtp.nexusalpha.com (smtp.nexusalpha.com [213.48.13.50]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6AB1TdQ000216 for <gentoo-embedded@lists.gentoo.org>; Mon, 10 Jul 2006 11:01:30 GMT Received: from LXP0004 ([192.168.1.82]) by smtp.nexusalpha.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 10 Jul 2006 12:01:29 +0100 From: "Ryan Baldwin" <ryan.baldwin@nexusalpha.com> To: <gentoo-embedded@lists.gentoo.org> Subject: RE: [gentoo-embedded] Problem cross compiling modular X Date: Mon, 10 Jul 2006 12:01:29 +0100 Organization: Nexus Alpha Ltd Message-ID: <02ae01c6a410$325e4a30$1a06a8c0@LXP0004> Precedence: bulk List-Post: <mailto:gentoo-embedded@lists.gentoo.org> List-Help: <mailto:gentoo-embedded+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org> X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcakDZgZpLdcmD4lRxKw/KeokQ8j+QAATgBg In-Reply-To: <Pine.LNX.4.44.0607101240210.28650-100000@lnx.bridge.intra> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-OriginalArrivalTime: 10 Jul 2006 11:01:29.0573 (UTC) FILETIME=[3239F950:01C6A410] X-Archives-Salt: 47d3b076-2ce1-4863-a224-c8a00877aece X-Archives-Hash: eebdfe0f65156c73d55ea602fac92a26 Hi, Thanks for your replies people. >why are you at all cross-compiling, you have the same arch, use simply an >uClibc chroot Ultimately I want target other arch's, probably ARM. For the time being though I happen to be targeting the same arch. After the previous reply - >that all depends on whether you setup your build environment properly >in an ideal world: > - only RDEPEND stuff goes into /tmp/target/ > - only DEPEND stuff goes into /usr/$CTARGET/ >so to address the issue, you could do: >ROOT=/usr/$CTARGET/ emerge <X header packages> ROOT=/tmp/target/ emerge <X >server/etc...> -mike I ended up finding a lot more stuff that has helped me immensely and I am now getting quite close to my first objective. Something that continues to baffle me though is that on this mailing list people have referred to cross compiling modular X and having got it up and running. I can't see how this can be done without setting up a portage overlay and modifying the ebuilds for several of the packages under x11-libs/(at least) to take the steps detailed in http://wiki.x.org/wiki/CrossCompilingXorg . So far I have created modified ebuilds in my overlay dir to pass --enable-malloc0returnsnull to ./configure where required and to set CC_FOR_BUILD and apply the patches from that page. This has then allowed me to cross compile those packages. What baffles me is that from what I read on this list perhaps I shouldn't need to do this, is there a portage overlay available somewhere that does this already? If so I cant find it. If anyone could give many any clused with regard to this, or let me know the steps they take to cross compile modular X then that would be a great help. Thanks Ryan -- gentoo-embedded@gentoo.org mailing list