Hello: Attached find an ebuild script for Eclipse SDK version 3.0.1. I have modified the original script so that it'll successfully compile, install, and run on amd64. Hopefully, I haven't broken anything in the process. Thanks, Dan
Created attachment 40813 [details] new script: eclipse-sdk-3.0.1-r1.ebuild
works for me!
I added this. It compiles, but I don't have access to X on an amd64, so it needs a bit of love. Send it back if anything's b0rked.
It compiles, but segfaults when I attempt to load it. Not sure what information to append, so I'll just await any requests on that count ...
Well, a few people have responded saying that it segfaults. In my experience, although it'll build fine on sun-jdk-1.5, it always segfaults at startup. I'm running fine on blackdown-jdk-1.4. I'm not sure what kind of vm others are using, though.
blackdown-jdk-1.4.2_rc1-r1p (~amd64 system).
if someone can make sense of this mess .. please let me know .. piotr@pyre ~ $ eclipse-3 Unexpected Signal : 11 occurred at PC=0x40317A26 Function=(null)+0x40317A26 Library=/opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/client/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at org.eclipse.swt.internal.gtk.OS.g_utf16_to_utf8(Native Method) - locked <0x48acbc78> (a java.lang.Class) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:118) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:268) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:153) at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:72) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) 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:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688) Dynamic libraries: 08048000-0804e000 r-xp 00000000 03:02 121965213 /opt/blackdown-jdk-1.4.2_rc1/bin/java 0804e000-0804f000 rw-p 00005000 03:02 121965213 /opt/blackdown-jdk-1.4.2_rc1/bin/java 40000000-40016000 r-xp 00000000 03:02 50593623 /lib/ld-2.3.4.so 40016000-40017000 rw-p 00015000 03:02 50593623 /lib/ld-2.3.4.so 40038000-40046000 r-xp 00000000 03:02 50593589 /lib/libpthread-0.10.so 40046000-40047000 rw-p 0000e000 03:02 50593589 /lib/libpthread-0.10.so 40089000-4008b000 r-xp 00000000 03:02 50347078 /lib/libdl-2.3.4.so 4008b000-4008c000 rw-p 00002000 03:02 50347078 /lib/libdl-2.3.4.so 4008c000-40198000 r-xp 00000000 03:02 50593604 /lib/libc-2.3.4.so 40198000-4019b000 rw-p 0010b000 03:02 50593604 /lib/libc-2.3.4.so 4019f000-40453000 r-xp 00000000 03:02 4200619 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/client/libjvm.so 40453000-4046c000 rw-p 002b4000 03:02 4200619 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/client/libjvm.so 4047e000-40486000 r-xp 00000000 03:02 8454591 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/native_threads/libhpi.so 40486000-40487000 rw-p 00007000 03:02 8454591 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/native_threads/libhpi.so 4049e000-404b0000 r-xp 00000000 03:02 50593598 /lib/libnsl-2.3.4.so 404b0000-404b1000 rw-p 00011000 03:02 50593598 /lib/libnsl-2.3.4.so 404b3000-40572000 r-xp 00000000 03:02 197137504 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5.0.6 40572000-40577000 rw-p 000be000 03:02 197137504 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5.0.6 4057c000-4059d000 r-xp 00000000 03:02 50347076 /lib/libm-2.3.4.so 4059d000-4059e000 rw-p 00020000 03:02 50347076 /lib/libm-2.3.4.so 4059e000-405a6000 r-xp 00000000 03:02 197137511 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 405a6000-405a7000 rw-p 00007000 03:02 197137511 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 405a7000-405ab000 rw-s 00000000 03:02 209244361 /tmp/hsperfdata_piotr/1449 405ab000-405bc000 r-xp 00000000 03:02 230694427 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libverify.so 405bc000-405bd000 rw-p 00011000 03:02 230694427 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libverify.so 405c7000-405ce000 r-xp 00000000 03:02 50593601 /lib/libnss_compat-2.3.4.so 405ce000-405cf000 rw-p 00006000 03:02 50593601 /lib/libnss_compat-2.3.4.so 405cf000-405d7000 r-xp 00000000 03:02 50593599 /lib/libnss_nis-2.3.4.so 405d7000-405d8000 rw-p 00008000 03:02 50593599 /lib/libnss_nis-2.3.4.so 405d8000-405e0000 r-xp 00000000 03:02 50593592 /lib/libnss_files-2.3.4.so 405e0000-405e1000 rw-p 00008000 03:02 50593592 /lib/libnss_files-2.3.4.so 405e1000-40600000 r-xp 00000000 03:02 230694422 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libjava.so 40600000-40601000 rw-p 0001f000 03:02 230694422 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libjava.so 40601000-40612000 r-xp 00000000 03:02 230694508 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libzip.so 40612000-40614000 rw-p 00011000 03:02 230694508 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libzip.so 40614000-41fad000 r--s 00000000 03:02 138441381 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/rt.jar 41ff7000-4200d000 r--s 00000000 03:02 138422252 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/sunrsasign.jar 4200d000-420e8000 r--s 00000000 03:02 138422229 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/jsse.jar 420e8000-420f9000 r--s 00000000 03:02 138422240 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/jce.jar 420f9000-42652000 r--s 00000000 03:02 138422245 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/charsets.jar 446fa000-446fd000 r--s 00000000 03:02 222304770 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/dnsns.jar 4c780000-4c79c000 r--s 00000000 03:02 222304771 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/sunjce_provider.jar 4c79c000-4c7aa000 r--s 00000000 03:02 222304773 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/ldapsec.jar 4c7aa000-4c866000 r--s 00000000 03:02 222351529 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/ext/localedata.jar 4c866000-4c86b000 r--s 00000000 03:02 189141818 /usr/lib/eclipse-3/startup.jar 4c86b000-4c8a3000 r--s 00000000 03:02 208624985 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/core.jar 4c8a3000-4c8ab000 r--s 00000000 03:02 208624984 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/console.jar 4c8ab000-4c8b7000 r--s 00000000 03:02 208624983 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/osgi.jar 4c8b7000-4c8cd000 r--s 00000000 03:02 208624980 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/resolver.jar 4c8cd000-4c8e3000 r--s 00000000 03:02 208624982 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar 4c8e3000-4c902000 r--s 00000000 03:02 208624981 /usr/lib/eclipse-3/plugins/org.eclipse.osgi_3.0.1/eclipseAdaptor.jar 4c902000-4c959000 r--s 00000000 03:02 25626349 /usr/lib/eclipse-3/plugins/org.eclipse.core.runtime_3.0.1/runtime.jar 4c959000-4c968000 r-xp 00000000 03:02 230694519 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libnet.so 4c968000-4c969000 rw-p 0000e000 03:02 230694519 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libnet.so 4c969000-4c96f000 r-xp 00000000 03:02 230694617 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libnio.so 4c96f000-4c970000 rw-p 00005000 03:02 230694617 /opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/libnio.so 4c970000-4c984000 r--s 00000000 03:02 33726539 /usr/lib/eclipse-3/plugins/org.eclipse.update.configurator_3.0.0/configurator.jar 4c984000-4cad1000 r--s 00000000 03:02 231158573 /usr/lib/eclipse-3/plugins/org.eclipse.ui.ide_3.0.1/ide.jar 4cad1000-4cae6000 r--s 00000000 03:02 226853183 /usr/lib/eclipse-3/plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar 4cae6000-4cae7000 r--s 00000000 03:02 29493436 /usr/lib/eclipse-3/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/compatibility.jar 4cae7000-4cd1a000 r--s 00000000 03:02 222607589 /usr/lib/eclipse-3/plugins/org.eclipse.ui.workbench_3.0.1/workbench.jar 4cd1a000-4cd97000 r--s 00000000 03:02 12790605 /usr/lib/eclipse-3/plugins/org.eclipse.jface_3.0.0/jface.jar 4cd97000-4cd98000 r--s 00000000 03:02 33726527 /usr/lib/eclipse-3/plugins/org.eclipse.ui_3.0.1/ui.jar 4cd98000-4cdab000 r--s 00000000 03:02 193163400 /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk_3.0.1/ws/gtk/swt-mozilla.jar 4cdab000-4cdb8000 r--s 00000000 03:02 193163399 /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk_3.0.1/ws/gtk/swt-pi.jar 4cdb8000-4ce93000 r--s 00000000 03:02 193163401 /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk_3.0.1/ws/gtk/swt.jar 4ce93000-4cecf000 r-xp 00000000 03:02 208624993 /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk_3.0.1/os/linux/x86/libswt-pi-gtk-3063.so 4cecf000-4ced0000 rw-p 0003c000 03:02 208624993 /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk_3.0.1/os/linux/x86/libswt-pi-gtk-3063.so 4cef1000-4d1bf000 r-xp 00000000 03:02 222305245 /usr/lib/libgtk-x11-2.0.so.0.400.9 4d1bf000-4d1c9000 rw-p 002cd000 03:02 222305245 /usr/lib/libgtk-x11-2.0.so.0.400.9 4d1cc000-4d238000 r-xp 00000000 03:02 222305228 /usr/lib/libgdk-x11-2.0.so.0.400.9 4d238000-4d23d000 rw-p 0006b000 03:02 222305228 /usr/lib/libgdk-x11-2.0.so.0.400.9 4d23d000-4d255000 r-xp 00000000 03:02 184630587 /usr/lib/libatk-1.0.so.0.600.1 4d255000-4d257000 rw-p 00017000 03:02 184630587 /usr/lib/libatk-1.0.so.0.600.1 4d257000-4d26b000 r-xp 00000000 03:02 222305224 /usr/lib/libgdk_pixbuf-2.0.so.0.400.9 4d26b000-4d26c000 rw-p 00014000 03:02 222305224 /usr/lib/libgdk_pixbuf-2.0.so.0.400.9 4d26c000-4d270000 r-xp 00000000 03:02 226567833 /usr/lib/libpangoxft-1.0.so.0.400.1 4d270000-4d271000 rw-p 00003000 03:02 226567833 /usr/lib/libpangoxft-1.0.so.0.400.1 4d271000-4d27b000 r-xp 00000000 03:02 226567825 /usr/lib/libpangox-1.0.so.0.400.1 4d27b000-4d27c000 rw-p 0000a000 03:02 226567825 /usr/lib/libpangox-1.0.so.0.400.1 4d27c000-4d2ab000 r-xp 00000000 03:02 226567821 /usr/lib/libpango-1.0.so.0.400.1 4d2ab000-4d2b0000 rw-p 0002e000 03:02 226567821 /usr/lib/libpango-1.0.so.0.400.1 4d2b0000-4d2e5000 r-xp 00000000 03:02 12987680 /usr/lib/libgobject-2.0.so.0.400.6 4d2e5000-4d2e6000 rw-p 00034000 03:02 12987680 /usr/lib/libgobject-2.0.so.0.400.6 4d2e7000-4d2ea000 r-xp 00000000 03:02 12987684 /usr/lib/libgmodule-2.0.so.0.400.6 4d2ea000-4d2eb000 rw-p 00002000 03:02 12987684 /usr/lib/libgmodule-2.0.so.0.400.6 4d2eb000-4d2ef000 r-xp 00000000 03:02 12987688 /usr/lib/libgthread-2.0.so.0.400.6 4d2ef000-4d2f0000 rw-p 00003000 03:02 12987688 /usr/lib/libgthread-2.0.so.0.400.6 4d2f0000-4d36a000 r-xp 00000000 03:02 12987676 /usr/lib/libglib-2.0.so.0.400.6 4d36a000-4d36b000 rw-p 0007a000 03:02 12987676 /usr/lib/libglib-2.0.so.0.400.6 4d36b000-4d370000 r-xp 00000000 03:02 218183670 /usr/X11R6/lib/libXtst.so.6.1 4d370000-4d371000 rw-p 00004000 03:02 218183670 /usr/X11R6/lib/libXtst.so.6.1 4d371000-4d43a000 r-xp 00000000 03:02 218178011 /usr/X11R6/lib/libX11.so.6.2 4d43a000-4d43e000 rw-p 000c9000 03:02 218178011 /usr/X11R6/lib/libX11.so.6.2 4d43e000-4d441000 r-xp 00000000 03:02 218183756 /usr/X11R6/lib/libXrandr.so.2.0 4d441000-4d442000 rw-p 00002000 03:02 218183756 /usr/X11R6/lib/libXrandr.so.2.0 4d442000-4d449000 r-xp 00000000 03:02 218183666 /usr/X11R6/lib/libXi.so.6.0 4d449000-4d44a000 rw-p 00006000 03:02 218183666 /usr/X11R6/lib/libXi.so.6.0 4d44a000-4d44c000 r-xp 00000000 03:02 218183711 /usr/X11R6/lib/libXinerama.so.1.0 4d44c000-4d44d000 rw-p 00001000 03:02 218183711 /usr/X11R6/lib/libXinerama.so.1.0 4d44d000-4d45f000 r-xp 00000000 03:02 218183744 /usr/X11R6/lib/libXft.so.2.1.2 4d45f000-4d460000 rw-p 00011000 03:02 218183744 /usr/X11R6/lib/libXft.so.2.1.2 4d460000-4d4c3000 r-xp 00000000 03:02 15866 /usr/lib/libfreetype.so.6.3.4 4d4c3000-4d4ca000 rw-p 00063000 03:02 15866 /usr/lib/libfreetype.so.6.3.4 4d4ca000-4d4ed000 r-xp 00000000 03:02 38105801 /usr/lib/libfontconfig.so.1.0.4 4d4ed000-4d4f0000 rw-p 00023000 03:02 38105801 /usr/lib/libfontconfig.so.1.0.4 4d4f1000-4d4f9000 r-xp 00000000 03:02 218183768 /usr/X11R6/lib/libXcursor.so.1.0.2 4d4f9000-4d4fa000 rw-p 00007000 03:02 218183768 /usr/X11R6/lib/libXcursor.so.1.0.2 4d4fa000-4d501000 r-xp 00000000 03:02 218183715 /usr/X11R6/lib/libXrender.so.1.2.2 4d501000-4d502000 rw-p 00007000 03:02 218183715 /usr/X11R6/lib/libXrender.so.1.2.2 4d502000-4d510000 r-xp 00000000 03:02 218179144 /usr/X11R6/lib/libXext.so.6.4 4d510000-4d511000 rw-p 0000d000 03:02 218179144 /usr/X11R6/lib/libXext.so.6.4 4d511000-4d535000 r-xp 00000000 03:02 226567829 /usr/lib/libpangoft2-1.0.so.0.400.1 4d535000-4d536000 rw-p 00024000 03:02 226567829 /usr/lib/libpangoft2-1.0.so.0.400.1 4d536000-4d553000 r-xp 00000000 03:02 46137622 /usr/lib/libexpat.so.0.5.0 4d553000-4d555000 rw-p 0001d000 03:02 46137622 /usr/lib/libexpat.so.0.5.0 4d555000-4d564000 r-xp 00000000 03:02 50339567 /lib/libz.so.1.2.1 4d564000-4d565000 rw-p 0000f000 03:02 50339567 /lib/libz.so.1.2.1 Heap at VM Abort: Heap def new generation total 576K, used 218K [0x44700000, 0x447a0000, 0x44be0000) eden space 512K, 39% used [0x44700000, 0x44732df8, 0x44780000) from space 64K, 23% used [0x44790000, 0x44793c58, 0x447a0000) to space 64K, 0% used [0x44780000, 0x44780000, 0x44790000) tenured generation total 6340K, used 4411K [0x44be0000, 0x45211000, 0x48700000) the space 6340K, 69% used [0x44be0000, 0x4502ec90, 0x4502ee00, 0x45211000) compacting perm gen total 4096K, used 3894K [0x48700000, 0x48b00000, 0x4c700000) the space 4096K, 95% used [0x48700000, 0x48acdbd0, 0x48acdc00, 0x48b00000) Local Time = Fri Oct 8 11:50:54 2004 Elapsed Time = 3 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://www.blackdown.org/cgi-bin/jdk # # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.2-rc1 mixed mode) # # An error report file has been saved as hs_err_pid1449.log. # Please refer to the file for further information. #
Well, a couple of comments. For Petter, I was originally on blackdown-jdk-1.4.2_rc1 and have tried blackdown-jdk-1.4.2_rc1-r1 and it's worked on that as well. So, I'm guessing it might have something to do with the gnome libraries? I'm using libgnomeui-2.6.1.1 and gnome-vfs-2.6.1.1. For Piotr, are you using an amd64 machine? It seems like your eclipse is trying to use i386 client vm, instead of the amd64 vm.
libgnomeui-2.6.1.1 gnome-vfs-2.6.2
sorry I guess I'm a but offtopic on the amd64 .. no its a 32bit system .. (bug summary doesn't specify amd64 =)
Piotr: Actually it's good to test this with other architectures. Does the ebuild that's already in portage (eclipse-sdk-3.0.1) work fine? If so, then that means I broke something.
your ebuild .. well I'm not sure if "your" .. but some -r1 is already in portage .. in ~x86 atleast .. note from the changelog .. 07 Oct 2004; Karl Trygve Kalleberg <karltk@gentoo.org> eclipse-sdk-3.0.1-r1.ebuild: Added support for multiple KDEs. Added amd64 patch by Dan <dan@intuitivelyobvious.net>, fixes #65962.
There are numerous issues at hand here. I'm reclaiming the bug.
Okay, everybody with an x86 and trouble with eclipse-sdk-3.0.1-r1, head over to #66822 and share your gripes, in particular you, Piotr;) The amd64 guys stay put:)
hmm the other bug is related to 3.0.0 .. not 3.0.1 .. I did two things to resolve my problem .. of course I had to do two things to force myself another rebuild if I want to give a defintive result here .. USE=-mozilla emerge =dev-util/eclipse-3.0.1 this gave me a working eclipse .. no I've no idea if it was the mozilla flag breaking it or the -r1 .. bah ..
New versions of various things (libgnomeui 2.8.0, gnome-vfs 2.8.1, blackdown-jdk 1.4.2), but still the same segfault. Incidentally, I had previously attempted to compile it with USE="-mozilla" with identical results.
Sorry if redundant, but does bug 67341 overlap this one? I have included workarounds that bug and the solution.
It doesn't work for me. gentoo-x86 with Sun J2SDK 1.4.2. Bug 66822 is marked "resolved fixed", so even though I'm 32-bit x86, I don't think I should post there. ACCEPT_KEYWORDS="~x86" emerge eclipse-sdk Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/eclipse-sdk-3.0.1-r1 to / >>> md5 src_uri ;-) eclipse-sourceBuild-srcIncluded-3.0.1.zip /usr/sbin/ebuild.sh: line 92: [: 2sdk-1: integer expression expected /usr/sbin/ebuild.sh: line 95: [: 2sdk-1: integer expression expected Detected a JDK < 1.4.2 * This package requires a Java VM version >= 1 4 2 * Please use java-config -S to set the correct one !!! ERROR: dev-util/eclipse-sdk-3.0.1-r1 failed. !!! Function java-utils_ensure-vm-version-ge, Line 75, Exitcode 0 !!! Active Java VM too old java-config -L [sun-j2sdk-1.4.2] "Sun JDK 1.4.2" (/etc/env.d/java/20sun-j2sdk-1.4.2) * I followed the directions and used java-config -S, but it didn't help.
John Ratliff: The dev-java/sun-j2sdk is not very well supported in Gentoo these days, as the licensing is a bit troublesome for some of us. You may want to attempt to build eclipse using dev-java/sun-jdk instead, which we know works very well. Of course, the error you are seeing will be fixed, but it part of a larger series of extensions to the java-pkg and java-utils eclasses.
Committed this patch as -r2.