Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ant-core with gcj-jdk on arm fails compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 46

PostPosted: Thu Oct 24, 2013 7:16 am    Post subject: ant-core with gcj-jdk on arm fails compiling Reply with quote

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
View user's profile Send private message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 46

PostPosted: Thu Oct 24, 2013 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 46

PostPosted: Thu Oct 24, 2013 10:57 am    Post subject: Reply with quote

It compiles, but it doesn't link. Does anybody have any hint here?
Back to top
View user's profile Send private message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 46

PostPosted: Thu Oct 24, 2013 2:06 pm    Post subject: Reply with quote

Updating ecj-gcj to 4.2 did not resolv the issue. Any hints on this?
Back to top
View user's profile Send private message
LiquidAcid
Apprentice
Apprentice


Joined: 11 Sep 2006
Posts: 171

PostPosted: Sat Nov 02, 2013 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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