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-1020-garchives=archives.gentoo.org@gentoo.org>)
	id 1FyUzi-0007He-Mv
	for garchives@archives.gentoo.org; Thu, 06 Jul 2006 14:38:19 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k66Eb8Cm030693;
	Thu, 6 Jul 2006 14:37:08 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 k66Eb8sw026416
	for <gentoo-embedded@lists.gentoo.org>; Thu, 6 Jul 2006 14:37:08 GMT
Received: from LXP0004 ([192.168.1.82]) by smtp.nexusalpha.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Thu, 6 Jul 2006 15:37:08 +0100
From: "Ryan Baldwin" <ryan.baldwin@nexusalpha.com>
To: <gentoo-embedded@lists.gentoo.org>
Subject: RE: [gentoo-embedded] Problem cross compiling modular X
Date: Thu, 6 Jul 2006 15:37:07 +0100
Organization: Nexus Alpha Ltd
Message-ID: <003601c6a109$a8733d20$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: Acag7AyGTsqyCEIORaOkMIumSQ8UsQABtPLQAAU1EcA=
In-Reply-To: <001201c6a0f4$194451d0$1a06a8c0@LXP0004>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-OriginalArrivalTime: 06 Jul 2006 14:37:08.0916 (UTC) FILETIME=[A9060740:01C6A109]
X-Archives-Salt: 30f182f6-4391-4055-9d7e-68dcb12c30b5
X-Archives-Hash: ae8d7da9e647faa77ecac56b16238764

Hi,

>This then leads onto the next problem emerge'ing 'libX11'.
>
>	'checking whether malloc(0) returns NULL... configure: error: cannot
>run test program while cross compiling'.
>
>I'm quite new to cross compiling. I can see what the problem is - configure
>cant run any programs in the target environment to fill out config.guess -
>because its running on the host. Is there any well known way of working
>around this other then trying to manually write a config.guess for the
>packages that can't configure themselves for the target environment?

I have resolved this problem I think by referring to the Xorg cross
compilation guide. It seems I need to pass --enable-malloc0returnsnull to
configure, set CC_FOR_BUILD and apply a few patches.

This appears to indicate though that cross compiling Xorg is not really
supported under gentoo? Presumably this would be done when the 'cross' USE
flag is set otherwise? Is this the case or am I missing something obvious ?

>Since sending my last post I have found:
>
>	cp -r /tmp/target/usr/include/X11
>/usr/i686-pc-linux-uclibc/sys-include/
>
>'fools' it into building. Does anyone know a 'proper' way of getting this
>working ?

This though despite much searching I can't seem to find out what I
should(the proper way) do to make these header files available to the cross
compiler ?



Thanks
Ryan


-- 
gentoo-embedded@gentoo.org mailing list

-- 
gentoo-embedded@gentoo.org mailing list