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.62) (envelope-from ) id 1HTqwQ-0001qV-G5 for garchives@archives.gentoo.org; Wed, 21 Mar 2007 02:52:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2L2ptSU031861; Wed, 21 Mar 2007 02:51:55 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l2L2psAl031856 for ; Wed, 21 Mar 2007 02:51:55 GMT Received: from [66.92.11.131] (dsl092-011-131.sfo1.dsl.speakeasy.net [66.92.11.131]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id CE43A64FE1 for ; Wed, 21 Mar 2007 02:51:39 +0000 (UTC) Subject: Re: [gentoo-embedded] Cross compiling fails because of missing dependencies From: Ned Ludd To: gentoo-embedded@lists.gentoo.org In-Reply-To: <4600915C.9040906@gmx.de> References: <4600915C.9040906@gmx.de> Content-Type: text/plain Organization: Gentoo Linux Date: Tue, 20 Mar 2007 19:46:13 -0700 Message-Id: <1174445173.27664.3.camel@here.linbsd.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 913a9ef7-96a4-4de4-ae0e-83d4da18e1a7 X-Archives-Hash: c2c63370869d1efd445bc9b30f7756f1 Save yourself the all heartache of cross compiles and simply use a chroot. x86_64 lends itself well for this task... unpack stageball. mkdir -p usr/portage mount --bind /usr/portage usr/portage mount --bind /sys sys/ linux32 chroot . /bin/bash --login $EDITOR /etc/make.conf # be sure to change PKGDIR from so the host binpkgs don't get overwritten. emerge $stuff > So I set up a cross-compiler for i486-unknown-linux-gnu, which worked > just alright using crossdev. Then I unpacked the stage3 image and > portage snapshot. Tried to emerge openvpn: > > # ROOT="/home/embedded/root/" CHOST="i486-unknown-linux-gnu" > CBUILD="x86_64-pc-linux-gnu" emerge openvpn > > > -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----- > [... Configure stuff ...] > LZO headers were not found > LZO library available from http://www.oberhumer.com/opensource/lzo/ > configure: error: Or try ./configure --disable-lzo > > !!! Please attach the following file when filing a report to > bugs.gentoo.org: > !!! /var/tmp/portage/net-misc/openvpn-2.0.6/work/openvpn-2.0.6/config.log > > !!! ERROR: net-misc/openvpn-2.0.6 failed. > Call stack: > ebuild.sh, line 1614: Called dyn_compile > ebuild.sh, line 971: Called qa_call 'src_compile' > environment, line 3120: Called src_compile > openvpn-2.0.6.ebuild, line 49: Called econf > '--disable-password-save' '--enable-ssl' '--enable-crypto' > '--disable-pthread' > ebuild.sh, line 577: Called die > > !!! econf failed > !!! If you need support, post the topmost build error, and the call > stack if relevant. > !!! A complete build log is located at > '/var/tmp/portage/net-misc/openvpn-2.0.6/temp/build.log'. > -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----- > > However, the dependency configure seems to be missing (lzo) has been > compiled and installed just fine (dev-libs/lzo-2.02-r1). > > Therefore it looks to me as if because of the changed "ROOT" emerge is > looking in the wrong directory for these header files. How can I solve this? > > Thanks a lot, > Greetings, > Johannes -- Ned Ludd Gentoo Linux -- gentoo-embedded@gentoo.org mailing list