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 <[EMAIL PROTECTED]> Gentoo Linux -- [email protected] mailing list
