# Simulator does not work

**URL:** <https://forum.xod.io/t/simulator-does-not-work/5847>\
**Category:** Install/Upload Problems\
**Created:** [February 7, 2022, 9:55am UTC](https://forum.xod.io/t/simulator-does-not-work/5847 "2022-02-07T09:55:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![th-friedrich](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@th-friedrich](https://forum.xod.io/u/th-friedrich)\
**Post date:** [February 7, 2022, 9:55am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/1 "2022-02-07T09:55:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jamesxod4](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jamesxod4](https://forum.xod.io/u/jamesxod4)\
**Post date:** [February 13, 2022, 5:08am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/2 "2022-02-13T05:08:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 13, 2022, 10:45pm UTC](https://forum.xod.io/t/simulator-does-not-work/5847/3 "2022-02-13T22:45:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [February 14, 2022, 9:15am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/4 "2022-02-14T09:15:09Z")

</div>

The simulation is fixed now.

---

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.xod.io/u/ian)\
**Post date:** [February 27, 2022, 5:28am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/5 "2022-02-27T05:28:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 27, 2022, 12:04pm UTC](https://forum.xod.io/t/simulator-does-not-work/5847/6 "2022-02-27T12:04:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nikolay-semikin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nikolay-semikin/32/3465_2.png) [@nikolay-semikin](https://forum.xod.io/u/nikolay-semikin)\
**Post date:** [February 27, 2022, 12:12pm UTC](https://forum.xod.io/t/simulator-does-not-work/5847/7 "2022-02-27T12:12:11Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![pvc31](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pvc31](https://forum.xod.io/u/pvc31)\
**Post date:** [March 1, 2022, 10:07pm UTC](https://forum.xod.io/t/simulator-does-not-work/5847/8 "2022-03-01T22:07:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pawayev2011](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@pawayev2011](https://forum.xod.io/u/pawayev2011)\
**Post date:** [March 3, 2022, 9:52am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/9 "2022-03-03T09:52:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.xod.io/u/ian)\
**Post date:** [March 7, 2022, 5:51am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/10 "2022-03-07T05:51:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.xod.io/u/ian)\
**Post date:** [March 7, 2022, 5:57am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/11 "2022-03-07T05:57:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [April 6, 2022, 5:57am UTC](https://forum.xod.io/t/simulator-does-not-work/5847/12 "2022-04-06T05:57:23Z")

</div>

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