emscripten 1.38.45 is missing unwind.h and its source code. $ em++ base64.cpp -std=c++11 -O1 -s WASM=1 -o base64.js --bind cache:INFO: generating system library: libc++abi.a... (this will be cached in "/home/username/.emscripten_cache/wasm-obj/libc++abi.a" for subsequent builds) In file included from /usr/local/lib/emscripten/system/lib/libcxxabi/src/cxa_default_handlers.cpp:19: /usr/local/lib/emscripten/system/lib/libcxxabi/src/cxa_exception.hpp:19:10: fatal error: 'unwind.h' file not found #include "unwind.h" ^~~~~~~~~~ 1 error generated.
Fixed. Thank you for reporting this problem!
A commit references this bug: Author: yuri Date: Sat Oct 19 04:50:09 UTC 2019 New revision: 514749 URL: https://svnweb.freebsd.org/changeset/ports/514749 Log: devel/emscripten: Correct LLVM path; Correct EMSCRIPTEN path; Add node and libunwind dependencies PR: 241337 (missing unwind.h) Reported by: ichino@coreappli.jp Changes: head/devel/emscripten/Makefile
Thank you for your quick response.
(In reply to ichino from comment #3) You're welcome!