Build failed running pavement.compile: Subprocess return code: -1

307 views
Skip to first unread message

蝈蝈俊.net

unread,
Jul 14, 2011, 4:39:22 AM7/14/11
to Treesaver
E:\Projects\treesaver>paver compile

git describe --abbrev=0
git describe --long --tags
---> pavement.compile
python E:\Projects\treesaver\lib/closure/bin/calcdeps.py -i E:\Projects
\treesaver\src\core.js -i E:\Projects\treesaver\src\init.js -i E:
\Projects\treesaver\src\modules.js -p E:\Projects\treesaver\src -p E:
\Projects\treesaver\lib/closure -o list -c E:\Projects\treesaver\lib/
closure/compiler.jar
java -jar E:\Projects\treesaver\lib/closure/compiler.jar --
compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error
accessControls --jscomp_error checkRegExp --jscomp_error checkTypes --
jscomp_error checkVars --jscomp_error deprecated --jscomp_error
fileoverviewTags --jscomp_error invalidCasts --jscomp_error
missingProperties --jscomp_error undefinedVars --jscomp_error
visibility --jscomp_warning nonStandardJsDocs --jscomp_warning
strictModuleDepCheck --jscomp_warning unknownDefines --output_wrapper
'(function(){%output%}());' --define="COMPILED=true" --
define="treesaver.VERSION='0.9.2-93-g404ef8c'" --
define="goog.DEBUG=false" --externs=E:\Projects\treesaver\src\externs
\mustache.js --externs=E:\Projects\treesaver\src\externs\treesaver.js
--js --js_output_file=E:\Projects\treesaver\build\treesaver-0.9.2.js
--define="USE_MODULES=false"


Captured Task Output:
---------------------

---> pavement.compile
python E:\Projects\treesaver\lib/closure/bin/calcdeps.py -i E:\Projects
\treesaver\src\core.js -i E:\Projects\treesaver\src\init.js -i E:
\Projects\treesaver\src\modules.js -p E:\Projects\treesaver\src -p E:
\Projects\treesaver\lib/closure -o list -c E:\Projects\treesaver\lib/
closure/compiler.jar
java -jar E:\Projects\treesaver\lib/closure/compiler.jar --
compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error
accessControls --jscomp_error checkRegExp --jscomp_error checkTypes --
jscomp_error checkVars --jscomp_error deprecated --jscomp_error
fileoverviewTags --jscomp_error invalidCasts --jscomp_error
missingProperties --jscomp_error undefinedVars --jscomp_error
visibility --jscomp_warning nonStandardJsDocs --jscomp_warning
strictModuleDepCheck --jscomp_warning unknownDefines --output_wrapper
'(function(){%output%}());' --define="COMPILED=true" --
define="treesaver.VERSION='0.9.2-93-g404ef8c'" --
define="goog.DEBUG=false" --externs=E:\Projects\treesaver\src\externs
\mustache.js --externs=E:\Projects\treesaver\src\externs\treesaver.js
--js --js_output_file=E:\Projects\treesaver\build\treesaver-0.9.2.js
--define="USE_MODULES=false"

Build failed running pavement.compile: Subprocess return code: -1


but paver debug and paver clean is ok

E:\Projects\treesaver>paver debug
git describe --abbrev=0
git describe --long --tags
---> pavement.debug
python E:\Projects\treesaver\lib/closure/bin/calcdeps.py -i E:\Projects
\treesaver\src\core.js -iE:\Projects\treesaver\src\init.js -iE:
\Projects\treesaver\src\modules.js -p E:\Projects\treesaver\src -p E:
\Projects\treesaver\lib/closure -o sc
ript --output_file E:\Projects\treesaver\build\treesaver.js

E:\Projects\treesaver>paver clean
git describe --abbrev=0
git describe --long --tags
---> pavement.clean
rmtree E:\Projects\treesaver\build () {}

Bram Stein

unread,
Jul 14, 2011, 10:29:45 AM7/14/11
to trees...@googlegroups.com
Hi,

Do you have all the build dependencies installed? Treesaver needs
Python, Paver, Git, and Java. You obviously have Git, Python and Paver
installed, so the only difference between the commands I can think of
is Java. Are there any other errors besides `Subprocess return code:
-1`? Could you try running the line from `java -jar ...' and see what
error it produces?

Thanks,

Bram

蝈蝈俊.net

unread,
Jul 14, 2011, 9:12:50 PM7/14/11
to Treesaver
only run

java -jar E:\Projects\treesaver\lib/closure/compiler.jar --
compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error
accessControls --jscomp_error checkRegExp --jscomp_error checkTypes --
jscomp_error checkVars --jscomp_error deprecated --jscomp_error
fileoverviewTags --jscomp_error invalidCasts --jscomp_error
missingProperties --jscomp_error undefinedVars --jscomp_error
visibility --jscomp_warning nonStandardJsDocs --jscomp_warning
strictModuleDepCheck --jscomp_warning unknownDefines --output_wrapper
'(function(){%output%}());' --define="COMPILED=true" --
define="treesaver.VERSION='0.9.2-93-g404ef8c'" --
define="goog.DEBUG=false" --externs=E:\Projects\treesaver\src\externs
\mustache.js --externs=E:\Projects\treesaver\src\externs\treesaver.js
--js --js_output_file=E:\Projects\treesaver\build\treesaver-0.9.2.js
--define="USE_MODULES=false"


i can see:


and output US_ASCII
--closure_entry_point VAL : Entry points to the program.
Must be g

oog.provide'd symbols. Any
goog.provid

e'd symbols that are not a
transitive

dependency of the entry
points will be

removed. Files without
goog.provides,

and their dependencies,
will always b

e left in. If any entry
points are spe

cified, then the
manage_closure_depend

encies option will be set to
true and

all files will be sorted in
dependency

order.
--compilation_level [WHITESPACE_ONLY | : Specifies the compilation
level to use

SIMPLE_OPTIMIZATIONS | ADVANCED_OPTIM : . Options: WHITESPACE_ONLY,
SIMPLE_OPT

IZATIONS] : IMIZATIONS,
ADVANCED_OPTIMIZATIONS
--create_name_map_files : If true, variable renaming
and propert

y renaming map files will be
produced

as {binary name}
_vars_map.out and {bin

ary name}_props_map.out.
Note that thi

s flag cannot be used in
conjunction w

ith either
variable_map_output_file or

property_map_output_file
--create_source_map VAL : If specified, a source map
file mappin

g the generated source files
back to t

he original source file will
be output

to the specified path. The
%outname%

placeholder will expand to
the name of

the output file that the
source map c

orresponds to.
--debug : Enable debugging options
--define (--D, -D) VAL : Override the value of a
variable annot

ated @define. The format is
<name>[=<v

al>], where <name> is the
name of a @d

efine variable and <val> is
a boolean,

number, or a single-quoted
string tha

t contains no single quotes.
If [=<val

>] is omitted, the variable
is marked

true
--externs VAL : The file containing
javascript externs

. You may specify multiple
--flagfile VAL : A file containing additional
command-l

ine options.
--formatting [PRETTY_PRINT | PRINT_INP : Specifies which formatting
options, if

UT_DELIMITER] : any, should be applied to
the output

JS. Options: PRETTY_PRINT,
PRINT_INPUT

_DELIMITER
--generate_exports : Generates export code for
those marked

with @export
--help : Displays this message
--js VAL : The javascript filename. You
may speci

fy multiple
--js_output_file VAL : Primary output filename. If
not specif

ied, output is written to
stdout
--jscomp_error VAL : Make the named class of
warnings an er

ror. Options:accessControls,
ambiguous

FunctionDecl,
checkRegExp,checkTypes,

checkVars, constantProperty,
deprecate

d, externsValidation,
fileoverviewTags

, globalThis,
internetExplorerChecks,

nvalidCasts,
missingProperties, nonSta

ndardJsDocs,
strictModuleDepCheck, typ

eInvalidation,
undefinedVars, unknownD

efines, uselessCode,
visibility
--jscomp_off VAL : Turn off the named class of
warnings.

Options:accessControls,
ambiguousFunct

ionDecl,
checkRegExp,checkTypes, check

Vars, constantProperty,
deprecated, ex

ternsValidation,
fileoverviewTags, glo

balThis,
internetExplorerChecks, nvali

dCasts, missingProperties,
nonStandard

JsDocs,
strictModuleDepCheck, typeInva

lidation, undefinedVars,
unknownDefine

s, uselessCode, visibility
--jscomp_warning VAL : Make the named class of
warnings a nor

mal warning.
Options:accessControls, a

mbiguousFunctionDecl,
checkRegExp,chec

kTypes, checkVars,
constantProperty, d

eprecated,
externsValidation, fileover

viewTags, globalThis,
internetExplorer

Checks, nvalidCasts,
missingProperties

, nonStandardJsDocs,
strictModuleDepCh

eck, typeInvalidation,
undefinedVars,

unknownDefines, uselessCode,
visibilit

y
--language_in VAL : Sets what language spec that
input sou

rces conform. Options:
ECMASCRIPT3 (de

fault), ECMASCRIPT5,
ECMASCRIPT5_STRIC

T
--logging_level VAL : The logging level (standard
java.util.

logging.Level values) for
Compiler pro

gress. Does not control
errors or warn

ings for the JavaScript code
under com

pilation
--manage_closure_dependencies : Automatically sort
dependencies so tha

t a file that goog.provides
symbol X w

ill always come before a
file that goo

g.requires symbol X. If an
input provi

des symbols, and those
symbols are nev

er required, then that input
will not

be included in the
compilation.
--module VAL : A javascript module
specification. The

format is <name>:<num-js-
files>[:[<de

p>,...][:]]]. Module names
must be uni

que. Each dep is the name of
a module

that this module depends on.
Modules m

ust be listed in dependency
order, and

js source files must be
listed in the

corresponding order. Where
--module f

lags occur in relation to --
js flags i

s unimportant
--module_output_path_prefix VAL : Prefix for filenames of
compiled js mo

dules. <module-name>.js will
be append

ed to this prefix.
Directories will be

created as needed. Use with
--module
--module_wrapper VAL : An output wrapper for a
javascript mod

ule (optional). The format
is <name>:<

wrapper>. The module name
must corresp

ond with a module specified
using --mo

dule. The wrapper must
contain %s as t

he code placeholder
--output_manifest VAL : Prints out a list of all the
files in

the compilation. If --
manage_closure_d

ependencies is on, this will
not inclu

de files that got dropped
because they

were not required. The
%outname% plac

eholder expands to the js
output file.

If you're using
modularization, using

%outname% will create a
manifest for

each module.
--output_wrapper VAL : Interpolate output into this
string at

the place denoted by the
marker token

%output%. See --
output_wrapper_marker

--print_ast : Prints a dot file describing
the inter

nal abstract syntax tree and
exits
--print_pass_graph : Prints a dot file describing
the passe

s that will get run and
exits
--print_tree : Prints out the parse tree
and exits
--process_closure_primitives : Processes built-ins from the
Closure l

ibrary, such as
goog.require(), goog.p

rovide(), and
goog.exportSymbol()
--property_map_input_file VAL : File containing the
serialized version

of the property renaming
map produced

by a previous compilation
--property_map_output_file VAL : File where the serialized
version of t

he property renaming map
produced shou

ld be saved
--summary_detail_level N : Controls how detailed the
compilation

summary is. Values: 0 (never
print sum

mary), 1 (print summary only
if there

are errors or warnings), 2
(print summ

ary if type checking is on,
see --chec

k_types), 3 (always print
summary). Th

e default level is 1
--third_party : Check source validity but do
not enfor

ce Closure style rules and
conventions

--use_only_custom_externs : Specifies whether the
default externs

should be excluded
--variable_map_input_file VAL : File containing the
serialized version

of the variable renaming
map produced

by a previous compilation
--variable_map_output_file VAL : File where the serialized
version of t

he variable renaming map
produced shou

ld be saved
--version : Prints the compiler version
to stderr.

--warning_level [QUIET | DEFAULT | VER : Specifies the warning level
to use. Op

BOSE] : tions: QUIET, DEFAULT,
VERBOSE


this is
"java -jar E:\Projects\treesaver\lib/closure/compiler.jar --help "
show info.




my java version is 1.6.0_24

E:\Projects\treesaver>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)



E:\Projects\treesaver>java -jar E:\Projects\treesaver\lib/closure/
compiler.jar
var w =12+ 3;
^Z
var w=15;

E:\Projects\treesaver>

蝈蝈俊.net

unread,
Jul 14, 2011, 9:23:38 PM7/14/11
to Treesaver

java -jar E:\Projects\treesaver\lib/closure/compiler.jar --
compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error
accessControls --jscomp_error checkRegExp --jscomp_error checkTypes
--
jscomp_error checkVars --jscomp_error deprecated --jscomp_error
fileoverviewTags --jscomp_error invalidCasts --jscomp_error
missingProperties --jscomp_error undefinedVars --jscomp_error
visibility --jscomp_warning nonStandardJsDocs --jscomp_warning
strictModuleDepCheck --jscomp_warning unknownDefines --output_wrapper
'(function(){%output%}());' --define="COMPILED=true" --
define="treesaver.VERSION='0.9.2-93-g404ef8c'" --
define="goog.DEBUG=false" --externs=E:\Projects\treesaver\src\externs
\mustache.js --externs=E:\Projects\treesaver\src\externs\treesaver.js
--js --js_output_file=E:\Projects\treesaver\build\treesaver-0.9.2.js
--define="USE_MODULES=false"

this command has" --js --js_output_file"
delete --js is ok

my os is win7


On 7月14日, 下午10时29分, Bram Stein <b.l.st...@gmail.com> wrote:

蝈蝈俊.net

unread,
Jul 14, 2011, 9:50:59 PM7/14/11
to Treesaver
pavement.py file

function get_dependency_list

if not line or line[0] != '/' or line in found:
continue

in win, this is error.



On 7月14日, 下午10时29分, Bram Stein <b.l.st...@gmail.com> wrote:

Bram Stein

unread,
Jul 15, 2011, 3:48:07 AM7/15/11
to trees...@googlegroups.com

Yea, that would be a problem, as we never compiled on anything but Unix based systems. Even though that problem might be easy to fix, I'm sure there will be others. Can you try cygwin?

Reply all
Reply to author
Forward
0 new messages