DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 21st January 2013
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Default

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

ultra5:~# /applications/goedel
Abort trap


Any idea which forum might be the most appropriate for this question?

Bash
Reply With Quote
  #3   (View Single Post)  
Old 22nd January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by bashrules View Post
Any idea which forum might be the most appropriate for this question?
Assuming this is 64-bit, then port-sparc64@.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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 11:35 AM
Maven/Lift on NetBSD sparc64 not1337 NetBSD Package System (pkgsrc) 6 29th July 2010 10: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 09:44 PM


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick