From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-3036-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1MGCOW-0004r7-Tm
	for garchives@archives.gentoo.org; Mon, 15 Jun 2009 13:38:41 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F2D97E0253;
	Mon, 15 Jun 2009 13:38:39 +0000 (UTC)
Received: from homeless.linbsd.net (homeless.linbsd.net [64.127.112.66])
	by pigeon.gentoo.org (Postfix) with ESMTP id BFE9AE0253
	for <gentoo-embedded@lists.gentoo.org>; Mon, 15 Jun 2009 13:38:39 +0000 (UTC)
Received: from [192.168.1.2] (dsl092-011-131.sfo1.dsl.speakeasy.net [66.92.11.131])
	by homeless.linbsd.net (Postfix) with ESMTPA id 4DA5A57938
	for <gentoo-embedded@lists.gentoo.org>; Mon, 15 Jun 2009 06:38:39 -0700 (PDT)
Subject: Re: [gentoo-embedded] ./configure --prefix /opt
	--host=armv5tel-softfloat-linux-gnueabi
From: Ned Ludd <solar@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
In-Reply-To: <4A364061.6010807@toth.org.uk>
References: <4A357C21.7040506@toth.org.uk>
	 <3dc1583f0906150008x61e443f9v2675f1e820d2310@mail.gmail.com>
	 <4A360CBC.40604@toth.org.uk> <4A3615F6.20104@toth.org.uk>
	 <4A361974.8000800@gmail.com> <4A36208A.40604@toth.org.uk>
	 <3dc1583f0906150414p1cb45bd7ge1a70dbee5de4d17@mail.gmail.com>
	 <4A36374F.8040501@toth.org.uk> <4A363B50.3020305@toth.org.uk>
	 <4A364061.6010807@toth.org.uk>
Content-Type: text/plain
Date: Mon, 15 Jun 2009 06:38:36 -0700
Message-Id: <1245073116.6133.10.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.22.3.1 
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 23febf64-6659-4760-a129-9a04651ffce8
X-Archives-Hash: 904f8ba82a3acfb22120fcc4a015b103

On Mon, 2009-06-15 at 13:36 +0100, Stephen Feyrer wrote:
> Well on the plus side it produced a full set of healthy little bouncing
> binaries.  Except that they were X86_64 binaries and not arm!
> 
> Which puts me back at square one.
> 
> 
> 
> Stephen Feyrer wrote:
> > Sorry Make went okay as well.  I just excepted it to stop with a nice
> > little message like meerge I guess.
> > 
> > Stephen Feyrer wrote:
> >> Sven Rebhan wrote:
> >>> Take a look at http://gentoo.mindzoo.de/index.cgi/wiki/cross-compiling
> >>>
> >>>
> >>>
> >> Thanks.
> >>
> >> It seems that:
> >>
> >> ./configure --prefix=/opt --target=armv5tel-softfloat-linux-gnueabi
> >> host=i686-pc-linux-gnu --build=armv5tel-softfloat-linux-gnueabi
> >>
> >> will run the configure without any deviation, hesitation or throwing all
> >> of its toys out!
> >>
> >> The Configure --help has this to say on the subject of cross compiling.
> >>
> >> System types:
> >>   --build=BUILD  configure for building on BUILD [guessed]
> >>   --host=HOST    cross-compile to build programs to run on HOST [BUILD]
> >>
> >>
> >>
> >> I'm now happily having make problems.
> >>
> >>
> >> I am very grateful to everyone for helping me.

It took a bit of head banging last nite, but I found I had to set all of
the following. It would still fail for me trying to link in some
-lrpcsvc which I did not figure out what provided it.
but should give you a start. You will want to double check these are
legit conf cache values for the platform you are dealing with also.

Good luck.

EXTRA_ECONF=--with-notify=none \
	i_cv_epoll_works=yes i_cv_posix_fallocate_works=no \
	ignore_signed_size=1 i_cv_signed_size_t=no \
	i_cv_gmtime_max_time_t=31 \
	i_cv_signed_time_t=yes \
	i_cv_mmap_plays_with_write=yes \
	i_cv_fd_passing=yes \
	lib_cv_va_copy=yes i_cv_c99_vsnprintf=yes \
	lib_cv___va_copy=no va_copy_func=va_copy \
        lib_cv_va_val_copy=yes \
	ACCEPT_KEYWORDS="arm ~arm ~amd64" \
	${CHOST}-emerge -v1 dovecot --root-deps=rdeps "$@"