View Single Post
  #1   (View Single Post)  
Old 19th January 2013
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Default Solaris emulation on NetBSD sparc64

Hi all,

I was following man compat_svr4, but I can't get it working. I remember having run sunos 68k binaries on a hp 300 netbsd machine, but nowadays, I don't get sparc64 solaris 9 binaries running on a netbsd 6 ultra:


I have a solaris 9 binary:

ultra5:/emul# file /applications/gnat-3.13p/bin/gcc
/applications/gnat-3.13p/bin/gcc: ELF 32-bit MSB executable, SPARC32PLUS, (SYSV), dynamically linked (uses shared libs), not stripped


I have its shared library (both taken from the same solaris 9 machine):

ultra5:/emul# file /emul/svr4_32/usr/lib/libc.so.1
/emul/svr4_32/usr/lib/libc.so.1: ELF 32-bit MSB shared object, SPARC, (SYSV), dynamically linked, not stripped


It is not found - but that's maybe because I use the netbsd ldd:

ultra5:/emul# ldd /applications/gnat-3.13p/bin/gcc
/applications/gnat-3.13p/bin/gcc:
-lc.1 => not found


it crashes

ultra5:/emul# /applications/gnat-3.13p/bin/gcc -v
Segmentation fault (core dumped)

The gcc driver should be quite simple and run. Also, all other solaris binaries seg fault.


My kernel config includes

ultra5:/emul# uname -a

NetBSD ultra5 6.0 NetBSD 6.0 (ULTRA5and10) #0: Mon Oct 22 00:08:16 PDT 2012 root@ultra5:/usr/src/sys/arch/sparc64/compile/ULTRA5and10 sparc64

ultra5:/emul# grep EXEC_ELF32 /usr/src/sys/arch/sparc64/conf/ULTRA5and10
options EXEC_ELF32 # Exec module for SunOS 5.x binaries.

ultra5:/emul# grep COMPAT_NETBSD32 /usr/src/sys/arch/sparc64/conf/ULTRA5and10
options COMPAT_NETBSD32 # NetBSD/sparc binary compatibility -- 64-bit only


Any idea how to proceed from here?
Reply With Quote