You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Stefano Mazzocchi <st...@apache.org> on 2006/11/15 17:27:46 UTC
[gump] Gump running on Harmony!!
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:10000/gump/
and the 'list of todos' with importance priority can be found at
http://67.86.14.213:10000/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!!
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
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:10000/gump/
>>>
>>> and the 'list of todos' with importance priority can be found at
>>>
>>> http://67.86.14.213:10000/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.
>
Re: [gump] Gump running on Harmony!!
Posted by Stefano Mazzocchi <st...@apache.org>.
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:10000/gump/
>>
>> and the 'list of todos' with importance priority can be found at
>>
>> http://67.86.14.213:10000/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!!
Posted by Gregory Shimansky <gs...@gmail.com>.
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:10000/gump/
>
> and the 'list of todos' with importance priority can be found at
>
> http://67.86.14.213:10000/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!!
Posted by Tim Ellison <t....@gmail.com>.
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 (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [gump] Gump running on Harmony!!
Posted by Sam Ruby <ru...@apache.org>.
Tim Ellison wrote:
> Alexey Petrenko wrote:
>> 2006/11/15, Tim Ellison <t....@gmail.com>:
>>> 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!!
Posted by Alexey Petrenko <al...@gmail.com>.
2006/11/15, Tim Ellison <t....@gmail.com>:
> Alexey Petrenko wrote:
> > 2006/11/15, Tim Ellison <t....@gmail.com>:
> >> 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!!
Posted by Tim Ellison <t....@gmail.com>.
Alexey Petrenko wrote:
> 2006/11/15, Tim Ellison <t....@gmail.com>:
>> 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 (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [gump] Gump running on Harmony!!
Posted by Alexey Petrenko <al...@gmail.com>.
2006/11/15, Tim Ellison <t....@gmail.com>:
> 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!!
Posted by Tim Ellison <t....@gmail.com>.
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 (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [gump] Gump running on Harmony!!
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Stefan Bodewig wrote:
> On Fri, 17 Nov 2006, Geir Magnusson, Jr. <ge...@pobox.com> wrote:
>
>> We use ECJ all the time from our ant scripts - there's no need for
>> anything special for ant, IIRC - just drop the ecj.jar into the
>> ant/lib and set it as the compiler. I can forward an example if
>> need be.
>
> Ok, in a Gump context that means you'd need to treat ecj.jar the same
> way as tools.jar in a Gump run on a Sun VM. And you must set the
> build.compiler property.
>
>> Our javac (like all of our tools) is a binary executable launcher
>> that invokes our VM that uses ecj, which I don't think solves
>> your... wait - gump is python right?
>
> That doesn't matter much.
>
> For the projects running Ant a combination of ecj.jar and
> build.compiler will do fine. But for the shell script bootstrapping
> Ant and some of the projects which fork an external compiler Gump will
> need a javac like executable.
Got it. thx
geir
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 17 Nov 2006, Geir Magnusson, Jr. <ge...@pobox.com> wrote:
> We use ECJ all the time from our ant scripts - there's no need for
> anything special for ant, IIRC - just drop the ecj.jar into the
> ant/lib and set it as the compiler. I can forward an example if
> need be.
Ok, in a Gump context that means you'd need to treat ecj.jar the same
way as tools.jar in a Gump run on a Sun VM. And you must set the
build.compiler property.
> Our javac (like all of our tools) is a binary executable launcher
> that invokes our VM that uses ecj, which I don't think solves
> your... wait - gump is python right?
That doesn't matter much.
For the projects running Ant a combination of ecj.jar and
build.compiler will do fine. But for the shell script bootstrapping
Ant and some of the projects which fork an external compiler Gump will
need a javac like executable.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Stefan Bodewig wrote:
> On Thu, 16 Nov 2006, Stefano Mazzocchi <st...@apache.org> wrote:
>> Stefan Bodewig wrote:
>
>>> Stefano, you later mention ecj. Ant could probably benefit from a
>>> compiler adapter to it so you could set a property in Gump's
>>> workspace and have ant use that on all projects.
>>>
>>> The environment variable JAVAC should work for bootstrap.sh as
>>> well, as long as ecj is command line compatible to javac.
>> Not sure what action you are suggesting me to do :-)
>
> Not sure whether I know myself.
>
> The eclipse compiler does have an Ant adapter, at least it used to
> have, somewhere in the eclipse repo. If you wanted to use that in
> Gump you had to make sure the adapter was on the CLASSPATH and you'd
> need to set the build.compiler property on every Ant run in Gump (can
> be done at the workspace level).
We use ECJ all the time from our ant scripts - there's no need for
anything special for ant, IIRC - just drop the ecj.jar into the ant/lib
and set it as the compiler. I can forward an example if need be.
>
> I'm not familiar enough with the javac options of Harmony to know what
> the best approach is. Is ecj Harmony's compiler of choice? If so my
> suggestion is to set the JAVAC environment variable for bootstrap-ant
> to point to it and to locate the compiler adapter and use it.
Our javac (like all of our tools) is a binary executable launcher that
invokes our VM that uses ecj, which I don't think solves your... wait -
gump is python right?
>
> I don't think this would affect the Maven builds, though.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 16 Nov 2006, Stefano Mazzocchi <st...@apache.org> wrote:
> Stefan Bodewig wrote:
>> Stefano, you later mention ecj. Ant could probably benefit from a
>> compiler adapter to it so you could set a property in Gump's
>> workspace and have ant use that on all projects.
>>
>> The environment variable JAVAC should work for bootstrap.sh as
>> well, as long as ecj is command line compatible to javac.
>
> Not sure what action you are suggesting me to do :-)
Not sure whether I know myself.
The eclipse compiler does have an Ant adapter, at least it used to
have, somewhere in the eclipse repo. If you wanted to use that in
Gump you had to make sure the adapter was on the CLASSPATH and you'd
need to set the build.compiler property on every Ant run in Gump (can
be done at the workspace level).
I'm not familiar enough with the javac options of Harmony to know what
the best approach is. Is ecj Harmony's compiler of choice? If so my
suggestion is to set the JAVAC environment variable for bootstrap-ant
to point to it and to locate the compiler adapter and use it.
I don't think this would affect the Maven builds, though.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Stefano Mazzocchi <st...@apache.org>.
Stefan Bodewig wrote:
> On Wed, 15 Nov 2006, Leo Simons <ma...@leosimons.com> wrote:
>> On Nov 15, 2006, at 5:27 PM, Stefano Mazzocchi wrote:
>>> Great news everyone, I've finally managed to get Gump running with
>>> Harmony.
>
> cool.
>
>>> The first problem is the lack of "javac" that bootstrap-ant
>>> requires.
>>>
>>> Do we have a solution for that?
>> How about installing jikes? And doing an 'alias'?
>
> We don't even need an alias since Ant's bootstrap script and <javac>
> task will use jikes if you set an environment variable (for the
> bootstrap script) or an Ant property. I think we already do that for
> the Kaffe builds on helios.
I see. I'll take a look.
> Stefano, you later mention ecj. Ant could probably benefit from a
> compiler adapter to it so you could set a property in Gump's workspace
> and have ant use that on all projects.
>
> The environment variable JAVAC should work for bootstrap.sh as well,
> as long as ecj is command line compatible to javac.
Not sure what action you are suggesting me to do :-)
--
Stefano.
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 15 Nov 2006, Leo Simons <ma...@leosimons.com> wrote:
> On Nov 15, 2006, at 5:27 PM, Stefano Mazzocchi wrote:
>> Great news everyone, I've finally managed to get Gump running with
>> Harmony.
cool.
>> The first problem is the lack of "javac" that bootstrap-ant
>> requires.
>>
>> Do we have a solution for that?
>
> How about installing jikes? And doing an 'alias'?
We don't even need an alias since Ant's bootstrap script and <javac>
task will use jikes if you set an environment variable (for the
bootstrap script) or an Ant property. I think we already do that for
the Kaffe builds on helios.
Stefano, you later mention ecj. Ant could probably benefit from a
compiler adapter to it so you could set a property in Gump's workspace
and have ant use that on all projects.
The environment variable JAVAC should work for bootstrap.sh as well,
as long as ecj is command line compatible to javac.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Stefano Mazzocchi <st...@apache.org>.
Leo Simons wrote:
> On Nov 15, 2006, at 5:27 PM, Stefano Mazzocchi wrote:
>> Great news everyone, I've finally managed to get Gump running with
>> Harmony.
>
> sweet!
>
>> Find it at (the semipermanent URL of Geir's server)
>>
>> http://67.86.14.213:10000/gump/
>>
>> and the 'list of todos' with importance priority can be found at
>>
>> http://67.86.14.213:10000/gump/project_todos.html
>>
>> The first problem is the lack of "javac" that bootstrap-ant requires.
>>
>> Do we have a solution for that?
>
> How about installing jikes? And doing an 'alias'?
I'm thinking of leaving the pressure and see if anybody writes a javac
wrapper around ecj ;-)
--
Stefano.
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Leo Simons <ma...@leosimons.com>.
On Nov 15, 2006, at 5:27 PM, Stefano Mazzocchi wrote:
> Great news everyone, I've finally managed to get Gump running with
> Harmony.
sweet!
> Find it at (the semipermanent URL of Geir's server)
>
> http://67.86.14.213:10000/gump/
>
> and the 'list of todos' with importance priority can be found at
>
> http://67.86.14.213:10000/gump/project_todos.html
>
> The first problem is the lack of "javac" that bootstrap-ant requires.
>
> Do we have a solution for that?
How about installing jikes? And doing an 'alias'?
LSD
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: [gump] Gump running on Harmony!!
Posted by Alexey Petrenko <al...@gmail.com>.
Can javac be sustituted by Eclipse compiler as we do for Harmony build?
SY, Alexey
2006/11/15, Stefano Mazzocchi <st...@apache.org>:
> 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:10000/gump/
>
> and the 'list of todos' with importance priority can be found at
>
> http://67.86.14.213:10000/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!!
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
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:10000/gump/
>
> and the 'list of todos' with importance priority can be found at
>
> http://67.86.14.213:10000/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!!
Posted by Tim Ellison <t....@gmail.com>.
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/%3C4475AFD9.5000902@gmail.com%3E
Regards,
Tim
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
Re: [gump] Gump running on Harmony!!
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
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!!
Posted by Stefano Mazzocchi <st...@apache.org>.
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!!
Posted by Tim Ellison <t....@gmail.com>.
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 (t.p.ellison@gmail.com)
IBM Java technology centre, UK.