Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Alexey Petrenko

Can javac be sustituted by Eclipse compiler as we do for Harmony build?

SY, Alexey

2006/11/15, Stefano Mazzocchi [EMAIL PROTECTED]:

Great news everyone, I've finally managed to get Gump running with Harmony.

Find it at (the semipermanent URL of Geir's server)

 http://67.86.14.213:1/gump/

and the 'list of todos' with importance priority can be found at

 http://67.86.14.213:1/gump/project_todos.html

The first problem is the lack of javac that bootstrap-ant requires.

Do we have a solution for that?

--
Stefano.




Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Tim Ellison
Stefano Mazzocchi wrote:
 Do we have a solution for that?

Yes, it is a modicum of work for a C-hacker.

It simply requires extending the tools launcher as described earlier
(I'll hunt down the archive if required).

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Alexey Petrenko

2006/11/15, Tim Ellison [EMAIL PROTECTED]:

Stefano Mazzocchi wrote:
 Do we have a solution for that?

Yes, it is a modicum of work for a C-hacker.

It simply requires extending the tools launcher as described earlier
(I'll hunt down the archive if required).

ant runs java compiler without javac executable...

Or I'm missing something?


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Tim Ellison
Alexey Petrenko wrote:
 2006/11/15, Tim Ellison [EMAIL PROTECTED]:
 Stefano Mazzocchi wrote:
  Do we have a solution for that?

 Yes, it is a modicum of work for a C-hacker.

 It simply requires extending the tools launcher as described earlier
 (I'll hunt down the archive if required).
 ant runs java compiler without javac executable...
 
 Or I'm missing something?

If Ant depends upon the non-API com.sun packages in tools.jar then I
guess we can decide to create an adapter in the suncompat module.

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Tim Ellison
Stefano Mazzocchi wrote:
 The first problem is the lack of javac that bootstrap-ant requires.

Can you clarify what 'bootstrap-ant' requires?  Is it running an Ant
javac task, or compiling Ant source with javac.exe?  I was assuming
the latter.

Thanks for getting this going BTW!

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Alexey Petrenko

2006/11/15, Tim Ellison [EMAIL PROTECTED]:

Alexey Petrenko wrote:
 2006/11/15, Tim Ellison [EMAIL PROTECTED]:
 Stefano Mazzocchi wrote:
  Do we have a solution for that?

 Yes, it is a modicum of work for a C-hacker.

 It simply requires extending the tools launcher as described earlier
 (I'll hunt down the archive if required).
 ant runs java compiler without javac executable...

 Or I'm missing something?

If Ant depends upon the non-API com.sun packages in tools.jar

As far as I know yes.


then I guess we can decide to create an adapter in the suncompat module.

Yes, that's also possible.

SY, Alexey


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Sam Ruby

Tim Ellison wrote:

Alexey Petrenko wrote:

2006/11/15, Tim Ellison [EMAIL PROTECTED]:

Stefano Mazzocchi wrote:

Do we have a solution for that?

Yes, it is a modicum of work for a C-hacker.

It simply requires extending the tools launcher as described earlier
(I'll hunt down the archive if required).

ant runs java compiler without javac executable...

Or I'm missing something?


If Ant depends upon the non-API com.sun packages in tools.jar then I
guess we can decide to create an adapter in the suncompat module.


The compiler is pluggable in Ant, look for the build.compiler option:

http://ant.apache.org/manual/CoreTasks/javac.html

- Sam Ruby


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Geir Magnusson Jr.

w00t!

(the server has been heating my office... I can tell when Gump is 
running as the fans spin up...)


geir

Stefano Mazzocchi wrote:

Great news everyone, I've finally managed to get Gump running with Harmony.

Find it at (the semipermanent URL of Geir's server)

 http://67.86.14.213:1/gump/

and the 'list of todos' with importance priority can be found at

 http://67.86.14.213:1/gump/project_todos.html

The first problem is the lack of javac that bootstrap-ant requires.

Do we have a solution for that?



Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Stefano Mazzocchi
Tim Ellison wrote:
 Stefano Mazzocchi wrote:
 The first problem is the lack of javac that bootstrap-ant requires.
 
 Can you clarify what 'bootstrap-ant' requires?  Is it running an Ant
 javac task, or compiling Ant source with javac.exe?  I was assuming
 the latter.

bootstrap-ant is a script that builds ant without ant, so it requires
having the javac executable available.

I could cheat and symlink jikes to it, but I don't want to do that: Gump
is an indicator of what people use in real life and this is the first
sign that harmony needs a javac command in order to proceed in real-life
usefulness and I want to keep that signal clear.

So, if you are curious to see what's the next roadblock, I suggest that
one of you starts coding a javac wrapper for ecj (or anything else that
would do the job, I don't care) ;-)

-- 
Stefano.



Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Geir Magnusson Jr.



Stefano Mazzocchi wrote:

Tim Ellison wrote:

Stefano Mazzocchi wrote:

The first problem is the lack of javac that bootstrap-ant requires.

Can you clarify what 'bootstrap-ant' requires?  Is it running an Ant
javac task, or compiling Ant source with javac.exe?  I was assuming
the latter.


bootstrap-ant is a script that builds ant without ant, so it requires
having the javac executable available.

I could cheat and symlink jikes to it, but I don't want to do that: Gump
is an indicator of what people use in real life and this is the first
sign that harmony needs a javac command in order to proceed in real-life
usefulness and I want to keep that signal clear.


We know :)



So, if you are curious to see what's the next roadblock, I suggest that
one of you starts coding a javac wrapper for ecj (or anything else that
would do the job, I don't care) ;-)


We have one somewhere...





Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Gregory Shimansky
On Wednesday 15 November 2006 19:27 Stefano Mazzocchi wrote:
 Great news everyone, I've finally managed to get Gump running with Harmony.

 Find it at (the semipermanent URL of Geir's server)

  http://67.86.14.213:1/gump/

 and the 'list of todos' with importance priority can be found at

  http://67.86.14.213:1/gump/project_todos.html

 The first problem is the lack of javac that bootstrap-ant requires.

 Do we have a solution for that?

I wonder what is causing those UnsatisfiedLinkErrors at the end of the page. 
What's wrong with loading libhytext.so and how is it related to finding 
javac?

-- 
Gregory Shimansky, Intel Middleware Products Division


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Stefano Mazzocchi
Gregory Shimansky wrote:
 On Wednesday 15 November 2006 19:27 Stefano Mazzocchi wrote:
 Great news everyone, I've finally managed to get Gump running with Harmony.

 Find it at (the semipermanent URL of Geir's server)

  http://67.86.14.213:1/gump/

 and the 'list of todos' with importance priority can be found at

  http://67.86.14.213:1/gump/project_todos.html

 The first problem is the lack of javac that bootstrap-ant requires.

 Do we have a solution for that?
 
 I wonder what is causing those UnsatisfiedLinkErrors at the end of the page. 
 What's wrong with loading libhytext.so and how is it related to finding 
 javac?

First of all, remember that Gump is written in python and uses 'java'
just like any other command, but the environment around that command
might not exactly be the same as the one from the shell. I'm not sure of
the details of that.

Anyway, when Gump starts up, it tries to fire up a bunch of programs
that it expects. I have added those to the path  and I've tested this by
using the sun jvm and achieved the same score of the official gump run.
This tells me that the gump installation is sane.

Now, the only change between the sun gump run and the harmony one is a
change of where JAVA_HOME points to and I wanted to see what happened.

In a perfect world, the score of the harmony gump run would have been
exactly the same as the score on the sun gump run.

This is an indication that the behavior of harmony is different.

So far it's different in two aspects:

 1) there is no javac process in the JAVA_HOME/bin and the bootstrap-ant
module can't work without it

 2) running the 'maven' or 'mvn' scripts fails to load the JVM due to
linkage problems. So either the those scripts fail to setup some native
library-related environment or harmony expects relative paths and might
get screwed by embedded execution in other scripts.

I've just tried to do

 export JAVA_HOME=~/src/harmony/drlvm/build/lnx_em64t_gcc_debug/deploy/jre/

and call maven, mvn and ant and all result in the same error

java/lang/UnsatisfiedLinkError : Failed loading library libhytext.so:
DSO load failed

so it seems that harmony has a problem being launched inside scripts
which is clearly a bug that needs to be fixed.

-- 
Stefano.



Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Tim Ellison
Sam Ruby wrote:
 Tim Ellison wrote:
 If Ant depends upon the non-API com.sun packages in tools.jar then I
 guess we can decide to create an adapter in the suncompat module.
 
 The compiler is pluggable in Ant, look for the build.compiler option:

Understood, in fact we do that for the Harmony build to use ECJ; but we
will need such an adapter for the users that choose not to use such an
Ant adapter, and expect Ant to work unmodified with the Harmony JRE.

In the future we can all use (and provide) the JSR199 compiler APIs.

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


[gump] Gump running on Harmony!!

2006-11-15 Thread Stefano Mazzocchi
Great news everyone, I've finally managed to get Gump running with Harmony.

Find it at (the semipermanent URL of Geir's server)

 http://67.86.14.213:1/gump/

and the 'list of todos' with importance priority can be found at

 http://67.86.14.213:1/gump/project_todos.html

The first problem is the lack of javac that bootstrap-ant requires.

Do we have a solution for that?

-- 
Stefano.



Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Tim Ellison
Geir Magnusson Jr. wrote:
 Stefano Mazzocchi wrote:
 So, if you are curious to see what's the next roadblock, I suggest that
 one of you starts coding a javac wrapper for ecj (or anything else that
 would do the job, I don't care) ;-)
 
 We have one somewhere...

See
http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200605.mbox/[EMAIL
 PROTECTED]

Regards,
Tim

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


Re: [gump] Gump running on Harmony!!

2006-11-15 Thread Geir Magnusson Jr.
That's odd.  The launcher should figure this out.  I'll take a look in a 
sec...


Stefano Mazzocchi wrote:

Gregory Shimansky wrote:

On Wednesday 15 November 2006 19:27 Stefano Mazzocchi wrote:

Great news everyone, I've finally managed to get Gump running with Harmony.

Find it at (the semipermanent URL of Geir's server)

 http://67.86.14.213:1/gump/

and the 'list of todos' with importance priority can be found at

 http://67.86.14.213:1/gump/project_todos.html

The first problem is the lack of javac that bootstrap-ant requires.

Do we have a solution for that?
I wonder what is causing those UnsatisfiedLinkErrors at the end of the page. 
What's wrong with loading libhytext.so and how is it related to finding 
javac?


First of all, remember that Gump is written in python and uses 'java'
just like any other command, but the environment around that command
might not exactly be the same as the one from the shell. I'm not sure of
the details of that.

Anyway, when Gump starts up, it tries to fire up a bunch of programs
that it expects. I have added those to the path  and I've tested this by
using the sun jvm and achieved the same score of the official gump run.
This tells me that the gump installation is sane.

Now, the only change between the sun gump run and the harmony one is a
change of where JAVA_HOME points to and I wanted to see what happened.

In a perfect world, the score of the harmony gump run would have been
exactly the same as the score on the sun gump run.

This is an indication that the behavior of harmony is different.

So far it's different in two aspects:

 1) there is no javac process in the JAVA_HOME/bin and the bootstrap-ant
module can't work without it

 2) running the 'maven' or 'mvn' scripts fails to load the JVM due to
linkage problems. So either the those scripts fail to setup some native
library-related environment or harmony expects relative paths and might
get screwed by embedded execution in other scripts.

I've just tried to do

 export JAVA_HOME=~/src/harmony/drlvm/build/lnx_em64t_gcc_debug/deploy/jre/

and call maven, mvn and ant and all result in the same error

java/lang/UnsatisfiedLinkError : Failed loading library libhytext.so:
DSO load failed

so it seems that harmony has a problem being launched inside scripts
which is clearly a bug that needs to be fixed.