public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Cross compiling fails because of missing dependencies
@ 2007-03-21  1:58 Johannes Bauer
  2007-03-21  2:46 ` Ned Ludd
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Bauer @ 2007-03-21  1:58 UTC (permalink / raw
  To: gentoo-embedded

Hello list,

I'm currently trying to bootstrap a Gentoo system for use in an embedded
environment. My host PC is running x86_64 and the system I'm developing
for is i486.

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
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross compiling fails because of missing dependencies
  2007-03-21  1:58 [gentoo-embedded] Cross compiling fails because of missing dependencies Johannes Bauer
@ 2007-03-21  2:46 ` Ned Ludd
  2007-03-21 19:15   ` Johannes Bauer
  0 siblings, 1 reply; 5+ messages in thread
From: Ned Ludd @ 2007-03-21  2:46 UTC (permalink / raw
  To: gentoo-embedded

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 <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross compiling fails because of missing dependencies
  2007-03-21  2:46 ` Ned Ludd
@ 2007-03-21 19:15   ` Johannes Bauer
  2007-03-22  7:07     ` Ned Ludd
  2007-03-24  7:28     ` Mike Frysinger
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Bauer @ 2007-03-21 19:15 UTC (permalink / raw
  To: gentoo-embedded

Ned Ludd schrieb:
> Save yourself the all heartache of cross compiles and simply use a
> chroot. x86_64 lends itself well for this task...

The "linux32" trick is really neat and worked well - never seen that
before. Thanks for that!

But since I'm planning on deploying on ppc in the near future, the
crosscompiling-problems remain... any idea what's going wrong with
emerge there?

Greetings,
Johannes
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross compiling fails because of missing dependencies
  2007-03-21 19:15   ` Johannes Bauer
@ 2007-03-22  7:07     ` Ned Ludd
  2007-03-24  7:28     ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Ned Ludd @ 2007-03-22  7:07 UTC (permalink / raw
  To: gentoo-embedded

On Wed, 2007-03-21 at 20:15 +0100, Johannes Bauer wrote:
> Ned Ludd schrieb:
> > Save yourself the all heartache of cross compiles and simply use a
> > chroot. x86_64 lends itself well for this task...
> 
> The "linux32" trick is really neat and worked well - never seen that
> before. Thanks for that!
> 
> But since I'm planning on deploying on ppc in the near future, the
> crosscompiling-problems remain... any idea what's going wrong with
> emerge there?


No and I'm not willing to consider the problem till you are actually
dealing with said arch.. Ever arch presents it's on unique set problems
when cross compiling... x86_64->x86 is not one we are really willing to
spend much if any time trying to debug..


> Greetings,
> Johannes
-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross compiling fails because of missing dependencies
  2007-03-21 19:15   ` Johannes Bauer
  2007-03-22  7:07     ` Ned Ludd
@ 2007-03-24  7:28     ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2007-03-24  7:28 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Johannes Bauer

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

On Wednesday 21 March 2007, Johannes Bauer wrote:
> But since I'm planning on deploying on ppc in the near future, the
> crosscompiling-problems remain... any idea what's going wrong with
> emerge there?

you're expecting the cross-compiler to magically know about all the 
headers/libraries in ROOT ... while this would be nice, it'd be a breakdown 
in the logical separation that exists with ROOT

if you did `ROOT=/usr/$CTARGET emerge lzo --nodeps`, i bet it'd work then ...
-mike

[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-24  7:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21  1:58 [gentoo-embedded] Cross compiling fails because of missing dependencies Johannes Bauer
2007-03-21  2:46 ` Ned Ludd
2007-03-21 19:15   ` Johannes Bauer
2007-03-22  7:07     ` Ned Ludd
2007-03-24  7:28     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox