Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eclipse 3.1 emerge fails at JDTCompilerAdapter
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
jehrlich
n00b
n00b


Joined: 26 Oct 2004
Posts: 6

PostPosted: Sun Jul 17, 2005 2:26 pm    Post subject: eclipse 3.1 emerge fails at JDTCompilerAdapter Reply with quote

My attempt to emerge eclipse-sdk 3.1 fails, I think indicating a problem compiling JDTCompiler Adapter. Suggestions? Is there a log file somewhere that would help?

Thanks,. J.

...
[echo] UPDATE ecj.jar

BUILD SUCCESSFUL
Total time: 27 seconds
[echo] TARGET: compiler2
[echo] compilerArg -encoding ISO-8859-1
[echo] build compiler org.eclipse.jdt.core.JDTCompilerAdapter

BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter org.eclipse.jdt.core.JDTCompilerAdapter caused an interesting exception.

Total time: 2 seconds

BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/build.xml:238: The Eclipse compiler (ecj.jar) cannot be found.

Total time: 1 second

!!! ERROR: dev-util/eclipse-sdk-3.1 failed.
!!! Function src_compile, Line 109, Exitcode 1
!!! Failed to compile eclipse code (gtk+)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sun Jul 17, 2005 6:37 pm    Post subject: Reply with quote

Same problem here. What jdk are you using? What ant version?
I'm using
Code:
sun-jdk-1.5.0.04
ant-1.6.5


EDIT:
FYI: This bug states: "After talking to the Eclipse devs, it turns out that 3.1 is not supposed to compile with 1.5 yet, so I've added a check for that in the ebuild."
Back to top
View user's profile Send private message
jehrlich
n00b
n00b


Joined: 26 Oct 2004
Posts: 6

PostPosted: Sun Jul 17, 2005 10:27 pm    Post subject: Reply with quote

blackdown-jdk-1.4.2.01
ant 1.6.2

assuming it is using the jvm returned by "java-config -f"
Back to top
View user's profile Send private message
gargantua
n00b
n00b


Joined: 05 Mar 2004
Posts: 39
Location: Ireland

PostPosted: Sun Jul 24, 2005 1:14 pm    Post subject: Reply with quote

Similar problem here, except I'm building eclipse-sdk-3.1-r1;

Code:

BUILD SUCCESSFUL
Total time: 26 seconds
 * Bootstrapping ecj
     [echo] TARGET: compiler2
     [echo] compilerArg -encoding ISO-8859-1
     [echo] build compiler org.eclipse.jdt.core.JDTCompilerAdapter

BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found.

Total time: 3 seconds

!!! ERROR: dev-util/eclipse-sdk-3.1-r1 failed.
!!! Function src_compile, Line 105, Exitcode 1
!!! Failed to bootstrap ecj
!!! If you need support, post the topmost build error, NOT this status message.


Code:

gargantua jkiely # java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)


Code:

gargantua jkiely # ant -version
Apache Ant version 1.6.2 compiled on May 15 2005


J.K.

[EDIT] - Sorry, I meant to say (but have been busy over the last few days) that I upgraded 'ant' (including unmerging the 'ant-tasks' that was blocking the upgrade) and re-emerged 'eclipse-sdk', and everything ran smothely. Thanks.


Last edited by gargantua on Tue Jul 26, 2005 12:03 am; edited 1 time in total
Back to top
View user's profile Send private message
jehrlich
n00b
n00b


Joined: 26 Oct 2004
Posts: 6

PostPosted: Sun Jul 24, 2005 7:27 pm    Post subject: resolved Reply with quote

see bug 100096 at https://bugs.gentoo.org/show_bug.cgi?id=100096

This worked for me:

emerge --unmerge ant-tasks
emerge dev-java/ant
emerge eclipse-sdk
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Mon Jul 25, 2005 10:47 pm    Post subject: Reply with quote

Works for me too (same error as gargantua). Add

Code:
dev-java/ant ~x86
dev-java/ant-core ~x86
dev-java/ant-tasks ~x86
dev-util/eclipse-sdk ~x86


to /etc/portage/package.keywords. If ant is already merged

Code:
emerge -C ant-tasks
emerge -uD --oneshot ant


Then

Code:
emerge eclipse-sdk
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