You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Weiqi Gao <we...@networkusa.net> on 2001/07/01 16:36:44 UTC

Bootstrap failure in CVS

Hi,

I'm getting the following bootstrap failures from the jakarta-ant CVS:

==================================================================
[weiqi@gao-2001 jakarta-ant]$ ./bootstrap.sh             
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml

bootstrap:

prepare:

check_for_optional_packages:

build:
Compiling 99 source files to
/home/weiqi/projects/jakarta-ant/build/classes
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java:65: package org.apache.oro.text.perl does not exist
import org.apache.oro.text.perl.*;
^
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java:82: cannot resolve symbol
symbol  : class Perl5Util  
location: class org.apache.tools.ant.taskdefs.opt
location: class org.apache.tools.ant.taskdefs.optional.perforce.P4Base
    protected Perl5Util util = null;
              ^
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java:113: cannot resolve symbol
symbol  : class Perl5Util  
location: class org.apache.tools.ant.taskdefs.optional.perforce.P4Base
        util = new Perl5Util();
                   ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors

BUILD FAILED

/home/weiqi/projects/jakarta-ant/build.xml:179: Compile failed, messages
should have been provided.

Total time: 6 seconds
... Cleaning Up Build Directories
chmod: bootstrap/bin/ant: No such file or directory
chmod: bootstrap/bin/antRun: No such file or directory
... Done Bootstrapping Ant Distribution
==================================================================

-- 
Weiqi Gao
weiqigao@networkusa.net


Re: Bootstrap failure in CVS

Posted by Weiqi Gao <we...@networkusa.net>.
On 02 Jul 2001 20:45:00 +1000, Conor MacNeill wrote:
> 
> The build file will only build perforce code if the ORO library
> is around.  This is controlled by this line in the build.xml
> file
>   <exclude name="${optional.package}/perforce/*.java"
>     unless="jakarta.oro.present" />
> 
> Now, that property is set by
> 
>   <available property="jakarta.oro.present"
>     classname="org.apache.oro.text.regex.Perl5Matcher"
>     classpathref="classpath" />

I see the problem now.  I have Jython 2.0 Final installed, which
contains an integrated version of the ORO library in its jython.jar.

The version of ORO they have is the Apache version circa Nov 2000.  I'll
try the latest version of ORO from Apache.

I'm not sure if Jython will be happy about the new ORO though.

-- 
Weiqi Gao
weiqigao@networkusa.net


Re: Bootstrap failure in CVS

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Weiqi,

The build file will only build perforce code if the ORO library is around.
This is controlled by this line in the build.xml file
      <exclude name="${optional.package}/perforce/*.java"
unless="jakarta.oro.present" />

Now, that property is set by

    <available property="jakarta.oro.present"
               classname="org.apache.oro.text.regex.Perl5Matcher"
               classpathref="classpath" />

I have just bootstrapped against the latest ORO code and it went OK for me.
It is possible that you have a version of ORO which passes the available
check but fails to supply "org.apache.oro.text.perl.*", but I can't say for
sure. Can you please look into the version of ORO you have and whether you
have it all. Alternatively look for something which has some of the oro
classes. You may want to get the latest ORO.

Cheers
Conor


----- Original Message -----
From: "Weiqi Gao" <we...@networkusa.net>
To: <an...@jakarta.apache.org>
Sent: Monday, July 02, 2001 12:36 AM
Subject: Bootstrap failure in CVS


> Hi,
>
> I'm getting the following bootstrap failures from the jakarta-ant CVS:
>
> ==================================================================
> [weiqi@gao-2001 jakarta-ant]$ ./bootstrap.sh
> ... Bootstrapping Ant Distribution
> ... Compiling Ant Classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile: build.xml
>
> bootstrap:
>
> prepare:
>
> check_for_optional_packages:
>
> build:
> Compiling 99 source files to
> /home/weiqi/projects/jakarta-ant/build/classes
>
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/opt
ional/perforce/P4Base.java:65: package org.apache.oro.text.perl does not
exist
> import org.apache.oro.text.perl.*;
> ^
>
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/opt
ional/perforce/P4Base.java:82: cannot resolve symbol
> symbol  : class Perl5Util
> location: class org.apache.tools.ant.taskdefs.opt
> location: class org.apache.tools.ant.taskdefs.optional.perforce.P4Base
>     protected Perl5Util util = null;
>               ^
>
/home/weiqi/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/opt
ional/perforce/P4Base.java:113: cannot resolve symbol
> symbol  : class Perl5Util
> location: class org.apache.tools.ant.taskdefs.optional.perforce.P4Base
>         util = new Perl5Util();
>                    ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> 3 errors
>
> BUILD FAILED
>
> /home/weiqi/projects/jakarta-ant/build.xml:179: Compile failed, messages
> should have been provided.
>
> Total time: 6 seconds
> ... Cleaning Up Build Directories
> chmod: bootstrap/bin/ant: No such file or directory
> chmod: bootstrap/bin/antRun: No such file or directory
> ... Done Bootstrapping Ant Distribution
> ==================================================================
>
> --
> Weiqi Gao
> weiqigao@networkusa.net
>
>