Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2008 17:21:27 -0400
From:      Mark Moellering <mark@msen.com>
To:        Kris Kennaway <kris@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problems with i386 jail on amd64 install 7.0 Release
Message-ID:  <200803281721.28049.mark@msen.com>
In-Reply-To: <47ED5D2B.9020109@FreeBSD.org>
References:  <200803272241.11944.mark@msen.com> <200803281655.58441.mark@msen.com> <47ED5D2B.9020109@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 28 March 2008 05:03:39 pm Kris Kennaway wrote:
> Mark Moellering wrote:
> > On Friday 28 March 2008 04:51:08 pm Kris Kennaway wrote:
> >> Mark Moellering wrote:
> >>> On Friday 28 March 2008 03:27:27 pm you wrote:
> >>>> Mark Moellering wrote:
> >>>>> On Friday 28 March 2008 06:23:49 am Kris Kennaway wrote:
> >>>>>> Mark Moellering wrote:
> >>>>>>> I have been trying to install an i386 jail on an amd64 install.  I
> >>>>>>> added Target=i386 to the command line in the make buildworld and
> >>>>>>> installworld commands.  I keep getting the following (or similar)
> >>>>>>> error
> >>>>>>
> >>>>>> 'Target' does nothing, there is no such variable.  If you meant
> >>>>>> 'TARGET', that is a real variable but not the one you want.  You
> >>>>>> need to add 'TARGET_ARCH=i386' to your build/installworld to
> >>>>>> successfully cross-compile.
> >>>>>>
> >>>>>> Kris
> >>>>>
> >>>>> Kris,
> >>>>> Thanks for the reply.
> >>>>> I aplogize, I should have been more explicit.
> >>>>>
> >>>>> I tried TARGET=i386 ; TARGET_ARCH=i386; and both together, all gave
> >>>>> the same error.
> >>>>>
> >>>>> (/libexec/ld-elf.so.1: Shared object "libedit.so.6" not found,
> >>>>> required by "sh")
> >>>>>
> >>>>> Have you or has anyone else on the list successfuly done this?
> >>>>
> >>>> Yes, frequently.  Does the library exist in the chroot and is it an
> >>>> i386 library (use file(1))?
> >>>>
> >>>> Kris
> >>>
> >>> Thanks Kris, you're a lifesaver.
> >>>
> >>> The response I get using File is:
> >>>
> >>> libedit.so.6: ELF 32-bit LSB shared object, Intel 80386, version 1
> >>> (FreeBSD), dynamically linked, stripped
> >>
> >> OK, that is correct.  Is the rest of the chroot configured properly,
> >> e.g. did you populate /etc and /var?
> >>
> >> Kris
> >
> > /etc and /var are populated
>
> what if you run other binaries, e.g. chroot /chroot ls, etc?  Do any of
> them work?  If not, then something is either wrong with the
> /var/run/ld.so.hints, the /libexec/ld-elf.so.1, etc.
>
> Kris

this is no ld-elf.so.hints under the chroot.  Should i copy or 
link /var/run/ld-elf32.so.hints to $chroot/var/run/ld-elf32.so.hints ?

Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803281721.28049.mark>