Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52048 - Test request for dev-util/eclipse-sdk-2.1.3-r3
Summary: Test request for dev-util/eclipse-sdk-2.1.3-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 51393
  Show dependency tree
 
Reported: 2004-05-25 14:56 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2004-05-28 12:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-05-25 14:56:51 UTC
I'm going to remove all previous versions, and this is a complete rewrite. Could any of you build this on sparc using the default JVM and see that it indeed works, then reassign the bug back to me?
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2004-05-25 15:18:22 UTC
I've actually built eclipse for sparc linux (from eclipse's sources), so I'll
try it, if you can give me a couple days.  If you haven't heard by the end of the
week, contact me to see what is going on.

Or, if anyone else from sparc gets to this first, that's OK with me. :)
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2004-05-26 07:55:43 UTC
It fails, with log file thus:
==============================
fmccor@antaresia:~/workspace/.metadata [216]% more .log
!SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 May 26, 2004 13:50:20.23
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)
Caused by: java.lang.reflect.InvocationTargetException
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        ... 7 more
Caused by: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-2136 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:482)
        at org.eclipse.swt.widgets.Display.create(Display.java:469)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1361)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
        ... 8 more

=======================
and the error message at start is:
=======================
eclipse-2
java.lang.UnsatisfiedLinkError: no swt-pi-gtk-2136 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:482)
        at org.eclipse.swt.widgets.Display.create(Display.java:469)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1361)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)
==============================

With Eclipse-3.0, when I saw things like this, it meant I had to chase down
how to build several shared libraries, which ended up being:
==================================
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-gtk-3034.so
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-pi-gtk-3034.so
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-gnome-gtk-3034.so
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-mozilla-gtk-3034.so
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-atk-gtk-3034.so
./plugins/org.eclipse.swt.gtk_3.0.0/os/linux/sparc/libswt-awt-gtk-3034.so
./plugins/org.eclipse.cdt.source_2.0.0.jar/src/org.eclipse.cdt.core.linux_2.0.0/os/linux/sparc/libspawner.so
./plugins/org.eclipse.cdt.source_2.0.0.jar/src/org.eclipse.cdt.core.linux_2.0.0/os/linux/sparc/libpty.so
===================================

With this 2.1.3-r3 install, we have only
==============================
/usr/lib/eclipse-2/plugins/org.eclipse.core.resources.linux_2.1.0/os/solaris/sparc/libcore_2_1_0a.so
==============================
In particular, libswt-pi-gtk-2136.so is missing.

==============================

I am willing to work with you to package this for sparc, but if so, I don't want 
to play with 2.1.3.  I have eclipse-3.0 build for linux+sparc, and I don't know why you'ld want to try to retrofit into 2.1.3.

(The difficulty I had with 3.0 is that the sources are messed up.  I had to
chase down where the files needed for the shared libraries are, and fix the makefiles, etc.  I ended up putting everything but the CDT stuff into a directory which looks like this:
====================ferris@lacewing:SOURCES/ECLIPSE/PLAT_SRC [658]% ls
total 676
  4 ./             44 atk_structs.c    4 library/         276 os.c            4 swt_awt.c
  4 ../             8 atk_structs.h    4 make_common.mak    4 os.h           88 xpcom.cpp
  8 Makefile        4 build.sh         8 make_gtk.mak      24 os_custom.c
 16 atk.c          16 callback.c      24 make_gtk.ps       76 os_structs.c
  4 atk.h           4 callback.h       4 make_gtk.xml      12 os_structs.h
 16 atk_custom.c   12 gnome.c          4 org/               4 swt.h
=========================
And 'make' to build the libraries.)

========================
I know this isn't what you wanted to hear, but this describes my experience.
With any luck, someone else from sparc will test it, too, with different results.

Regards,
Ferris
Comment 3 Ferris McCormick (RETIRED) gentoo-dev 2004-05-26 16:33:50 UTC
Karl,
  I took your modified ebuild and did a complete new install on a system which had never seen
eclipse before.  On this system, with your recent changes, it built, put all the libraries in
os/sparc/linux trees, and started up without a flaw.

So I have taken the liberty of adding '~sparc' to the ebuild for eclipse-2.1.3-r3, and I am asking
the sparc users who wanted to try eclipse to try the new ebuild.

If you need anything else, please let me know.  (I'll do testing as time permits, but I expect more activity from one or two sparc users who know eclipse.)

Regards,
Ferris
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-05-27 07:14:30 UTC
I consider this matter closed for now. I managed to get a sparc box for myself today, but it will take weeks before I get around to actually installing Gentoo on it:)
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2004-05-28 12:46:59 UTC
One sparc eclipse user reports success, thus:
=============================================
Posted: Fri May 28, 2004 8:48 am    Post subject:
I just remplaced the 2.1.2-r1 with the eclipse-sdk-2.1.3-r3 :

I run eclipse and everythink is fine.

Thanks!

luca.