@davidfsol5
[10-25 20:04:38] info: Truebit OS 1.1.2 has been initialized on goerli network at block 3638930 with gas price 20.1 gwei.
truebit-os:> task -f factorial.json submit
[10-25 20:33:31] info: TASK GIVER: Generating task from file: factorial.json
[10-25 20:33:32] info: TASK GIVER: Created local directory: /truebit-eth/tmp.giver_6vee4m237r00
[10-25 20:33:33] info: TASK GIVER: Adding data files to Truebit filesystem...
Executing: ./../wasm-client/ocaml-offchain/interpreter/wasm -m -disable-float -input -memory-size 16 -stack-size 14 -table-size 8 -globals-size 8 -call-stack-size 10 -case 0 factorial.wast
[10-25 20:33:33] info: TASK GIVER: Calcuated task initial state. Adding code file to Truebit filesystem and finalizing bundle...
(^C again to quit)
truebit-os:> exit
root@docker-desktop:/truebit-eth# cd /truebit-eth/tmp.giver_6vee4m237r00
root@docker-desktop:/truebit-eth/tmp.giver_6vee4m237r00# ./../wasm-client/ocaml-offchain/interpreter/wasm -m -disable-float -input -memory-size 16 -stack-size 14 -table-size 8 -globals-size 8 -call-stack-size 10 -case 0 factorial.wast
{"vm": { "code": "0x337b3651ecf0b5cd330b85ccf8e6b9edd09d14f43e8eee4ff3bd5874c855beb4", "stack": "0xb4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e92410d30", "memory": "0xb4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e92410d30", "input_size": "0xf9dc3e7fe016e050eff260334f18a5d4fe391d82092319f5964f2e2eb7c1c3a5", "input_name": "0xf9dc3e7fe016e050eff260334f18a5d4fe391d82092319f5964f2e2eb7c1c3a5", "input_data": "0xe026cc5a4aed3c22a58cbd3d2ac754c9352c5436f638042dca99034e83636516", "call_stack": "0xb4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e92410d30", "globals": "0xb4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e92410d30", "calltable": "0x7bf9aa8e0ce11d87877e8b7a304e8e7105531771dbff77d1b00366ecb1549624", "calltypes": "0xb4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e92410d30", "pc": 0, "stack_ptr": 0, "call_ptr": 0, "memsize": 0 }, "hash": "0x0f767c050d4d2835b0b4853ba0c6e01e14363314747c6222249fecf114c9986d"}
root@docker-desktop:/truebit-eth/tmp.giver_6vee4m237r00# cd ..
root@docker-desktop:/truebit-eth
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)@caiyuxi You'll need Emscripten (and the command above) when compiling new tasks, however it's not necessary if you just want to run a Solver, Verifier, or Task Giver. Note that compiling tasks also requires an LLVM installation. Both Emscripten and LLVM come pre-installed in the Docker container, which is the easiest place to compile your tasks.
If you want to compile on your native machine, you can follow lines 9-36 of the Dockerfile: https://github.com/TruebitProtocol/truebit-eth/blob/master/Dockerfile
If you manage to get the Truebit compiler working on a system other than Ubuntu, please make a pull request with detailed instructions on how you did it!