emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.74k stars 3.3k forks source link

xod windows 10 64bit error #16222

Open roncam82 opened 2 years ago

roncam82 commented 2 years ago

Hi,

I'm trying to simulate the welcome exercises but im getting the below error!

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_ys08FA/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 (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.
sbc100 commented 2 years ago

Seems like this coule be and issue with XOD rather than emscripten perhaps?

Can you try running file /ws/arduino_data/EM_CACHE/wasm-obj/libc++abi-noexcept.a to see what type of file that actually is?

Also maybe try removing /ws/arduino_data/EM_CACHE/ so that it will be built afresh?