View previous topic :: View next topic |
Author |
Message |
mansonquasch n00b
Joined: 15 Jan 2007 Posts: 47
|
Posted: Thu Oct 24, 2013 7:16 am Post subject: ant-core with gcj-jdk on arm fails compiling |
|
|
Hi,
I want to have java installed on my Odroid U2 box and thus I have emerged gcj-gdk (4.7.3) and gcc with useflag=gcj (4.7.3). I'd like to compile icedtea and then replace the gcj-jdk with it. However, compilation fails already for ant-core:
Code: |
Syntax error, annotations are only available if source level is 1.5
----------
----------
2848. WARNING in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/src/main/org/apache/tools/mail/ErrorInQuitException.java (at line 32)
public class ErrorInQuitException extends IOException {
^^^^^^^^^^^^^^^^^^^^
The serializable class ErrorInQuitException does not declare a static final serialVersionUID field of type long
----------
2848 problems (2782 errors, 66 warnings)... Failed compiling Ant classes !
Bootstrap FAILED
* ERROR: dev-java/ant-core-1.9.2::gentoo failed (compile phase):
* build failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 4147: Called die
* The specific snippet of code:
* CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars internal_dist $(use_doc javadocs) || die "build failed"
*
* If you need support, post the output of `emerge --info '=dev-java/ant-core-1.9.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.9.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk CLASSPATH="" JAVA_HOME="/usr/lib/gcj-jdk-4.7.3"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info =ant-core-1.9.2
* The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
* S: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
>>> Failed to emerge dev-java/ant-core-1.9.2, Log file:
>>> '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'
* Messages for package dev-java/ant-core-1.9.2:
* ERROR: dev-java/ant-core-1.9.2::gentoo failed (compile phase):
* build failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 4147: Called die
* The specific snippet of code:
* CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars internal_dist $(use_doc javadocs) || die "build failed"
*
* If you need support, post the output of `emerge --info '=dev-java/ant-core-1.9.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.9.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
* S: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
|
I am abit puzzled about the fact that JAVACFLAGS does not contain any compiler. Is this ok? Further, should I change anything else in there? Maybe the 'source 1.5' parameter is wrong such as indicated in the snippet of output of the failing emerge.
Thanks a lot!
-m |
|
Back to top |
|
|
mansonquasch n00b
Joined: 15 Jan 2007 Posts: 47
|
Posted: Thu Oct 24, 2013 8:19 am Post subject: |
|
|
Well, using gcj instead of ecj-gcj, it seems to compile. Weird. Anyway, I reset the javac link to point to gcj and now it compiles. I'll post if it doesn't succeed. |
|
Back to top |
|
|
mansonquasch n00b
Joined: 15 Jan 2007 Posts: 47
|
Posted: Thu Oct 24, 2013 10:57 am Post subject: |
|
|
It compiles, but it doesn't link. Does anybody have any hint here? |
|
Back to top |
|
|
mansonquasch n00b
Joined: 15 Jan 2007 Posts: 47
|
Posted: Thu Oct 24, 2013 2:06 pm Post subject: |
|
|
Updating ecj-gcj to 4.2 did not resolv the issue. Any hints on this? |
|
Back to top |
|
|
LiquidAcid Apprentice
Joined: 11 Sep 2006 Posts: 171
|
Posted: Sat Nov 02, 2013 5:47 pm Post subject: |
|
|
I'm in a similar situation, on an ODROID-X2. I want to install icedtea:7 and obviously the binary package doesn't work on armv7.
I managed to compile ant-core-1.8.4-r1 with ecj-gcj. Still need to check if this is enough to build icedtea. My plan is to rebuild the java related packages once I have a running build of icedtea. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|