Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Building with bree-libs causes a problem in org.eclipse.jdt.compiler.tool

There are two JDKs involved -- build JDK, i.e. the JDK that runs Tycho
and other build tools, and target JDK, i.e. the JDK the project is
compiled against.

For the target JDK, Tycho needs to find all jar files that include class
libraries provided by the JDK, and I am guessing this code [1]
misbehaves for IBM JDKs. This is just a guess, however, so the problem
can be something else.


[1] https://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-compiler-jdt/src/main/java/org/eclipse/tycho/compiler/jdt/CompilerMain.java#n103

--
Regards,
Igor

On 12-09-17 4:17 PM, John Arthorne wrote:
Why would Tycho be affected by who the VM vendor is? Many of the class
libraries are actually the same between the IBM and Oracle JDK's,
especially these javax.tools packages. Do you think Tycho is making
assumptions about JDK implementation details that might not be true for
the IBM JDK?

John



*Igor Fedorenko <igor@xxxxxxxxxxxxxx>*
Sent by: cbi-dev-bounces@xxxxxxxxxxx

09/17/2012 04:02 PM
Please respond to
Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>


	
To
	cbi-dev@xxxxxxxxxxx
cc
	
Subject
	Re: [cbi-dev] Building with bree-libs causes a        problem  in
  org.eclipse.jdt.compiler.tool


	





I believe this error can be explained by lack of IBM JDK support in Tycho.

--
Regards,
Igor

On 12-09-17 3:59 PM, John Arthorne wrote:
 > I have entered this bug against JDT:
 >
 > https://bugs.eclipse.org/bugs/show_bug.cgi?id=389759
 >
 > John
 >
 >
 >
 > *Igor Fedorenko <igor@xxxxxxxxxxxxxx>*
 > Sent by: cbi-dev-bounces@xxxxxxxxxxx
 >
 > 09/17/2012 03:02 PM
 > Please respond to
 > Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
 >
 >
 >
 > To
 >                  cbi-dev@xxxxxxxxxxx
 > cc
 >
 > Subject
 >                  Re: [cbi-dev] Building with bree-libs causes a
problem  in
 >   org.eclipse.jdt.compiler.tool
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 > On 12-09-17 2:12 PM, John Arthorne wrote:
 >  > I think being able to compile against IBM JDK is important. The Oracle
 >  > JVM is not available on all platforms. In fact I thought
 >  > build.eclipse.org was only using IBM JDK because there is no
HotSpot for
 >  > Linux PPC-64.
 >
 > Currently, it is not necessary to use JDK compatible with the
 > build system. This is the case for Tycho and I also believe this is true
 > for PDE/Build too. For example, build.eclipse.org uses win32 version of
 > 1.4 jdk as far as I can tell. At least it was when I was setting up BREE
 > libraries for CBI build.
 >
 >
 >  >
 >  > I also suggest entering a bug against JDT core for this. This is JDT
 >  > core compiling itself, so there's a good chance the problem is in
 > there ;)
 >  >
 >
 > What JDT bug?
 >
 > JDT does not calculate compile classpath, at least not during Tycho
 > build, so the bug should be against Tycho, not JDT
 >
 > If you are talking discrepancies when building against SUN and IBM JDKs,
 > I do not know enough this to know if the problem is in JDT or IBM JDK. I
 > brought this issue on cbi-dev earlier [1], btw.
 >
 >
 > [1] http://dev.eclipse.org/mhonarc/lists/cbi-dev/msg00587.html
 >
 >
 > --
 > Regards,
 > Igor
 >
 >
 >  > John
 >  >
 >  >
 >  >
 >  > *Igor Fedorenko <igor@xxxxxxxxxxxxxx>*
 >  > Sent by: cbi-dev-bounces@xxxxxxxxxxx
 >  >
 >  > 09/17/2012 01:52 PM
 >  > Please respond to
 >  > Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
 >  >
 >  >
 >  >
 >  > To
 >  >  cbi-dev@xxxxxxxxxxx
 >  > cc
 >  >
 >  > Subject
 >  >  Re: [cbi-dev] Building with bree-libs causes a
 > problem in
 >  >   org.eclipse.jdt.compiler.tool
 >  >
 >  >
 >  >
 >  >
 >  >
 >  >
 >  >
 >  >
 >  > No. How Tycho looks for jars is coded in java.
 >  >
 >  > Is this a requirement to be able to compile against IBM JDK? I
know that
 >  > compiling against IBM JDK 1.4 resulted in some discrepancies in
 >  > generated class files compared to Juno, so I wonder if we can assume
 >  > Oracle/SUN JDK for now.
 >  >
 >  > --
 >  > Regards,
 >  > Igor
 >  >
 >  > On 12-09-17 1:40 PM, Paul Webster wrote:
 >  >  > On Mon, Sep 17, 2012 at 1:24 PM, Igor Fedorenko
<igor@xxxxxxxxxxxxxx
 >  >  > <mailto:igor@xxxxxxxxxxxxxx>> wrote:
 >  >  >
 >  >  >     Does the build work with Oracle/SUN JDK set in toolchain.xml?
 >  >  >
 >  >  >
 >  >  > Looks like it works with an Oracle JDK.  Maybe a mismatch in
the jars
 >  >  > that the toolchain looks for and the IBM JRE provides?
 >  >  >
 >  >  > Is that something that can be modified in the toolchain.xml file?
 >  >  >
 >  >  > Later,
 >  >  > PW
 >  >  >
 >  >  > --
 >  >  > Paul Webster
 >  >  > Hi floor.  Make me a sammich! - GIR
 >  >  >
 >  >  >
 >  >  > _______________________________________________
 >  >  > cbi-dev mailing list
 >  >  > cbi-dev@xxxxxxxxxxx
 >  >  > http://dev.eclipse.org/mailman/listinfo/cbi-dev
 >  >  >
 >  > _______________________________________________
 >  > cbi-dev mailing list
 >  > cbi-dev@xxxxxxxxxxx
 >  > http://dev.eclipse.org/mailman/listinfo/cbi-dev
 >  >
 >  >
 >  >
 >  >
 >  > _______________________________________________
 >  > cbi-dev mailing list
 >  > cbi-dev@xxxxxxxxxxx
 >  > http://dev.eclipse.org/mailman/listinfo/cbi-dev
 >  >
 > _______________________________________________
 > cbi-dev mailing list
 > cbi-dev@xxxxxxxxxxx
 > http://dev.eclipse.org/mailman/listinfo/cbi-dev
 >
 >
 >
 >
 > _______________________________________________
 > cbi-dev mailing list
 > cbi-dev@xxxxxxxxxxx
 > http://dev.eclipse.org/mailman/listinfo/cbi-dev
 >
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev




_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev



Back to the top