Simulator does not work

Hi,
I loaded the sample project (002-simulate) and run the simulator, received the following failure message:
Generating C++ code for simulation…
Building…
wasm-ld: error: unknown file type: /ws/arduino_data/EM_CACHE/wasm-obj/libc++abi-noexcept.a
shared:ERROR: ‘/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld -o /tmp/emscripten_temp_siFuj2/sketch.ino.wasm --allow-undefined --lto-O0 -L/tmp/arduino-sketch-7D772395ECC3396C05FF7F6F0DA5A3B6 /tmp/arduino-sketch-7D772395ECC3396C05FF7F6F0DA5A3B6/sketch/sketch.ino.cpp.o -L/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/lib /tmp/arduino-sketch-7D772395ECC3396C05FF7F6F0DA5A3B6/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a -L/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib -L/ws/arduino_data/EM_CACHE/wasm-obj /ws/arduino_data/EM_CACHE/wasm-obj/libc.a /ws/arduino_data/EM_CACHE/wasm-obj/libcompiler_rt.a /ws/arduino_data/EM_CACHE/wasm-obj/libc-wasm.a /ws/arduino_data/EM_CACHE/wasm-obj/libc+±noexcept.a /ws/arduino_data/EM_CACHE/wasm-obj/libc++abi-noexcept.a /ws/arduino_data/EM_CACHE/wasm-obj/libdlmalloc.a /ws/arduino_data/EM_CACHE/wasm-obj/libpthread_stub.a /ws/arduino_data/EM_CACHE/wasm-obj/libc_rt_wasm.a --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --export __wasm_call_ctors --export __data_end --export main --export malloc --export free --export setThrew -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024’ failed (1)
Error during build: exit status 1

The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.

does anybody know what went wrong?
many thanks
Thomas

I’m getting the same error in both the web application on the windows application.

I can confirm that I get the same error when using the simulator, but it works fine uploading to Arduino UNO

The simulation is fixed now.

1 Like

I’m getting a simulation error only started working on web XOD today

Generating C++ code for simulation…
Building…
/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm: error: /tmp/arduino-sketch-F8DD21D300D77937EAA992C0AE4824F3/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a truncated or malformed archive (terminator characters in archive member “72” not the correct “`\n” values for the archive member header for !
)

Traceback (most recent call last):
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 3681, in
sys.exit(run(sys.argv))
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 1968, in run
ensure_archive_index(input_file)
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, ‘–print-armap’, archive_file], stdout=PIPE).stdout
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 188, in run_process
result.check_returncode()
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command ‘[’/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm’, ‘–print-armap’, ‘/tmp/arduino-sketch-F8DD21D300D77937EAA992C0AE4824F3/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a’]’ returned non-zero exit status 1
Error during build: exit status 1

The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.

I get same error. I’ve asked developer to take a look at it.

I have got this mistake:
Generating C++ code for simulation…
Building…
/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm: error: /tmp/arduino-sketch-7D772395ECC3396C05FF7F6F0DA5A3B6/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a truncated or malformed archive (terminator characters in archive member “72” not the correct “`\n” values for the archive member header for !
)

Traceback (most recent call last):
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 3681, in
sys.exit(run(sys.argv))
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 1968, in run
ensure_archive_index(input_file)
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, ‘–print-armap’, archive_file], stdout=PIPE).stdout
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 188, in run_process
result.check_returncode()
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command ‘[’/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm’, ‘–print-armap’, ‘/tmp/arduino-sketch-7D772395ECC3396C05FF7F6F0DA5A3B6/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a’]’ returned non-zero exit status 1
Error during build: exit status 1

The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.
Follow log (0 new lines skipped)

Generating C++ code for simulation…
Building…
/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm: error: /tmp/arduino-sketch-4DF29CEB59704B640CFF7EEF89A85B38/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a truncated or malformed archive (terminator characters in archive member “72” not the correct “`\n” values for the archive member header for !
)

Traceback (most recent call last):
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 3681, in
sys.exit(run(sys.argv))
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 1968, in run
ensure_archive_index(input_file)
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/emcc.py”, line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, ‘–print-armap’, archive_file], stdout=PIPE).stdout
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 188, in run_process
result.check_returncode()
File “/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/tools/shared.py”, line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command ‘[’/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/llvm-nm’, ‘–print-armap’, ‘/tmp/arduino-sketch-4DF29CEB59704B640CFF7EEF89A85B38/…/…/ws/arduino_data/core/core_xod_wasm_simulation_29af706139fafd7b7855b8e00d0efb5f.a’]’ returned non-zero exit status 1
Error during build: exit status 1

The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.

hi, i have the same problemwhen i add NODE (WATCH) but i installed program other PC are they program working and simulator working good condition

Hi has anybody heard back about these simulation errors still can’t get mine to work

Sorry I must retracting my last statement it is working on the web simulator

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.