View previous topic :: View next topic |
Author |
Message |
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Sun Dec 17, 2006 10:54 pm Post subject: |
|
|
geki wrote: | gnu-classpath-generics-0.93 soon... |
It's now in portage.
PS.
I cannot find description how to get Java 1.5 support(neighter on google nor on this forum). Could you giv a link once more? _________________ I've probably left my head... somwhere. Please wait untill I find it. |
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Wed Dec 20, 2006 4:15 pm Post subject: |
|
|
Error building eclipse-ecj
Code: | org/eclipse/jdt/internal/compiler/codegen/StackMapFrame.java: In class 'org.eclipse.jdt.internal.compiler.codegen.StackMapFrame':
org/eclipse/jdt/internal/compiler/codegen/StackMapFrame.java: In method 'org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.numberOfDifferentLocals(org.eclipse.jdt.internal.compiler.codegen.StackMapFrame)':
org/eclipse/jdt/internal/compiler/codegen/StackMapFrame.java:194: warning: Unreachable statement.
for (;indexInPrevLocals < prevLocalsLength && prevLocalsCounter < prevNumberOfLocals; indexInPrevLocals++) {
^
1 warning
* build ecj with bootstrapped ecj
----------
1. ERROR in /var/tmp/portage/eclipse-ecj-3.2.2_pre20061206-r1/work/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java (at line 1)
/*******************************************************************************
^
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
----------
1 problem (1 error)
!!! ERROR: dev-java/eclipse-ecj-3.2.2_pre20061206-r1 failed.
|
|
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Dec 20, 2006 4:20 pm Post subject: |
|
|
mmh, did not update gcj eclass yet. heh.
workaround:
Quote: | mkdir -p /usr/lib/gcj-4.2.0_alpha20061212/jre/lib
rm /usr/lib/gcj-4.2.0_alpha20061212/jre/lib/rt.jar
ln -s /usr/lib/gcj-4.2.0_alpha20061212/share/java/libgcj-4.2.0-alpha20061212.jar /usr/lib/gcj-4.2.0_alpha20061212/jre/lib/rt.jar |
_________________ hear hear |
|
Back to top |
|
|
emerald Tux's lil' helper
Joined: 31 Jul 2005 Posts: 113
|
Posted: Fri Jan 05, 2007 2:18 am Post subject: |
|
|
when trying to compile openoffice (2.0.4) on amd64 i get following error:
Code: |
BUILD SUCCESSFUL
Total time: 7 seconds
touch ./unxlngx6.pro/misc/build/so_installed_xt
touch ./unxlngx6.pro/misc/build/so_predeliver_xt
/var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/xt/src/com
/jclark/xsl
dmake: Executing shell macro: -+ls -1 $(JARDIR) | $(GREP) "^$i"
Making dpj...
dmake: /var/tmp/portage/app-office/openoffice-2.0.4/work/ooo/build/OOO_2_0_4/so
lenv/inc/tg_java.mk: line 71: Warning: -- More than one prerequisite
for %-target without :| as ruleop. Only the first is currently used.
Check your makefiles!.
/usr/lib/gcj-4.2.0_alpha20061212/bin/javac -source -target -classpath ".:../..
/../../unxlngx6.pro/class::../../../../unxlngx6.pro/class/xt.jar" -d ../../../..
/unxlngx6.pro/class dom/XmlSearchTransform.java dom/XmlSearchXSLTransform
Engine.java
source level should be comprised in between '1.3' and '1.6'(or '5', '5.0', '6' o
r '6.0'): -target
dmake: Error code 255, while making '../../../../unxlngx6.pro/misc/com_jclark_x
sl_dummy.java'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-
2.0.4/work/ooo/build/OOO_2_0_4/xt/src/com/jclark/xsl
make: *** [stamp/build] Error 1
!!! ERROR: app-office/openoffice-2.0.4 failed.
Call stack:
ebuild.sh, line 1593: Called dyn_compile
ebuild.sh, line 951: Called src_compile
openoffice-2.0.4.ebuild, line 276: Called die
!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if rel
evant.
This ebuild used the following eclasses from overlays:
/usr/portage/local/layman/java-gcj-overlay/eclass/java-pkg-opt-2.eclass
/usr/portage/local/layman/java-gcj-overlay/eclass/java-utils-2.eclass
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk-4.2 CLASSPATH="" JAVA_HOME="/usr/lib/gcj-4.2.0_alpha20061212"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
|
i actually don't know how the -source und -target parameter disappeared
i even used
JAVA_PKG_WANT_SOURCE=1.4 JAVA_PKG_WANT_TARGET=1.4 emerge -1 openoffice
trying to fix it, no way...
btw: it's a rebuild, it works well compiled with sun jdk _________________ Knowledge is scary....
... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - ...
System Profile
Don't open the Red Door ! |
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Fri Jan 05, 2007 5:20 am Post subject: |
|
|
Try the overlay from geki's website, that uses openoffice-2.1.0 and builds with gcj. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Fri Jan 05, 2007 6:03 am Post subject: |
|
|
like david says, I patched that -source / -target config which ignores gcj and gives that error then. _________________ hear hear |
|
Back to top |
|
|
emerald Tux's lil' helper
Joined: 31 Jul 2005 Posts: 113
|
Posted: Sun Jan 07, 2007 6:56 pm Post subject: |
|
|
stupid thing is it crashes with strange errors all the time...
dirks@emerald ~> oowriter2
pure virtual method called
terminate called without an active exception
** (process:43365): WARNING **: Unknown error forking main binary / abnormal early exit ...
have to fall back to portage openoffice.. _________________ Knowledge is scary....
... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - ...
System Profile
Don't open the Red Door ! |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Thu Jan 11, 2007 11:36 pm Post subject: |
|
|
revision 3501
- gcj 4.2.20070110
- swt 3.3m4
- ecj 3.3m4 _________________ hear hear |
|
Back to top |
|
|
Sodki Guru
Joined: 11 Aug 2003 Posts: 419 Location: London, U.K. & Lisbon, Portugal
|
Posted: Sat Jan 13, 2007 1:33 pm Post subject: |
|
|
I'm following the guide, but when I try to install gjdoc or ant-eclipse-ecj, Portage wants to install IBM's JDK (i'm on PPC):
Code: | # emerge -pt gjdoc
These are the packages that would be merged, in reverse order:
Calculating dependencies ... done!
[ebuild N ] dev-java/gjdoc-0.7.7 USE="-source -xmldoclet" 713 kB
[ebuild N ] virtual/jre-1.5.0 0 kB
[ebuild N ] dev-java/antlr-2.7.5-r2 USE="mono python -debug -doc -examples -nocxx -nojava -script -source" 1,597 kB
[ebuild N ] virtual/jdk-1.5.0 0 kB
[ebuild N F ] dev-java/ibm-jdk-bin-1.5.0.3-r1 USE="X alsa -javacomm (-nsplugin)" 69,064 kB
[ebuild N ] virtual/libstdc++-3.3 0 kB |
Is there a workaround? Thank you in advance, |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Jan 13, 2007 2:19 pm Post subject: |
|
|
in my overlay there is dev-java/gjdoc-0.7.7-r1.
so you may keyword them properly, please.
(in /etc/portage/package.keywords) _________________ hear hear |
|
Back to top |
|
|
Sodki Guru
Joined: 11 Aug 2003 Posts: 419 Location: London, U.K. & Lisbon, Portugal
|
Posted: Sat Jan 13, 2007 6:34 pm Post subject: |
|
|
It seems the result is the same:
Code: | # emerge -pt gjdoc
These are the packages that would be merged, in reverse order:
Calculating dependencies ... done!
[ebuild N ] dev-java/gjdoc-0.7.7-r1 USE="gcj -source -xmldoclet" 713 kB [3]
[ebuild N ] virtual/jre-1.5.0 0 kB
[ebuild N ] dev-java/antlr-2.7.5-r2 USE="mono python -debug -doc -examples -nocxx -nojava -script -source" 1,597 kB
[ebuild N ] virtual/jdk-1.5.0 0 kB
[ebuild N F ] dev-java/ibm-jdk-bin-1.5.0.3-r1 USE="X alsa -javacomm (-nsplugin)" 69,064 kB
[ebuild N ] virtual/libstdc++-3.3 0 kB |
Maybe I have to mask virtual/jdk-1.5.* so that it uses the virtual/jdk from your overlay? Is this the right approach? |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Jan 13, 2007 6:40 pm Post subject: |
|
|
Well, gjdoc and antlr do not pull in 1.5 versions.
Mask them and see what package (if any) fails without that depend. _________________ hear hear |
|
Back to top |
|
|
Sodki Guru
Joined: 11 Aug 2003 Posts: 419 Location: London, U.K. & Lisbon, Portugal
|
Posted: Sat Jan 13, 2007 7:28 pm Post subject: |
|
|
Well, gjdoc depends on >=virtual/jre-1.4 and anlr depends on >=virtual/jdk-1.3. That's where jre and jdk 1.5 came from. Masking them in portage.mask did the trick. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sun Jan 14, 2007 12:58 am Post subject: |
|
|
hmm, gcj-jdk should pull in virtual/{jdk,jre}-1.4.2.
I wonder whats going wrong... _________________ hear hear |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Tue Jan 16, 2007 2:30 pm Post subject: |
|
|
there is a gcj-4.3 ebuild in overlay now.
I do not know in what state I left it. feel free to test and fix stuff.
azureus-2.5.0.2 needs java5. with some hacks i use ecj and gnu-classpath-generics.
it bundles json. and a newer bcprov version should be used. though, newer versions fail here. in this or that way...
again, anyone to fix things, please.
have fun!
... and let us know of any fixes. _________________ hear hear |
|
Back to top |
|
|
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Fri Jan 19, 2007 9:36 am Post subject: |
|
|
http://pastebin.ca/321344 - Error during building ecj
PS.
Could gcj-config be run after upgrading gcj, which is default (ie. from 4.2.x to 4.2.y). _________________ I've probably left my head... somwhere. Please wait untill I find it. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Fri Jan 19, 2007 5:50 pm Post subject: |
|
|
mmh, I am going to test gcj-4.3 with that on postinst now. _________________ hear hear |
|
Back to top |
|
|
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Sat Jan 20, 2007 2:05 pm Post subject: |
|
|
May be it'll help equery f '>gcj-4.2'
Code: | % cat /etc/env.d/99gcj
PATH="/opt/gcj-4.2.0_alpha20070110/bin"
ROOTPATH="/opt/gcj-4.2.0_alpha20070110/bin"
LDPATH="/opt/gcj-4.2.0_alpha20070110/lib"
% echo /opt/gcj-*
/opt/gcj-4.1.1
|
_________________ I've probably left my head... somwhere. Please wait untill I find it. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Jan 20, 2007 3:07 pm Post subject: |
|
|
yo, this helps:
Quote: | rm /etc/env.d/99gcj | then recreate it with gcj-config
btw, gcj-config in postinst does fine, weee....
eclipse-ecj should not fail after gcj upgrade now then, after commit.
current error: http://gcc.gnu.org/ml/java/2007-01/msg00112.html _________________ hear hear |
|
Back to top |
|
|
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Sat Jan 20, 2007 3:36 pm Post subject: |
|
|
I get the same error during emerge.
PS.
It wouldn't be logical to talk about GCJ 4.3 in GCJ 4.3 topic instead of 4.2? _________________ I've probably left my head... somwhere. Please wait untill I find it. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sun Jan 21, 2007 12:14 pm Post subject: |
|
|
packages failing with gcj-4.3:
- junit-4.2 - libgcj - no String.format(...) function
update to be fixed hopefuly _________________ hear hear
Last edited by geki on Sat Feb 17, 2007 2:34 pm; edited 1 time in total |
|
Back to top |
|
|
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Sat Jan 27, 2007 4:28 pm Post subject: |
|
|
I am getting an error with generics during compile phase, building azureus. The following errors are typical Quote: | [javac] 1. ERROR in /var/tmp/portage/azureus-2.5.0.4/work/azureus/com/aelitis/azureus/core/monitoring/thread/AEThreadMonitor.java (at line 187)
[javac] Map<Long,Long> last_times = new HashMap<Long,Long>();
[javac] ^^^
[javac] The type Map is not generic; it cannot be parameterized with arguments <Long, Long>
|
Quote: | [javac] 6. ERROR in /var/tmp/portage/azureus-2.5.0.4/work/azureus/com/aelitis/azureus/core/monitoring/thread
[javac] /AEThreadMonitor.java (at line 320)
[javac] switch (threadInfo.getThreadState()) {
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Cannot switch on a value of type String. Only int values or enum constants are permitted
|
|
|
Back to top |
|
|
|