Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Kris Kennaway

Mark Moellering wrote:

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 ?


Aha, so it's not populated after all :)  You can try copying 
/var/run/ld-elf.so.hints (not ld-elf32) but this is a binary file and I 
don't know if it is compatible.  Otherwise just copy from an i386 system 
  or run


chroot /chroot /sbin/ldconfig -m /lib

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Dominic Fandrey

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


You need to mount /libexec into your jail and /usr/lib32 into the /usr/lib. 
This will get the base system in your jail working. You also need to symlink 
/usr/lib32 → /usr/lib, because it appears that is hard-coded location in 
ld-elf32.so.1.


To compile ports in the jail you have to define ARCH=i386 in the make.conf of 
the jail, because it defaults to the kernel arch amd64. This will get a lot of 
ports to compile into proper i386 binaries and libraries. But there are ports 
I have not managed to build, such as wine and perl. The binaries from the wine 
package just dump core inside my jail. I suppose wine simply interacts to 
closely with the kernel.


Why perl doesn't build, I don't know. It's my impression that some ports just 
don't manage to see the libraries they just built. I have no idea, why, though.


For some ports you have to add --host=i386 and --build=i386 to the 
CONFIGURE_ENV, because configure thinks you're trying to crosscompile and 
looks for the cross-compiling tools.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Mark Moellering
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Kris Kennaway

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Mark Moellering
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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Kris Kennaway

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Mark Moellering
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Kris Kennaway

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Mark Moellering
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?

Thanks Again

mark
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problems with i386 jail on amd64 install 7.0 Release

2008-03-28 Thread Kris Kennaway

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


problems with i386 jail on amd64 install 7.0 Release

2008-03-27 Thread Mark Moellering
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

/libexec/ld-elf.so.1: Shared object "libedit.so.6" not found, required by "sh"

the $jail/libexec/ld-elf.so.1 file is the 32-bit version, however, 
$jail/usr/libexec/ld-elf.so.1 is a link to the 64-bit version in /libexec of 
the install.  

I haven't done any cross-compiling before and I have not found much in the way 
of documentation. 

Any and all help is appreciated

Sincerely

Mark Moellering
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"