NetBSD Problem Report #43833
From Wolfgang.Stukenbrock@nagler-company.com Fri Sep 3 11:42:19 2010
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 1EF1A63B8C3
for <gnats-bugs@gnats.NetBSD.org>; Fri, 3 Sep 2010 11:42:19 +0000 (UTC)
Message-Id: <20100903114209.B2B8019FBCE@s051.nagler-company.com>
Date: Fri, 3 Sep 2010 13:42:09 +0200 (CEST)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: SVR4 compat support missing for amd64
X-Send-Pr-Version: 3.95
>Number: 43833
>Category: port-amd64
>Synopsis: SVR4 compat support missing for amd64
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-amd64-maintainer
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Sep 03 11:45:01 +0000 2010
>Closed-Date: Fri Jul 28 16:43:08 +0000 2017
>Last-Modified: Fri Jul 28 16:43:08 +0000 2017
>Originator: W. Stukenbrock
>Release: NetBSD 5.0.2
>Organization:
Dr. Nagler & Company GmbH
>Environment:
System: NetBSD s051 5.0.2 NetBSD 5.0.2 (NSW-S051) #2: Thu Aug 12 18:30:48 CEST 2010 wgstuken@s051:/usr/src/sys/arch/amd64/compile/NSW-S051 amd64
Architecture: x86_64
Machine: amd64
>Description:
There is still no SVR4 compat support for this architecture.
It would be very niche to have that in order to run Solaris X86 binaries on a NetBSD system.
My concrete problem is, that the JRE for linux (64 and 32) bit will not work reliable in the
linux or linux32 emulations. There seems to be a timing problem during startup of the engine,
so that it will crash most times. If the machine-code-compiler is deactivated on the command line
for the java program, the JRE comes up most times - still not all the times.
I simply hope that JRE would run much more stable on Solaris as it does on any Linux and that
it would work in the emulation too.
At the moment it is impossible to run a JRE on a NetBSD-5.0.2-amd64 system in a reliable way.
A quick-try from my side by just enabling the SVR4 compat in an amd64 kernel shows, that
(at least) some lines in files.amd64 are missing (see below) and that the machine dependen headerfiles
svr4_machdep.h and svr4_32_machdep.h must be written.
"missing" lines in files.amd64:
# SVR4 binary compatibility (COMPAT_SVR4)
include "compat/svr4/files.svr4"
# file arch/i386/i386/svr4_machdep.c compat_svr4
# file arch/i386/i386/svr4_sigcode.S compat_svr4
# file arch/i386/i386/svr4_syscall.c compat_svr4
# SVR4 binary compatibility (COMPAT_SVR4_32)
include "compat/svr4_32/files.svr4_32"
# file arch/i386/i386/svr4_machdep.c compat_svr4_32
# file arch/i386/i386/svr4_sigcode.S compat_svr4_32
# file arch/i386/i386/svr4_syscall.c compat_svr4_32
END of missing lines
Accedently my knowledge about the stack-frame differences of 32 and 64 bit Intel-CPU's is nearly zero.
So I cannot guess a valid svr4_*machdep.h file and try if the rest of the emulation is already working.
>How-To-Repeat:
not relevant
>Fix:
>Release-Note:
>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-amd64/43833: SVR4 compat support missing for amd64
Date: Fri, 3 Sep 2010 12:08:06 +0000
Typo in subject corrected.
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, port-amd64-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: port-amd64/43833: SVR$ compat support missing for amd64
Date: Sat, 4 Sep 2010 06:48:23 -0400
Is there a place to download solaris binaries so we can test?
Also the linux emulation works much better in NetBSD/current and also you
can build native java binaries using the OpenJDK.
christos
From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org, Wolfgang.Stukenbrock@nagler-company.com
Subject: Re: port-amd64/43833: SVR$ compat support missing for amd64
Date: Mon, 06 Sep 2010 12:16:32 +0200
Christos Zoulas wrote:
> The following reply was made to PR port-amd64/43833; it has been noted by GNATS.
>
> From: christos@zoulas.com (Christos Zoulas)
> To: gnats-bugs@NetBSD.org, port-amd64-maintainer@netbsd.org,
> gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
> Cc:
> Subject: Re: port-amd64/43833: SVR$ compat support missing for amd64
> Date: Sat, 4 Sep 2010 06:48:23 -0400
>
> On Sep 3, 11:45am, Wolfgang.Stukenbrock@nagler-company.com (Wolfgang.Stukenbrock@nagler-company.com) wrote:
> -- Subject: port-amd64/43833: SVR$ compat support missing for amd64
>
> | >Number: 43833
> | >Category: port-amd64
> | >Synopsis: SVR$ compat support missing for amd64
> | >Confidential: no
> | >Severity: non-critical
> | >Priority: medium
> | >Responsible: port-amd64-maintainer
> | >State: open
> | >Class: change-request
> | >Submitter-Id: net
> | >Arrival-Date: Fri Sep 03 11:45:01 +0000 2010
> | >Originator: W. Stukenbrock
> | >Release: NetBSD 5.0.2
> | >Organization:
> | Dr. Nagler & Company GmbH
> |
> | >Environment:
> |
> |
> | System: NetBSD s051 5.0.2 NetBSD 5.0.2 (NSW-S051) #2: Thu Aug 12 18:30:48 CEST 2010 wgstuken@s051:/usr/src/sys/arch/amd64/compile/NSW-S051 amd64
> | Architecture: x86_64
> | Machine: amd64
> | >Description:
> | There is still no SVR4 compat support for this architecture.
> |
> | It would be very niche to have that in order to run Solaris X86 binaries on a NetBSD system.
> |
> | My concrete problem is, that the JRE for linux (64 and 32) bit will not work reliable in the
> | linux or linux32 emulations. There seems to be a timing problem during startup of the engine,
> | so that it will crash most times. If the machine-code-compiler is deactivated on the command line
> | for the java program, the JRE comes up most times - still not all the times.
> | I simply hope that JRE would run much more stable on Solaris as it does on any Linux and that
> | it would work in the emulation too.
> | At the moment it is impossible to run a JRE on a NetBSD-5.0.2-amd64 system in a reliable way.
> |
> | A quick-try from my side by just enabling the SVR4 compat in an amd64 kernel shows, that
> | (at least) some lines in files.amd64 are missing (see below) and that the machine dependen headerfiles
> | svr4_machdep.h and svr4_32_machdep.h must be written.
> |
> | "missing" lines in files.amd64:
> | # SVR4 binary compatibility (COMPAT_SVR4)
> | include "compat/svr4/files.svr4"
> | # file arch/i386/i386/svr4_machdep.c compat_svr4
> | # file arch/i386/i386/svr4_sigcode.S compat_svr4
> | # file arch/i386/i386/svr4_syscall.c compat_svr4
> |
> | # SVR4 binary compatibility (COMPAT_SVR4_32)
> | include "compat/svr4_32/files.svr4_32"
> | # file arch/i386/i386/svr4_machdep.c compat_svr4_32
> | # file arch/i386/i386/svr4_sigcode.S compat_svr4_32
> | # file arch/i386/i386/svr4_syscall.c compat_svr4_32
> | END of missing lines
> |
> | Accedently my knowledge about the stack-frame differences of 32 and 64 bit Intel-CPU's is nearly zero.
> | So I cannot guess a valid svr4_*machdep.h file and try if the rest of the emulation is already working.
> |
>
> Is there a place to download solaris binaries so we can test?
>
> Also the linux emulation works much better in NetBSD/current and also you
> can build native java binaries using the OpenJDK.
>
> christos
>
>
Hi,
you can download the complete Solaris (10/09) from the Oracle Website
for free. (e.g. www.sun.de -> download -> Oracle Solaris)
(or www.oracle.com/technetwork/server-storage/solaris/downloads)
For the "commertial based" 10/09 it is required that you "register" at
this side.
I hope this is not a problem.
We are useing some Sun systems here and the only relevant question - as
far as I see - is the number of systems running. You may not
redistribute the software, but that's the same as for the Java stuff in
pkgsrc.
A second way is to download the Opensolaris 2009.06 - either from the
side mentioned above or from www.opensolaris.org.
The user-level libs offer the same functionality for (most) programs.
Your hint to NetBSD/current is interesting, but I cannot (or I'm not
willing to) switch our productive environment to a development version.
So this is only an option for a future release for now.
Up to now I've missed the way to build the JRE from the JDK. I'm gooin
to have a look at this. Thanks for the hint.
W. Stukenbrock
State-Changed-From-To: open->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Fri, 28 Jul 2017 16:43:08 +0000
State-Changed-Why:
It's a request for feature, and seeing how things are turning out now,
chances are we will simply never implement support for SVR4 on amd64. As
far as java is concerned, the real solution is having java run natively on
netbsd, but that's a different issue. I'm closing this PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.