I've been working on this for a few days, so far without luck. I'd like to
be able to compile linux programs which die on my FreeBSD-5.3-RELEASE-p5
by having a working chrootable source-based linux toolkit set up. The
linux_base-gentoo-stage1 port seemed like a logical choice, since I know
it should be able to build all of the required tools on its own. The port
installs fine, and I can `emerge sync' without difficulty, as specified in
the pkg-message.

The problem comes after I chroot into /compat/linux and attempt to run
`/usr/portage/scripts/bootstrap.sh' as the pkg-message suggests I do. I
make it all the way up to building glibc, which goes for ahwile then quits
with this message:

/bin/sh: line 1:
/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/elf/ld-linux.so.2:
cannot execute binary file
make[2]: ***
[/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/sunrpc/xbootparam_prot.stmp]
Error 126
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed.
!!! Function src_compile, Line 690, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status
message.


I've tried deleting it, refetching it, and recompiling it three times, to
no avail. This is what the file which it is unable to excecute looks like,
from within the chroot:

bash-2.05b# file ld-linux.so.2
ld-linux.so.2: symbolic link to `ld.so'
bash-2.05b# file ld.so
ld.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not
stripped
bash-2.05b# ls -l ld.so
-rwxr-xr-x 1 root portage 112985 Mar 15 01:42 ld.so

I know that my machine has excecuted other linux binaries because gcc ran
without fail quite a lot of times before this error was generated, emerge
works fine, and bash worked perfectly.

Anybody know what's up, or what else I could provide that might lead
towards a solution?

Does this port compile for other people?

Max


_______________________________________________
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...ebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"