Solaris emulation on NetBSD sparc64
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
-lc.1 => not found
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?
I have here what I believe is a static solaris binary, but it doesn't run, either.
ultra5:~# file /applications/goedel
/applications/goedel: sparc pure executable not stripped
Any idea which forum might be the most appropriate for this question?
|Thread||Thread Starter||Forum||Replies||Last Post|
|5.2 and Packettracer 53 emulation||hugsvarna||OpenBSD General||2||23rd November 2012 09:17 PM|
|Atheros Wifi NetBSD on a Sparc64||granowski||NetBSD General||1||27th September 2010 12:35 PM|
|Maven/Lift on NetBSD sparc64||not1337||NetBSD Package System (pkgsrc)||6||29th July 2010 11:59 PM|
|Solaris by Megadeth was way more fun, Solaris 8 hanging on boot||bleepingnetwork||Solaris||2||18th November 2009 07:39 PM|
|Linux emulation||Mr-Biscuit||FreeBSD General||2||9th October 2008 10:44 PM|