Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Cross compiling fails because of missing dependencies
Date: Wed, 21 Mar 2007 02:52:46
Message-Id: 1174445173.27664.3.camel@here.linbsd.net
In Reply to: [gentoo-embedded] Cross compiling fails because of missing dependencies by Johannes Bauer
1 Save yourself the all heartache of cross compiles and simply use a
2 chroot. x86_64 lends itself well for this task...
3
4 unpack stageball.
5 mkdir -p usr/portage
6 mount --bind /usr/portage usr/portage
7 mount --bind /sys sys/
8 linux32 chroot . /bin/bash --login
9 $EDITOR /etc/make.conf
10 # be sure to change PKGDIR from so the host binpkgs don't get
11 overwritten.
12
13 emerge $stuff
14
15
16 > So I set up a cross-compiler for i486-unknown-linux-gnu, which worked
17 > just alright using crossdev. Then I unpacked the stage3 image and
18 > portage snapshot. Tried to emerge openvpn:
19 >
20 > # ROOT="/home/embedded/root/" CHOST="i486-unknown-linux-gnu"
21 > CBUILD="x86_64-pc-linux-gnu" emerge openvpn
22 >
23 >
24 > -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----
25 > [... Configure stuff ...]
26 > LZO headers were not found
27 > LZO library available from http://www.oberhumer.com/opensource/lzo/
28 > configure: error: Or try ./configure --disable-lzo
29 >
30 > !!! Please attach the following file when filing a report to
31 > bugs.gentoo.org:
32 > !!! /var/tmp/portage/net-misc/openvpn-2.0.6/work/openvpn-2.0.6/config.log
33 >
34 > !!! ERROR: net-misc/openvpn-2.0.6 failed.
35 > Call stack:
36 > ebuild.sh, line 1614: Called dyn_compile
37 > ebuild.sh, line 971: Called qa_call 'src_compile'
38 > environment, line 3120: Called src_compile
39 > openvpn-2.0.6.ebuild, line 49: Called econf
40 > '--disable-password-save' '--enable-ssl' '--enable-crypto'
41 > '--disable-pthread'
42 > ebuild.sh, line 577: Called die
43 >
44 > !!! econf failed
45 > !!! If you need support, post the topmost build error, and the call
46 > stack if relevant.
47 > !!! A complete build log is located at
48 > '/var/tmp/portage/net-misc/openvpn-2.0.6/temp/build.log'.
49 > -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----
50 >
51 > However, the dependency configure seems to be missing (lzo) has been
52 > compiled and installed just fine (dev-libs/lzo-2.02-r1).
53 >
54 > Therefore it looks to me as if because of the changed "ROOT" emerge is
55 > looking in the wrong directory for these header files. How can I solve this?
56 >
57 > Thanks a lot,
58 > Greetings,
59 > Johannes
60 --
61 Ned Ludd <solar@g.o>
62 Gentoo Linux
63
64 --
65 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] Cross compiling fails because of missing dependencies Johannes Bauer <dfnsonfsduifb@×××.de>