You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Bernhard Rosenkraenzer <be...@arklinux.org> on 2007/04/29 11:03:59 UTC

[drlvm] compile failure

Trying to bootstrap drlvm here results in

BUILD FAILED
/usr/src/ark/BUILD/harmony/working_vm/build/make/build.xml:319: The following 
error occurred while executing this line:
/usr/src/ark/BUILD/harmony/working_vm/build/make/setup.xml:26: 
java.lang.NoClassDefFoundError: net.sf.antcontrib.math.Numeric

Strangely enough, the class definition exists in 
pre-copied/common/ANTCONTRIB/ant-contrib/lib/ant-contrib.jar, so I assume the 
classpath isn't being set correctly for some reason (copying ant-contrib.jar 
to $ANT_HOME/lib doesn't change anything).

There is no other version of ant-contrib installed on the system.

I'm not familiar with ant - any ideas about this?

Thanks,
bero

Re: [drlvm] compile failure

Posted by Tim Ellison <t....@gmail.com>.
Bernhard Rosenkraenzer wrote:
> On Sunday 29 April 2007, Nathan Beyer wrote:
>> I've never had a successful build with ant 1.7. I would suggest using ant
>> 1.6.5.
> 
> I've just tried with 1.6.5 -- exactly the same behavior. (And there's 
> definitely only 1 version of ant on the system).
> I'm starting to think ant's class loader doesn't like gcj, but on the other 
> hand, the other optional ant tasks (junit support etc.) are working just as 
> expected.

FWIW I just built the class libraries ok with Ant 1.7 on Harmony (I
didn't try DRLVM yet).

Can you download a different JRE to run Ant and see if that helps?
There are some here [1] that I could recommend <g>.

[1] http://harmony.apache.org/downloads.html#Stable

Regards,
Tim


Re: [drlvm] compile failure

Posted by Bernhard Rosenkraenzer <be...@arklinux.org>.
On Sunday 29 April 2007, Nathan Beyer wrote:
> I've never had a successful build with ant 1.7. I would suggest using ant
> 1.6.5.

I've just tried with 1.6.5 -- exactly the same behavior. (And there's 
definitely only 1 version of ant on the system).
I'm starting to think ant's class loader doesn't like gcj, but on the other 
hand, the other optional ant tasks (junit support etc.) are working just as 
expected.

>
> -Nathan
>
> On 4/29/07, Tony Wu <wu...@gmail.com> wrote:
> > make sure the ant you are running is the right one located in
> > ANT_HOME. IIRC, there is an ant.conf files in Redhat with higher
> > priority.
> >
> > On 4/29/07, Alexey Petrenko <al...@gmail.com> wrote:
> > > I've never tried to build vm with gcj and have not see this error.
> > > Probably some more experienced in VM build people will help you.
> > >
> > > Sorry.
> > >
> > > SY, Alexey
> > >
> > > 2007/4/29, Bernhard Rosenkraenzer <be...@arklinux.org>:
> > > > On Sunday 29 April 2007, Alexey Petrenko wrote:
> > > > > how do you run the build?
> > > > >
> > > > > cd /usr/src/ark/BUILD/harmony/working_vm/build/
> > > > > ./build.sh update
> > > > > ./build.sh
> > > > >
> > > > > ?
> > > >
> > > > Yes, exactly that. (And I copied the preferences example file to the
> > > > preferences file too).
> > > >
> > > > A possible reason is that I'm trying to use gcj to bootstrap harmony,
> >
> > but I
> >
> > > > don't think it would cause that, gcj fails at a couple of things, but
> >
> > not at
> >
> > > > reading the files in the classpath.
> > > > gcj is 4.2.0, ant is 1.7.0.
> > > >
> > > > Regards,
> > > > bero
> >
> > --
> > Tony Wu
> > China Software Development Lab, IBM



-- 
Get your own Linux distribution -- http://www.yold.org/

Re: [drlvm] compile failure

Posted by Nathan Beyer <nd...@apache.org>.
I've never had a successful build with ant 1.7. I would suggest using ant 1.6.5.

-Nathan


On 4/29/07, Tony Wu <wu...@gmail.com> wrote:
> make sure the ant you are running is the right one located in
> ANT_HOME. IIRC, there is an ant.conf files in Redhat with higher
> priority.
>
> On 4/29/07, Alexey Petrenko <al...@gmail.com> wrote:
> > I've never tried to build vm with gcj and have not see this error.
> > Probably some more experienced in VM build people will help you.
> >
> > Sorry.
> >
> > SY, Alexey
> >
> > 2007/4/29, Bernhard Rosenkraenzer <be...@arklinux.org>:
> > > On Sunday 29 April 2007, Alexey Petrenko wrote:
> > > > how do you run the build?
> > > >
> > > > cd /usr/src/ark/BUILD/harmony/working_vm/build/
> > > > ./build.sh update
> > > > ./build.sh
> > > >
> > > > ?
> > >
> > > Yes, exactly that. (And I copied the preferences example file to the
> > > preferences file too).
> > >
> > > A possible reason is that I'm trying to use gcj to bootstrap harmony,
> but I
> > > don't think it would cause that, gcj fails at a couple of things, but
> not at
> > > reading the files in the classpath.
> > > gcj is 4.2.0, ant is 1.7.0.
> > >
> > > Regards,
> > > bero
> > >
> >
>
>
> --
> Tony Wu
> China Software Development Lab, IBM
>

Re: [drlvm] compile failure

Posted by Tony Wu <wu...@gmail.com>.
make sure the ant you are running is the right one located in
ANT_HOME. IIRC, there is an ant.conf files in Redhat with higher
priority.

On 4/29/07, Alexey Petrenko <al...@gmail.com> wrote:
> I've never tried to build vm with gcj and have not see this error.
> Probably some more experienced in VM build people will help you.
>
> Sorry.
>
> SY, Alexey
>
> 2007/4/29, Bernhard Rosenkraenzer <be...@arklinux.org>:
> > On Sunday 29 April 2007, Alexey Petrenko wrote:
> > > how do you run the build?
> > >
> > > cd /usr/src/ark/BUILD/harmony/working_vm/build/
> > > ./build.sh update
> > > ./build.sh
> > >
> > > ?
> >
> > Yes, exactly that. (And I copied the preferences example file to the
> > preferences file too).
> >
> > A possible reason is that I'm trying to use gcj to bootstrap harmony, but I
> > don't think it would cause that, gcj fails at a couple of things, but not at
> > reading the files in the classpath.
> > gcj is 4.2.0, ant is 1.7.0.
> >
> > Regards,
> > bero
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Re: [drlvm] compile failure

Posted by Alexey Petrenko <al...@gmail.com>.
I've never tried to build vm with gcj and have not see this error.
Probably some more experienced in VM build people will help you.

Sorry.

SY, Alexey

2007/4/29, Bernhard Rosenkraenzer <be...@arklinux.org>:
> On Sunday 29 April 2007, Alexey Petrenko wrote:
> > how do you run the build?
> >
> > cd /usr/src/ark/BUILD/harmony/working_vm/build/
> > ./build.sh update
> > ./build.sh
> >
> > ?
>
> Yes, exactly that. (And I copied the preferences example file to the
> preferences file too).
>
> A possible reason is that I'm trying to use gcj to bootstrap harmony, but I
> don't think it would cause that, gcj fails at a couple of things, but not at
> reading the files in the classpath.
> gcj is 4.2.0, ant is 1.7.0.
>
> Regards,
> bero
>

Re: [drlvm] compile failure

Posted by Bernhard Rosenkraenzer <be...@arklinux.org>.
On Sunday 29 April 2007, Alexey Petrenko wrote:
> how do you run the build?
>
> cd /usr/src/ark/BUILD/harmony/working_vm/build/
> ./build.sh update
> ./build.sh
>
> ?

Yes, exactly that. (And I copied the preferences example file to the 
preferences file too).

A possible reason is that I'm trying to use gcj to bootstrap harmony, but I 
don't think it would cause that, gcj fails at a couple of things, but not at 
reading the files in the classpath.
gcj is 4.2.0, ant is 1.7.0.

Regards,
bero

Re: [drlvm] compile failure

Posted by Alexey Petrenko <al...@gmail.com>.
how do you run the build?

cd /usr/src/ark/BUILD/harmony/working_vm/build/
./build.sh update
./build.sh

?

2007/4/29, Bernhard Rosenkraenzer <be...@arklinux.org>:
> Trying to bootstrap drlvm here results in
>
> BUILD FAILED
> /usr/src/ark/BUILD/harmony/working_vm/build/make/build.xml:319: The following
> error occurred while executing this line:
> /usr/src/ark/BUILD/harmony/working_vm/build/make/setup.xml:26:
> java.lang.NoClassDefFoundError: net.sf.antcontrib.math.Numeric
>
> Strangely enough, the class definition exists in
> pre-copied/common/ANTCONTRIB/ant-contrib/lib/ant-contrib.jar, so I assume the
> classpath isn't being set correctly for some reason (copying ant-contrib.jar
> to $ANT_HOME/lib doesn't change anything).
>
> There is no other version of ant-contrib installed on the system.
>
> I'm not familiar with ant - any ideas about this?
>
> Thanks,
> bero
>