You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by liaoyin <us...@gmail.com> on 2008/02/29 12:42:17 UTC

help me -build error.

I want to build the harmony
I follow the instructions on the web

I type the commands as follow

$ ant populate-src

$ cd working_classlib
$ svn update


$ cd working_classlib
$ ant fetch-depends

then the errors as follow

BUILD FAILED
C:\trunk\working_classlib\build.xml:282: The following error occurred while
executing this line:
C:\trunk\working_classlib\make\depends.xml:363: The following error occurred
while executing this line:
C:\trunk\working_classlib\make\depends.xml:442: ...

File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
    Found:    4cdbc6358cb289bb2feea38090406d1c

Total time: 5 minutes 53 seconds

what is wrong? thank you.

Re: help me -build error.

Posted by Tim Ellison <t....@gmail.com>.
Johnny Kewl wrote:
>> File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
>>    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
>>    Found:    4cdbc6358cb289bb2feea38090406d1c
> 
> I also got that error, there is something wrong with the download, it 
> cuts off.
> Download the file in your browser and throw it in then it works??

Yes.  The build script tries to download it from the main Apache site
http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.9.1.zip

You can maybe try getting it from a mirror site, see the list here
http://www.apache.org/mirrors

e.g. ant 
-Dxerces.url=http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.9.1.zip

(with the URL of your choice)

Regards,
Tim


Re: help me -build error.

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message ----- 
From: "liaoyin" <us...@gmail.com>
To: <de...@harmony.apache.org>
Sent: Friday, February 29, 2008 1:42 PM
Subject: help me -build error.


>I want to build the harmony
> I follow the instructions on the web
>
> I type the commands as follow
>
> $ ant populate-src
>
> $ cd working_classlib
> $ svn update
>
>
> $ cd working_classlib
> $ ant fetch-depends
>
> then the errors as follow
>
> BUILD FAILED
> C:\trunk\working_classlib\build.xml:282: The following error occurred 
> while
> executing this line:
> C:\trunk\working_classlib\make\depends.xml:363: The following error 
> occurred
> while executing this line:
> C:\trunk\working_classlib\make\depends.xml:442: ...
>
> File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
>    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
>    Found:    4cdbc6358cb289bb2feea38090406d1c

I also got that error, there is something wrong with the download, it cuts 
off.
Download the file in your browser and throw it in then it works??

>
> Total time: 5 minutes 53 seconds
>
> what is wrong? thank you.
> 


Re: help me -build error.

Posted by Alexey Varlamov <al...@gmail.com>.
Hmm, which "trunk" do you mean - so only "working_classlib" is left,
no other modules around? Currently working_classlib should be
self-sufficient anyway, if you have a VM to run with.

You need to delete the offending file (namely
depends/jars/xerces_2.9.1/xerces.zip) and retry:
$ ant fetch-depends build


2008/2/29, liaoyin <us...@gmail.com>:
>  Yes.
>  It is not the  first run.
>  but  when  I  run   the build command ,I delete the  "trunk" the
> directory.
>  will  it  casue  the problem? how to  solve the problem?
>
> 2008/2/29, Alexey Varlamov <al...@gmail.com>:
> >
> > 2008/2/29, liaoyin <us...@gmail.com>:
> >
> > > I want to build the harmony
> > > I follow the instructions on the web
> > >
> > > I type the commands as follow
> > >
> > > $ ant populate-src
> > >
> > > $ cd working_classlib
> > > $ svn update
> > >
> > >
> > > $ cd working_classlib
> > > $ ant fetch-depends
> > >
> > > then the errors as follow
> > >
> > > BUILD FAILED
> > > C:\trunk\working_classlib\build.xml:282: The following error occurred
> > while
> > > executing this line:
> > > C:\trunk\working_classlib\make\depends.xml:363: The following error
> > occurred
> > > while executing this line:
> > > C:\trunk\working_classlib\make\depends.xml:442: ...
> > >
> > > File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
> > >    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
> > >    Found:    4cdbc6358cb289bb2feea38090406d1c
> > >
> > > Total time: 5 minutes 53 seconds
> > >
> > > what is wrong? thank you.
> > >
> >
> > I guess the above log is not from the 1st run?
> > Most probably previous download attempt has failed (or was aborted) so
> > the downloaded file is broken. The build does not try to reload
> > existing file and just complains that it is not exactly expected
> > thing.
> >
> > Regards,
> >
> > Alexey
> >
>

Re: help me -build error.

Posted by Alexey Varlamov <al...@gmail.com>.
2008/2/29, liaoyin <us...@gmail.com>:
> oh ,I am sorry ,it does not  have an effect.

That is strange. Are you behind a caching proxy? Can you download that
zip by hands and check if it is valid?

>
> 2008/2/29, Tim Ellison <t....@gmail.com>:
> >
> > liaoyin wrote:
> > > Yes. It is not the first run. but when I run the build command ,I
> > > delete the "trunk" the directory. will it casue the problem? how to
> > > solve the problem?
> >
> >
> > No you don't need to delete the whole tree, just remove the file whose
> > MD5 sum is wrong (xerces.zip), and try that step again.
> >
> > Regards,
> >
> > Tim
> >
> >
>

Re: help me -build error.

Posted by liaoyin <us...@gmail.com>.
oh ,I am sorry ,it does not  have an effect.

2008/2/29, Tim Ellison <t....@gmail.com>:
>
> liaoyin wrote:
> > Yes. It is not the first run. but when I run the build command ,I
> > delete the "trunk" the directory. will it casue the problem? how to
> > solve the problem?
>
>
> No you don't need to delete the whole tree, just remove the file whose
> MD5 sum is wrong (xerces.zip), and try that step again.
>
> Regards,
>
> Tim
>
>

Re: help me -build error.

Posted by Tim Ellison <t....@gmail.com>.
liaoyin wrote:
> Yes. It is not the first run. but when I run the build command ,I
> delete the "trunk" the directory. will it casue the problem? how to
> solve the problem?

No you don't need to delete the whole tree, just remove the file whose 
MD5 sum is wrong (xerces.zip), and try that step again.

Regards,
Tim


Re: help me -build error.

Posted by Alexey Petrenko <al...@gmail.com>.
Try to remove depends directories from working_*
And then run from top-level: ant -Dauto.fetch=true

2008/2/29, liaoyin <us...@gmail.com>:
>  Yes.
>  It is not the  first run.
>  but  when  I  run   the build command ,I delete the  "trunk" the
> directory.
>  will  it  casue  the problem? how to  solve the problem?
>
> 2008/2/29, Alexey Varlamov <al...@gmail.com>:
> >
> > 2008/2/29, liaoyin <us...@gmail.com>:
> >
> > > I want to build the harmony
> > > I follow the instructions on the web
> > >
> > > I type the commands as follow
> > >
> > > $ ant populate-src
> > >
> > > $ cd working_classlib
> > > $ svn update
> > >
> > >
> > > $ cd working_classlib
> > > $ ant fetch-depends
> > >
> > > then the errors as follow
> > >
> > > BUILD FAILED
> > > C:\trunk\working_classlib\build.xml:282: The following error occurred
> > while
> > > executing this line:
> > > C:\trunk\working_classlib\make\depends.xml:363: The following error
> > occurred
> > > while executing this line:
> > > C:\trunk\working_classlib\make\depends.xml:442: ...
> > >
> > > File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
> > >    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
> > >    Found:    4cdbc6358cb289bb2feea38090406d1c
> > >
> > > Total time: 5 minutes 53 seconds
> > >
> > > what is wrong? thank you.
> > >
> >
> > I guess the above log is not from the 1st run?
> > Most probably previous download attempt has failed (or was aborted) so
> > the downloaded file is broken. The build does not try to reload
> > existing file and just complains that it is not exactly expected
> > thing.
> >
> > Regards,
> >
> > Alexey
> >
>

Re: help me -build error.

Posted by liaoyin <us...@gmail.com>.
 Yes.
 It is not the  first run.
 but  when  I  run   the build command ,I delete the  "trunk" the
directory.
 will  it  casue  the problem? how to  solve the problem?

2008/2/29, Alexey Varlamov <al...@gmail.com>:
>
> 2008/2/29, liaoyin <us...@gmail.com>:
>
> > I want to build the harmony
> > I follow the instructions on the web
> >
> > I type the commands as follow
> >
> > $ ant populate-src
> >
> > $ cd working_classlib
> > $ svn update
> >
> >
> > $ cd working_classlib
> > $ ant fetch-depends
> >
> > then the errors as follow
> >
> > BUILD FAILED
> > C:\trunk\working_classlib\build.xml:282: The following error occurred
> while
> > executing this line:
> > C:\trunk\working_classlib\make\depends.xml:363: The following error
> occurred
> > while executing this line:
> > C:\trunk\working_classlib\make\depends.xml:442: ...
> >
> > File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
> >    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
> >    Found:    4cdbc6358cb289bb2feea38090406d1c
> >
> > Total time: 5 minutes 53 seconds
> >
> > what is wrong? thank you.
> >
>
> I guess the above log is not from the 1st run?
> Most probably previous download attempt has failed (or was aborted) so
> the downloaded file is broken. The build does not try to reload
> existing file and just complains that it is not exactly expected
> thing.
>
> Regards,
>
> Alexey
>

Re: help me -build error.

Posted by Tim Ellison <t....@gmail.com>.
Alexey Varlamov wrote:
> 2008/2/29, liaoyin <us...@gmail.com>:
>> BUILD FAILED
>> C:\trunk\working_classlib\build.xml:282: The following error occurred while
>> executing this line:
>> C:\trunk\working_classlib\make\depends.xml:363: The following error occurred
>> while executing this line:
>> C:\trunk\working_classlib\make\depends.xml:442: ...
>>
>> File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
>>    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
>>    Found:    4cdbc6358cb289bb2feea38090406d1c
>>
>> Total time: 5 minutes 53 seconds
>>
>> what is wrong? thank you.
>>
> I guess the above log is not from the 1st run?
> Most probably previous download attempt has failed (or was aborted) so
> the downloaded file is broken. The build does not try to reload
> existing file and just complains that it is not exactly expected
> thing.

I agree.

The solution is to delete the file depends/jars/xerces_2.9.1/xerces.zip 
and run "ant fetch-depends" again.

Regards,
Tim

Re: help me -build error.

Posted by Alexey Varlamov <al...@gmail.com>.
2008/2/29, liaoyin <us...@gmail.com>:
> I want to build the harmony
> I follow the instructions on the web
>
> I type the commands as follow
>
> $ ant populate-src
>
> $ cd working_classlib
> $ svn update
>
>
> $ cd working_classlib
> $ ant fetch-depends
>
> then the errors as follow
>
> BUILD FAILED
> C:\trunk\working_classlib\build.xml:282: The following error occurred while
> executing this line:
> C:\trunk\working_classlib\make\depends.xml:363: The following error occurred
> while executing this line:
> C:\trunk\working_classlib\make\depends.xml:442: ...
>
> File depends/jars/xerces_2.9.1/xerces.zip has incorrect md5 checksum.
>    Expected: a0e07ede1c3bd5231fe15eae24032b2e (or )
>    Found:    4cdbc6358cb289bb2feea38090406d1c
>
> Total time: 5 minutes 53 seconds
>
> what is wrong? thank you.
>
I guess the above log is not from the 1st run?
Most probably previous download attempt has failed (or was aborted) so
the downloaded file is broken. The build does not try to reload
existing file and just complains that it is not exactly expected
thing.

Regards,
Alexey