Alex Efros | 15 Jun 2012 20:03
Favicon
Gravatar

inferno build on FreeBSD-9.0 64-bit

Hi!

Is it possible to run Inferno on 64-bit FreeBSD using /lib32 instead of
32-bit chroot to complete 32-bit system?

[powerman <at> freebsd90-64 ~/inferno]$ file FreeBSD/386/bin/emu-g 
FreeBSD/386/bin/emu-g: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically
linked (uses shared libs), for FreeBSD 9.0 (900044), not stripped

[powerman <at> freebsd90-64 ~/inferno]$ emu-g
SYS: process main faults: Segmentation violation
Killed: 9

[powerman <at> freebsd90-64 ~/inferno]$ ldd FreeBSD/386/bin/emu-g 
FreeBSD/386/bin/emu-g:
        libm.so.5 => /usr/lib32/libm.so.5 (0x2810c000)
        libc.so.7 => /usr/lib32/libc.so.7 (0x28126000)

Other binaries in FreeBSD/386/bin/ works fine, but they all linked only
with libc.so.7, while emu also linked with libm.so.5 - maybe it crash
because of this?

Only change I made is in mkfiles/mkfile-FreeBSD-386:
-AS=            cc -c
+AS=            cc -c -m32
-CC=            cc -c
+CC=            cc -c -m32
-LD=            cc
+LD=            cc -m32

(Continue reading)


Gmane