NetBSD Problem Report #46754
From www@NetBSD.org Sun Jul 29 22:38:10 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 9222063B8E6
for <gnats-bugs@gnats.NetBSD.org>; Sun, 29 Jul 2012 22:38:10 +0000 (UTC)
Message-Id: <20120729223809.8E37763B85F@www.NetBSD.org>
Date: Sun, 29 Jul 2012 22:38:09 +0000 (UTC)
From: germlecha@hotmail.com
Reply-To: germlecha@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: Eclipse does not start
X-Send-Pr-Version: www-1.0
>Number: 46754
>Category: pkg
>Synopsis: Eclipse does not start
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 29 22:40:00 +0000 2012
>Last-Modified: Mon Dec 30 00:10:00 +0000 2013
>Originator: Germain Le Chapelain
>Release: NetBSD-current
>Organization:
>Environment:
NetBSD germ 6.99.8 NetBSD 6.99.8 (germ) #0: Fri Jun 29 20:12:38 UTC 2012 root@:/usr/obj/sys/arch/amd64/compile/germ amd64
>Description:
I tried to install both the version of eclipse in
/usr/pkgsrc/devel/eclipse
and
/usr/pkgsrc/wip/eclipse
and all I get when I try starting it up is a disapointing
/usr/pkg/bin/eclipse: ./eclipse: not found
I tried running the binary referenced in the script and got
/usr/pkg/eclipse/eclipse
bash: /usr/pkg/eclipse/eclipse: No such file or directory
when I try debugging it it, it doesn't work either:
bash-4.2$ gdb /usr/pkg/eclipse/eclipse
GNU gdb (GDB) 7.3.1
...
Reading symbols from /usr/pkg/eclipse/eclipse...done.
(gdb) break main
Breakpoint 1 at 0x8048daa: file ../eclipseMain.c, line 99.
(gdb) run
Starting program: /usr/pkg/eclipse/eclipse
exec: /usr/pkg/eclipse/eclipse: not found
During startup program exited with code 127.
I tried to put a break point in an hypotetical `exec' function, but let's face it: I have no clue what I'm doing.
Is there somewhere I could start looking at ?
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46754: Eclipse does not start
Date: Fri, 4 Jan 2013 06:05:19 +0000
On Sun, Jul 29, 2012 at 10:40:01PM +0000, germlecha@hotmail.com wrote:
> I tried running the binary referenced in the script and got
>
> /usr/pkg/eclipse/eclipse
> bash: /usr/pkg/eclipse/eclipse: No such file or directory
Is it a "real" binary (that is, one compiled for NetBSD) or a Java
binary? If the latter, try running "java" on it.
Also, if it's actually a Linux binary or something (I forget exactly
how Eclipse comes, other than that it's a bodgy mess) you may need to
install Linux compatibility packages and/or enable COMPAT_LINUX in
your kernel.
--
David A. Holland
dholland@netbsd.org
From: Germain Le Chapelain <germlecha@hotmail.com>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: RE: pkg/46754: Eclipse does not start
Date: Fri, 4 Jan 2013 10:07:48 -0500
> > /usr/pkg/eclipse/eclipse=20
> > bash: /usr/pkg/eclipse/eclipse: No such file or directory
> =20
> Is it a "real" binary (that is=2C one compiled for NetBSD) or a Java
> binary? If the latter=2C try running "java" on it.
Thanks a great deal for the pointers !
It's a Linux :
bash-4.2$ file ./eclipse=20
./eclipse: ELF 32-bit LSB executable=2C Intel 80386=2C version 1 (SYSV)=2C =
dynamically linked (uses shared libs)=2C for GNU/Linux 2.2.5=2C not strippe=
d
So=2C installing
=A0=A0=A0 emulators/suse121_32_compat
=A0=A0=A0 emulators/suse121_32_x11
made it pass the initial error and another `eclipse: error while loading sh=
ared libraries: libXt.so.6: cannot open shared object file: No such file or=
directory'
I am now getting a window error: `No Java virtual machine found'.
I tried
eclipse -vm /usr/pkg/java/sun-6/bin/java
and I get=20
BootLoader constants: OS=3Dlinux=2C ARCH=3Dx86=2C WS=3Dmotif=2C NL=3Den_US
!ENTRY org.eclipse.osgi Jan 04=2C 2013 07:49:39.714
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: /usr/pkg/eclipse/plugins/org.eclipse.swt.mo=
tif_3
.0.1/os/linux/x86/libswt-motif-3063.so: /usr/pkg/eclipse/plugins/org.eclips=
e.swt
.motif_3.0.1/os/linux/x86/libswt-motif-3063.so: wrong ELF class: ELFCLASS32=
(Pos
sible cause: architecture word width mismatch)
=A0=A0=A0=A0=A0=A0=A0 at java.lang.ClassLoader$NativeLibrary.load(Native Me=
thod)
=A0=20
logged in ~/.eclipse/1357285779231.log=20
I also tried
eclipse -vm /usr/pkg/java/sun-6/bin/java_vm=20
and I got:
java_vm process: You need to set both JAVA_HOME and PLUGIN_HOME
then :
java_vm process: could not find Java VM symbols
when I tried filling=20
export JAVA_HOME=3D/usr/pkg/java/sun-6/
export PLUGIN_HOME=3D/usr/pkg/java/sun-6/plugin/
Germain Le Chapelain
=
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46754: Eclipse does not start
Date: Mon, 30 Dec 2013 00:07:24 +0000
On Fri, Jan 04, 2013 at 04:10:04PM +0000, Germain Le Chapelain wrote:
> > > /usr/pkg/eclipse/eclipse=20
> > > bash: /usr/pkg/eclipse/eclipse: No such file or directory
> > =20
> > Is it a "real" binary (that is=2C one compiled for NetBSD) or a Java
> > binary? If the latter=2C try running "java" on it.
>
> Thanks a great deal for the pointers !
> It's a Linux :
> [...]
Did you get this running? If not, I'd suggest trying to get some less
complicated Java-based program running first (not sure what, I avoid
Java) so as to separate the Java issues from the Eclipse issues.
--
David A. Holland
dholland@netbsd.org
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.