While simulation got strange output in serial:
Generating C++ code for simulation…
Building…
wasm-ld: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1167: llvm::Error llvm::object::WasmObjectFile::parseCodeSection(llvm::object::WasmObjectFile::ReadContext &): Assertion `Ctx.Ptr == FunctionEnd' failed.
Stack dump:
0. Program arguments: /ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld -o /tmp/emscripten_temp_FW2DTq/sketch.ino.wasm --allow-undefined --lto-O0 -L/tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540 /tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540/sketch/sketch.ino.cpp.o -L/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/lib /tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540/../../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
#0 0x00007fce0e594804 PrintStackTraceSignalHandler(void*) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x711804)
#1 0x00007fce0e59252e llvm::sys::RunSignalHandlers() (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x70f52e)
#2 0x00007fce0e594ab8 SignalHandler(int) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x711ab8)
#3 0x00007fce115a00e0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x110e0)
#4 0x00007fce0d279fff raise (/lib/x86_64-linux-gnu/libc.so.6+0x32fff)
#5 0x00007fce0d27b42a abort (/lib/x86_64-linux-gnu/libc.so.6+0x3442a)
#6 0x00007fce0d272e67 (/lib/x86_64-linux-gnu/libc.so.6+0x2be67)
#7 0x00007fce0d272f12 (/lib/x86_64-linux-gnu/libc.so.6+0x2bf12)
#8 0x00007fce0fa3aefe llvm::object::WasmObjectFile::parseCodeSection(llvm::object::WasmObjectFile::ReadContext&) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bb7efe)
#9 0x00007fce0fa361fa llvm::object::WasmObjectFile::parseSection(llvm::object::WasmSection&) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bb31fa)
#10 0x00007fce0fa35caa llvm::object::WasmObjectFile::WasmObjectFile(llvm::MemoryBufferRef, llvm::Error&) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bb2caa)
#11 0x00007fce0fa35790 llvm::object::ObjectFile::createWasmObjectFile(llvm::MemoryBufferRef) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bb2790)
#12 0x00007fce0fa300a9 llvm::object::ObjectFile::createObjectFile(llvm::MemoryBufferRef, llvm::file_magic) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bad0a9)
#13 0x00007fce0fa331d1 llvm::object::SymbolicFile::createSymbolicFile(llvm::MemoryBufferRef, llvm::file_magic, llvm::LLVMContext*) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1bb01d1)
#14 0x00007fce0f9bfc5b llvm::object::createBinary(llvm::MemoryBufferRef, llvm::LLVMContext*) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/../lib/libLLVM-10svn.so+0x1b3cc5b)
#15 0x00000000006bed01 lld::wasm::createObjectFile(llvm::MemoryBufferRef, llvm::StringRef) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6bed01)
#16 0x00000000006c4558 lld::wasm::ArchiveFile::addMember(llvm::object::Archive::Symbol const*) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6c4558)
#17 0x00000000006c410f lld::wasm::ArchiveFile::parse() (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6c410f)
#18 0x00000000006cbbbc lld::wasm::SymbolTable::addFile(lld::wasm::InputFile*) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6cbbbc)
#19 0x00000000006b6ddb lld::wasm::(anonymous namespace)::LinkerDriver::link(llvm::ArrayRef<char const*>) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6b6ddb)
#20 0x00000000006b2df8 lld::wasm::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&) (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x6b2df8)
#21 0x000000000041f21b main (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x41f21b)
#22 0x00007fce0d2672e1 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e1)
#23 0x000000000041edb9 _start (/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld+0x41edb9)
shared:ERROR: '/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/wasm-ld -o /tmp/emscripten_temp_FW2DTq/sketch.ino.wasm --allow-undefined --lto-O0 -L/tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540 /tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540/sketch/sketch.ino.cpp.o -L/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/lib /tmp/arduino-sketch-8061AA62725E61315861A73CED1BB540/../../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 (-6)
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.
The same problem is in program last version…(Windows, Linux)