(build/ninja_main.py) -> _build/oils.sh ninja: no work to do. ninja: no work to do. total 5804 drwxr-xr-x 3 uke uke 4096 Oct 18 19:56 VERSION -rwxr-xr-x 1 uke uke 7531 Oct 18 19:57 hello-xshar.xshar -rw-r--r-- 1 uke uke 817635 Oct 18 19:57 oils-for-unix-0.23.0.tar.gz -rw-r--r-- 1 uke uke 5109760 Oct 18 19:57 oils-for-unix.tar -rw-r--r-- 1 uke uke 13783587 Oct 18 19:57 _tmp/test-oils.tar.gz -rwxr-xr-x 1 uke uke 18620468 Oct 18 19:57 _release/test-oils.xshar total 24M drwxr-xr-x 3 uke uke 4.0K Oct 18 19:56 VERSION -rwxr-xr-x 1 uke uke 7.4K Oct 18 19:57 hello-xshar.xshar -rw-r--r-- 1 uke uke 799K Oct 18 19:57 oils-for-unix-0.23.0.tar.gz -rw-r--r-- 1 uke uke 4.9M Oct 18 19:57 oils-for-unix.tar -rwxr-xr-x 1 uke uke 18M Oct 18 19:57 test-oils.xshar num_iters=1 num_shells=1 num_workloads=1 build/py.sh: line 10: stdlib/osh/bash-strict.sh: No such file or directory stdlib/osh/byo-server.sh: line 15: stdlib/osh/two.sh: No such file or directory CC benchmarks/time-helper.c /tmp/test-oils.xshar.REUSED/_tmp/oils-tar /tmp/test-oils.xshar.REUSED /tmp/test-oils.xshar.REUSED/_tmp/oils-tar/oils-for-unix-0.23.0 /tmp/test-oils.xshar.REUSED/_tmp/oils-tar /tmp/test-oils.xshar.REUSED ./configure: Wrote _build/detected-cpp-config.h ./configure: Wrote _build/detected-config.sh ./configure: Wrote _build/detected-config.h _build/oils.sh: Building oils-for-unix: _bin/cxx-opt-sh/oils-for-unix _build/oils.sh: PWD = /tmp/test-oils.xshar.REUSED/_tmp/oils-tar/oils-for-unix-0.23.0 CXX _gen/bin/oils_for_unix.mycpp.cc CXX _gen/bin/text_files.cc CXX _gen/core/runtime.asdl.cc _gen/bin/oils_for_unix.mycpp.cc: In member function 'void format::_PrettyPrinter::PrintNode(hnode_asdl::hnode_t*, format::ColorOutput*, int)': _gen/bin/oils_for_unix.mycpp.cc:12476:24: warning: unused variable 'node' [-Wunused-variable] hnode::External* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'bool format::_TrySingleLine(hnode_asdl::hnode_t*, format::ColorOutput*, int)': _gen/bin/oils_for_unix.mycpp.cc:12564:24: warning: unused variable 'node' [-Wunused-variable] hnode::External* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int dirs_osh::Cd::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:13659:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int error_ysh::Try::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:14021:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'Dict* func_hay::EvalHay::_Call(syntax_asdl::command_t*)': _gen/bin/oils_for_unix.mycpp.cc:14527:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual value_asdl::value_t* func_reflect::GetFrame::Call(typed_args::Reader*)': _gen/bin/oils_for_unix.mycpp.cc:15391:16: warning: variable 'index' set but not used [-Wunused-but-set-variable] mops::BigInt index; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int hay_ysh::Hay::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:15732:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int io_ysh::RunBlock::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:16403:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual value_asdl::value_t* method_io::Eval::Call(typed_args::Reader*)': _gen/bin/oils_for_unix.mycpp.cc:17634:7: warning: variable 'unused_status' set but not used [-Wunused-but-set-variable] int unused_status; ^~~~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int misc_osh::Help::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:18600:8: warning: variable 'found' set but not used [-Wunused-but-set-variable] bool found; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int process_osh::Ulimit::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:19800:16: warning: variable 'old_soft' set but not used [-Wunused-but-set-variable] mops::BigInt old_soft; ^~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc:19801:16: warning: variable 'old_hard' set but not used [-Wunused-but-set-variable] mops::BigInt old_hard; ^~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int pure_osh::Shopt::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:20184:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int pure_ysh::Shvar::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:20550:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int pure_ysh::PushRegisters::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:20733:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'BigStr* read_osh::ReadAll()': _gen/bin/oils_for_unix.mycpp.cc:20994:7: warning: unused variable 'orig_local_modes' [-Wunused-variable] int orig_local_modes; ^~~~~~~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'virtual int trap_osh::Trap::Run(runtime_asdl::cmd_value::Argv*)': _gen/bin/oils_for_unix.mycpp.cc:21626:31: warning: unused variable '_' [-Wunused-variable] syntax_asdl::command_t* _ = it.Value(); ^ _gen/bin/oils_for_unix.mycpp.cc:21631:31: warning: unused variable '_' [-Wunused-variable] syntax_asdl::command_t* _ = it.Value(); ^ _gen/bin/oils_for_unix.mycpp.cc: In function 'BigStr* alloc::SnipCodeBlock(syntax_asdl::Token*, syntax_asdl::Token*, List*)': _gen/bin/oils_for_unix.mycpp.cc:21715:8: warning: variable 'found_left' set but not used [-Wunused-but-set-variable] bool found_left; ^~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc:21716:8: warning: variable 'found_right' set but not used [-Wunused-but-set-variable] bool found_right; ^~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'BigStr* alloc::Arena::SnipCodeString(syntax_asdl::Token*, syntax_asdl::Token*)': _gen/bin/oils_for_unix.mycpp.cc:21842:8: warning: variable 'found_left' set but not used [-Wunused-but-set-variable] bool found_left; ^~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc:21843:8: warning: variable 'found_right' set but not used [-Wunused-but-set-variable] bool found_right; ^~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'BigStr* main_loop::Headless::EVAL(BigStr*)': _gen/bin/oils_for_unix.mycpp.cc:25288:7: warning: variable 'unused_status' set but not used [-Wunused-but-set-variable] int unused_status; ^~~~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void process::FdState::Pop(List*)': _gen/bin/oils_for_unix.mycpp.cc:26029:7: warning: variable 'unused_status' set but not used [-Wunused-but-set-variable] int unused_status; ^~~~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void process::JobList::DebugPrint()': _gen/bin/oils_for_unix.mycpp.cc:26978:9: warning: unused variable 'pid' [-Wunused-variable] int pid = it.Key(); ^~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'int process::JobList::NumRunning()': _gen/bin/oils_for_unix.mycpp.cc:27001:9: warning: unused variable '_' [-Wunused-variable] int _ = it.Key(); ^ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void state::MutableOpts::_SetOldOption(BigStr*, bool)': _gen/bin/oils_for_unix.mycpp.cc:27630:8: warning: variable 'success' set but not used [-Wunused-but-set-variable] bool success; ^~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void state::MutableOpts::SetOldOption(BigStr*, bool)': _gen/bin/oils_for_unix.mycpp.cc:27647:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'value_asdl::value_t* state::Mem::GetValue(BigStr*, runtime_asdl::scope_t)': _gen/bin/oils_for_unix.mycpp.cc:29058:8: warning: variable 'ok' set but not used [-Wunused-but-set-variable] bool ok; ^~ _gen/bin/oils_for_unix.mycpp.cc: In function 'void util::HelpFlag(pyutil::_ResourceLoader*, BigStr*, mylib::Writer*)': _gen/bin/oils_for_unix.mycpp.cc:30077:8: warning: variable 'found' set but not used [-Wunused-but-set-variable] bool found; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void j8::InstancePrinter::_PrintSparseArray(value_asdl::value::SparseArray*, int)': _gen/bin/oils_for_unix.mycpp.cc:30395:8: warning: variable 'first' set but not used [-Wunused-but-set-variable] bool first; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'syntax_asdl::Token* location::LeftTokenForWordPart(syntax_asdl::word_part_t*)': _gen/bin/oils_for_unix.mycpp.cc:33830:31: warning: unused variable 'part' [-Wunused-variable] word_part::BracedTuple* part = static_cast(UP_part); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'syntax_asdl::Token* location::_RightTokenForWordPart(syntax_asdl::word_part_t*)': _gen/bin/oils_for_unix.mycpp.cc:33928:31: warning: unused variable 'part' [-Wunused-variable] word_part::BracedTuple* part = static_cast(UP_part); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void cmd_eval::CommandEvaluator::_CheckStatus(int, runtime_asdl::CommandStatus*, syntax_asdl::command_t*, syntax_asdl::loc_t*)': _gen/bin/oils_for_unix.mycpp.cc:36721:32: warning: unused variable 'node' [-Wunused-variable] command::ShAssignment* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc:36726:28: warning: unused variable 'node' [-Wunused-variable] command::Subshell* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc:36731:28: warning: unused variable 'node' [-Wunused-variable] command::Pipeline* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'int cmd_eval::CommandEvaluator::_DoSimple(syntax_asdl::command::Simple*, runtime_asdl::CommandStatus*)': _gen/bin/oils_for_unix.mycpp.cc:37221:24: warning: unused variable 'cmd_val' [-Wunused-variable] cmd_value::Assign* cmd_val = static_cast(UP_cmd_val); ^~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void cmd_eval::CommandEvaluator::RunTrapsOnExit(syntax_asdl::IntParamBox*)': _gen/bin/oils_for_unix.mycpp.cc:38583:8: warning: variable 'is_fatal' set but not used [-Wunused-but-set-variable] bool is_fatal; ^~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'Tuple4*, List*, syntax_asdl::ArgList*, value_asdl::LiteralBlock*> cmd_parse::CommandParser::_ScanSimpleCommand()': _gen/bin/oils_for_unix.mycpp.cc:39459:8: warning: variable 'quoted' set but not used [-Wunused-but-set-variable] bool quoted; ^~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'int string_ops::DecodeUtf8Char(BigStr*, int)': _gen/bin/oils_for_unix.mycpp.cc:44024:7: warning: variable '_bytes_read' set but not used [-Wunused-but-set-variable] int _bytes_read; ^~~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'List*>* string_ops::_AllMatchPositions(BigStr*, BigStr*)': _gen/bin/oils_for_unix.mycpp.cc:44327:7: warning: variable 'start' set but not used [-Wunused-but-set-variable] int start; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'void word_compile::RemoveLeadingSpaceDQ(List*)': _gen/bin/oils_for_unix.mycpp.cc:45533:8: warning: variable 'line_ended' set but not used [-Wunused-but-set-variable] bool line_ended; ^~~~~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'runtime_asdl::word_style_t ysh_ify::_GetRhsStyle(syntax_asdl::rhs_word_t*)': _gen/bin/oils_for_unix.mycpp.cc:50802:29: warning: unused variable 'part0' [-Wunused-variable] DoubleQuoted* part0 = static_cast(UP_part0); ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void ysh_ify::YshPrinter::DoRedirect(syntax_asdl::Redir*, Dict*)': _gen/bin/oils_for_unix.mycpp.cc:50840:7: warning: variable 'op_id' set but not used [-Wunused-but-set-variable] int op_id; ^~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void ysh_ify::YshPrinter::DoShAssignment(syntax_asdl::command::ShAssignment*, bool, Dict*)': _gen/bin/oils_for_unix.mycpp.cc:50894:8: warning: variable 'has_rhs' set but not used [-Wunused-but-set-variable] bool has_rhs; ^~~~~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'void ysh_ify::YshPrinter::DoCommand(syntax_asdl::command_t*, Dict*, bool)': _gen/bin/oils_for_unix.mycpp.cc:51389:24: warning: unused variable 'node' [-Wunused-variable] command::DParen* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc:51394:26: warning: unused variable 'node' [-Wunused-variable] command::DBracket* node = static_cast(UP_node); ^~~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'syntax_asdl::command::Mutation* expr_to_ast::Transformer::MakeMutation(pnode::PNode*)': _gen/bin/oils_for_unix.mycpp.cc:54729:7: warning: variable 'typ' set but not used [-Wunused-but-set-variable] int typ; ^~~ _gen/bin/oils_for_unix.mycpp.cc: In member function 'syntax_asdl::proc_sig_t* expr_to_ast::Transformer::Proc(pnode::PNode*)': _gen/bin/oils_for_unix.mycpp.cc:55116:7: warning: variable 'typ' set but not used [-Wunused-but-set-variable] int typ; ^~~ _gen/bin/oils_for_unix.mycpp.cc: In function 'void shell::SourceStartupFile(process::FdState*, BigStr*, BigStr*, parse_lib::ParseContext*, cmd_eval::CommandEvaluator*, ui::ErrorFormatter*)': _gen/bin/oils_for_unix.mycpp.cc:58118:7: warning: variable 'unused' set but not used [-Wunused-but-set-variable] int unused; ^~~~~~ CXX _gen/core/value.asdl.cc CXX _gen/cpp/build_stamp.cc CXX _gen/data_lang/nil8.asdl.cc CXX _gen/display/pretty.asdl.cc CXX _gen/frontend/arg_types.cc CXX _gen/frontend/consts.cc CXX _gen/frontend/help_meta.cc CXX _gen/frontend/id_kind.asdl.cc CXX _gen/frontend/signal.cc CXX _gen/frontend/syntax.asdl.cc CXX _gen/osh/arith_parse.cc CXX _gen/ysh/grammar_tables.cc CXX cpp/core.cc CXX cpp/data_lang.cc CXX cpp/fanos.cc CXX cpp/fanos_shared.c CXX cpp/frontend_flag_spec.cc CXX cpp/frontend_match.cc CXX cpp/frontend_pyreadline.cc CXX cpp/libc.cc CXX cpp/osh.cc CXX cpp/osh_tdop.cc CXX cpp/pgen2.cc CXX cpp/pylib.cc CXX cpp/stdlib.cc CXX mycpp/bump_leak_heap.cc CXX mycpp/gc_builtins.cc CXX mycpp/gc_mops.cc CXX mycpp/gc_mylib.cc CXX mycpp/gc_str.cc CXX mycpp/hash.cc CXX mycpp/mark_sweep_heap.cc WAIT LINK _bin/cxx-opt-sh/oils-for-unix osh -> oils-for-unix ysh -> oils-for-unix real 0m35.959s user 0m54.341s sys 0m3.408s -rwxr-xr-x 1 uke uke 2301496 Oct 18 19:58 _bin/cxx-opt-sh/oils-for-unix.stripped You can now run _bin/cxx-opt-sh/oils-for-unix.stripped. Example: + _bin/cxx-opt-sh/oils-for-unix.stripped osh -n -c 'echo "hello $name"' (command.Simple blame_tok: (Token id: Id.Lit_Chars length: 4 col: 0 line: (SourceLine line_num:1 content:"echo \"hello $name\"" src:(source.CFlag)) ) more_env: [] words: [ (CompoundWord parts:[...0x132a]) (CompoundWord parts: [ (DoubleQuoted left: (Token id:Id.Left_DoubleQuote length:1 col:5 line:...0x1332) parts: [ (Token id:Id.Lit_Chars length:6 col:6 line:...0x1332) (SimpleVarSub tok: (Token id:Id.VSub_DollarName length:5 col:12 line:...0x1332) ) ] right: (Token id:Id.Right_DoubleQuote length:1 col:17 line:...0x1332) ) ] ) ] is_last_cmd: F ) smoke test: osh and time_.py /tmp/test-oils.xshar.REUSED/_tmp/oils-tar /tmp/test-oils.xshar.REUSED /tmp/test-oils.xshar.REUSED smoke test: hi from benchmarks/osh-runtime.sh *** shell-provenance-2 9478ba038602 9478ba038602 2024-10-18__19-58-22 _tmp Published host ID to _tmp/host-id/9478ba038602-556df3ee Published shell ID to _tmp/shell-id/bash-242a2315 Published shell ID to _tmp/shell-id/dash-0ebcf347 Published shell ID to _tmp/shell-id/osh-87fa31d7 Wrote _tmp/provenance.txt and _tmp/provenance.tsv 9478ba038602 /tmp/test-oils.xshar.REUSED/_tmp/oils-tar/oils-for-unix-0.23.0/_bin/cxx-opt-sh/osh hello-world *** 9478ba038602 /tmp/test-oils.xshar.REUSED/_tmp/oils-tar/oils-for-unix-0.23.0/_bin/cxx-opt-sh/osh hello-world 0 mkdir: created directory '/tmp/test-oils.xshar.REUSED/_tmp/osh-runtime/raw/files-0' '_tmp/provenance.tsv' -> '_tmp/osh-runtime/raw/provenance.tsv' Usage: test-oils.xshar ACTION FLAGS* This is a self-extracting, executable shell archive (xshar) to test Oils. It contains: 1. The oils-for-unix tarball, which can be compiled on any machine 2. Test / benchmark scripts and their dependencies 3. This harness, which compiles the tarball, accepts flags, runs benchmarks. Actions: osh-runtime (currently the only one) Flags: -n --num-iters (default: 1) Run everything this number of times. -s --num-shells Run the first N of osh, bash, dash -w --num-workloads Run the first N of the workloads -u --upload Upload .wwz results to the CI server --subdir Subdirectory for the wwz. results default: git-$commit --url Upload to this URL default: http://travis-ci.oilshell.org/wwup.cgi --dry-run Print out tasks, but don't execute them Workloads: hello-world bin-true configure.cpython configure.util-linux configure.ocaml configure.tcc configure.yash abuild-print-help Example: test-oils.xshar osh-runtime --num-iters 2 --num-shells 2 --num-workloads 3 will run this benchmark matrix 2 times: (osh, bash) X (hello-world, bin-true, configure-cpython) xshar runtime dependencies: - base64, tar, gzip - for unpacking the payload osh-runtime dependencies: - C++ compiler, for oils-for-unix and benchmarks/time-helper.c - On OS X, the compiler comes with XCode - python2 for - benchmarks/time_.py, tsv*.py, gc_stats*.py - zip for creating the .wwz payload - curl for uploading it via HTTP test-oils.xshar was built from git commit 71bcde368a1780968dd6d60453f0bd1946fff07a