Open anutosh491 opened 4 hours ago
Building xeus-cpp-lite still get us the following
Debugging using EMCC_DEBUG=1 emmake make -j16 install VERBOSE=1
shows me this (not pasting everything ... only what looks relevant)
1) I guess this shows symbols coming out libclangCppInterOp.so
[100%] Linking CXX executable xcpp.js
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/bin/cmake -E cmake_link_script CMakeFiles/xcpp.dir/link.txt --verbose=1
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/em++ -Wl,--export-all --bind -Wno-unused-command-line-argument -fexceptions -00 -g -fsanitize=address -s MODULARIZE=1 -s EXPORT_NAME=createXeusModule -s EXPORT_ES6=0 -s USE_ES6_IMPORT_META=0 -s DEMANGLE_SUPPORT=0 -s ASSERTIONS=2 -s ALLOW_MEMORY_GROWTH=1 -s EXIT_RUNTIME=1 -s WASM=1 -s USE_PTHREADS=0 -s STACK_SIZE=64mb -s INITIAL_MEMORY=256mb -s WASM_BIGINT -s FORCE_FILESYSTEM -s MAIN_MODULE=1 -s EXPORT_ALL=1 @CMakeFiles/xcpp.dir/objects1.rsp -o xcpp.js @CMakeFiles/xcpp.dir/linkLibs.rsp
emcc:WARNING: invocation: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/em++.py -Wl,--export-all --bind -Wno-unused-command-line-argument -fexceptions -00 -g -fsanitize=address -s MODULARIZE=1 -s EXPORT_NAME=createXeusModule -s EXPORT_ES6=0 -s USE_ES6_IMPORT_META=0 -s DEMANGLE_SUPPORT=0 -s ASSERTIONS=2 -s ALLOW_MEMORY_GROWTH=1 -s EXIT_RUNTIME=1 -s WASM=1 -s USE_PTHREADS=0 -s STACK_SIZE=64mb -s INITIAL_MEMORY=256mb -s WASM_BIGINT -s FORCE_FILESYSTEM -s MAIN_MODULE=1 -s EXPORT_ALL=1 @CMakeFiles/xcpp.dir/objects1.rsp -o xcpp.js @CMakeFiles/xcpp.dir/linkLibs.rsp (in /Users/anutosh491/work/xeus-cpp/build3)
root:WARNING: Read response file CMakeFiles/xcpp.dir/objects1.rsp: ['CMakeFiles/xcpp.dir/src/main_emscripten_kernel.cpp.o']
root:WARNING: Read response file CMakeFiles/xcpp.dir/linkLibs.rsp: ['/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus-lite.a', 'libxeus-cpp.a', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus.a', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libclangCppInterOp.so', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libpugixml.a']
diagnostics:DEBUG: disabled warning: use of legacy setting: USE_PTHREADS (No longer needed. Use -pthread instead) [-Wlegacy-settings]
profiler:DEBUG: block "parse arguments" took 0.001 seconds
shared:DEBUG: successfully executed /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/bin/clang --version
shared:DEBUG: sanity file up-to-date: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/cache/sanity.txt
shared:DEBUG: successfully executed /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/node/16.20.0_64bit/bin/node --version
shared:DEBUG: successfully executed /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/bin/clang -print-targets
shared:INFO: (Emscripten: Running sanity checks)
shared:DEBUG: successfully executed /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/node/16.20.0_64bit/bin/node -e console.log("hello")
profiler:DEBUG: block "check_node" took 0.045 seconds
profiler:DEBUG: block "sanity LLVM" took 0.000 seconds
profiler:DEBUG: block "check_sanity" took 0.095 seconds
profiler:DEBUG: block "setup" took 0.002 seconds
profiler:DEBUG: block "ensure_sysroot" took 0.000 seconds
emcc:DEBUG: using object file: CMakeFiles/xcpp.dir/src/main_emscripten_kernel.cpp.o
emcc:DEBUG: using static library: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus-lite.a
emcc:DEBUG: using static library: libxeus-cpp.a
emcc:DEBUG: using static library: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus.a
emcc:DEBUG: using shared library: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libclangCppInterOp.so
emcc:DEBUG: using static library: /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libpugixml.a
profiler:DEBUG: block "compile inputs" took 0.000 seconds
feature_matrix:DEBUG: cannot use PROMISE_ANY because MIN_CHROME_VERSION is too old: 75
feature_matrix:DEBUG: cannot use BULK_MEMORY because MIN_FIREFOX_VERSION is too old: 68
profiler:DEBUG: block "linker_setup" took 0.000 seconds
emcc:DEBUG: looking for library "embind"
building:DEBUG: Mapping library `embind` to JS libraries: ['embind/embind.js', 'embind/emval.js']
emcc:DEBUG: Adding symbols requirements from
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libclangCppInterOp.so: {'strsignal', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKcm', 'srand', 'perror', '_ZNSt3__26localeC1Ev', '_ZSt17rethrow_exceptionSt13exception_ptr', 'round', 'posix_madvise', 'posix_spawn_file_actions_addopen', 'strtoll', '_ZNKSt3__223__match_any_but_newlineIcE6__execERNS_7__stateIcEE', 'putchar', 'statvfs', 'strdup', '_ZNSt13exception_ptrC1ERKS_', 'pthread_setspecific', '_ZNSt3__215__thread_structD1Ev', 'fstat', '_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEEC1Ev', 'getuid', '__multi3', 'close', 'dlsym', '_ZNSt3__218condition_variableD1Ev', '_ZNKSt3__214error_category10equivalentEiRKNS_15error_conditionE', '_ZdaPv', '_ZnwmRKSt9nothrow_t', '_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEED2Ev', '__stack_pointer', '_ZNSt3__213random_deviceD1Ev', 'pow', 'sigaction', 'tolower', 'getTempRet0', '_ZTVNSt3__214basic_ifstreamIcNS_11char_traitsIcEEEE', 'feclearexcept', 'tan', '_ZNSt3__217__assoc_sub_state16__on_zero_sharedEv', '_ZNSt3__211__call_onceERVmPvPFvS2_E', 'strtoul', '_ZNSt3__211this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILx1ELx1000000000EEEEE', 'dlclose', 'posix_spawn_file_actions_init', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE5writeEPKcl', 'unlink', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm', '_ZNSt3__26localeC1ERKS0_', '_ZNSt3__214error_categoryD2Ev', 'fcntl', 'getpwnam_r', 'dladdr', '_ZNSt3__217__assoc_sub_state9__executeEv', '_ZNSt3__26__sortIRNS_6__lessIccEEPcEEvT0_S5_T_', '_Znam', 'asin', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEm', 'memcpy', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev', '_ZNKSt3__219__shared_weak_count13__get_deleterERKSt9type_info', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev', 'snprintf', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEs', 'lstat', '_ZNSt3__25mutexD1Ev', '_ZTVNSt3__215basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE', 'mkdir', 'log10', 'iprintf', '_ZNSt3__29to_stringEx', 'localtime_r', 'toupper', 'strtoull', '_ZNSt3__213random_deviceC2ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE', '_ZNSt3__26chrono12system_clock9to_time_tERKNS0_10time_pointIS1_NS0_8durationIxNS_5ratioILx1ELx1000000EEEEEEE', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx', 'opendir', 'getpagesize', '_ZSt7nothrow', 'modf', 'strrchr', '__syscall_wait4', '_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEED1Ev', '_ZNSt3__214__shared_countD2Ev', '_ZSt9terminatev', '_Exit', 'tanh', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEf', 'ftell', 'calloc', '_ZNSt3__26futureIvEC1EPNS_17__assoc_sub_stateE', '__threwValue', '_ZNSt3__26chrono12steady_clock3nowEv', '_ZNSt3__28ios_base4initEPv', 'time', 'munmap', 'remove', 'free', '_ZNSt3__29to_stringEf', 'realpath', 'malloc', 'puts', 'saveSetjmp', '_ZNSt3__213random_deviceclEv', 'getpid', 'posix_spawn_file_actions_adddup2', 'fputc', 'stat', '__small_fprintf', '_ZNSt3__26__sortIRNS_6__lessIyyEEPyEEvT0_S5_T_', '_ZNSt3__212__next_primeEm', '_ZTTNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE', 'getrusage', '_ZdlPvSt11align_val_t', 'lseek', 'open', 'sinh', 'isxdigit', 'getpwuid_r', '_ZNSt3__214basic_iostreamIcNS_11char_traitsIcEEED2Ev', 'isupper', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKc', 'fgets', '_ZNSt3__2plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_', 'fread', '_ZNSt3__215recursive_mutex4lockEv', '_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcm', '__errno_location', 'write', '_ZNSt3__25ctypeIcE2idE', '_Znwm', '_ZNSt3__29to_stringEy', '_ZNSt3__218condition_variable10notify_allEv', 'sqrt', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEd', '_ZNSt3__25mutex6unlockEv', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc', 'emscripten_longjmp', '_ZNSt3__29to_stringEi', '_ZNSt3__219__thread_local_dataEv', 'strerror_r', '_ZNSt13exception_ptrD1Ev', 'strnlen', 'closedir', 'memcmp', 'sin', 'strtod', 'stderr', 'cos', 'memchr', 'memmove', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertENS_11__wrap_iterIPKcEEc', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm', 'strcmp', '__cxa_atexit', 'pread', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEt', '_ZNSt3__26localeD1Ev', 'atan', '_ZNSt3__29to_stringEl', 'kill', '_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEPKc', '_ZNSt3__26__sortIRNS_6__lessIjjEEPjEEvT0_S5_T_', '_ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE', '_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE4readEPcl', 'readlink', '_ZNKSt3__214error_category23default_error_conditionEi', 'exp', '_ZNSt3__29basic_iosIcNS_11char_traitsIcEEED2Ev', 'isatty', '_ZdlPv', 'rename', 'read', '__THREW__', '_ZNSt3__26chrono12system_clock11from_time_tEx', 'posix_spawn_file_actions_destroy', '_ZNSt3__26__sortIRNS_6__lessIttEEPtEEvT0_S5_T_', 'environ', '_ZNSt3__215system_categoryEv', 'ldexp', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEED2Ev', '_ZNKSt3__26locale9use_facetERNS0_2idE', 'sigfillset', '_ZNSt3__216generic_categoryEv', '_ZNSt3__26futureIvED1Ev', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm', '_ZNSt3__215recursive_mutexC1Ev', 'isalnum', 'pclose', 'strncpy', 'setTempRet0', 'ferror', '_ZNSt3__219__shared_mutex_baseC1Ev', '_ZTVNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE', 'alarm', 'exit', 'dlopen', 'cosh', '_ZNSt3__27collateIcE2idE', 'sigaltstack', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm', 'getcwd', '_ZNSt3__29to_stringEj', 'mmap', '_ZNSt3__215recursive_mutexD1Ev', '_ZNSt3__212future_errorC1ENS_10error_codeE', '_ZNSt3__215future_categoryEv', 'strstr', '_ZNSt3__217__assoc_sub_state4waitEv', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEmmPKc', '_ZnwmSt11align_val_t', 'fwrite', 'fiprintf', 'isalpha', '__jit_debug_descriptor', 'sigprocmask', '_ZNKSt3__210error_code7messageEv', '_ZNSt3__24stodERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPm', '_ZNSt3__220__get_collation_nameEPKc', '_ZNSt3__28ios_base5clearEj', '_ZNSt3__213shared_futureIvED1Ev', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEi', '_ZNKSt3__215basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv', '_ZNKSt3__26locale4nameEv', 'popen', 'strlen', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc', '_ZNSt3__219__shared_weak_count14__release_weakEv', 'strtol', 'log2', 'islower', '_ZNSt3__29to_stringEd', 'acos', '_ZNSt3__215__get_classnameEPKcb', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy', '__fixtfsi', '_ZTTNSt3__214basic_ifstreamIcNS_11char_traitsIcEEEE', '_ZNSt3__24stoiERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc', 'tmpfile', '_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE4openEPKcj', 'asctime', 'testSetjmp', '_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm', 'gethostname', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEj', '_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_', 'dup2', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE26__erase_external_with_moveEmm', 'localtime', 'strpbrk', 'fileno', 'fflush', '_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE6sentryC1ERS3_b', 'qsort', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEmmPKcm', 'wait', 'chdir', 'memset', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm', '_ZNSt3__29to_stringEm', 'dup', '_ZNSt3__217__assoc_sub_state9set_valueEv', '_ZNKSt3__214error_category10equivalentERKNS_10error_codeEi', 'readdir', 'atan2', '_ZNSt3__26chrono12system_clock3nowEv', '_ZNSt3__219__shared_weak_countD2Ev', '_ZTVNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE', '_ZNSt3__215recursive_mutex6unlockEv', '__lshrti3', 'fclose', 'raise', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSEc', 'log2f', 'realloc', 'symlink', 'abort', 'gmtime', 'strncmp', 'getsid', '_ZNKSt3__28ios_base6getlocEv', 'strchr', '_ZNSt3__217__assoc_sub_state10__sub_waitERNS_11unique_lockINS_5mutexEEE', 'posix_spawn', '_ZTVNSt3__217__assoc_sub_stateE', '_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEEC2Ev', '_ZNSt3__25mutex4lockEv', 'ftruncate', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_', 'stdout', 'rand', 'isspace', '_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEED2Ev', 'log', 'getenv', 'dlerror', 'fseek', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKcm', 'strftime', '__cxa_pure_virtual', 'access', 'atoi', 'exp2', '_ZNSt3__219__shared_weak_count4lockEv', 'uname', 'sysconf', '__memory_base', 'strcpy', 'mallinfo', '_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEmc', 'sigemptyset', '__table_base'}
Doesn't show any clangIntepreter based symbols I guess
2) All the flags passed on during linking
shared:DEBUG: successfully executed /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/node/16.20.0_64bit/bin/node /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/src/compiler.js /var/folders/m1/cdn74f917994jd99d_2cpf440000gn/T/emscripten_temp/tmp6t2nsa6m.json --symbols-only
profiler:DEBUG: block "JS symbol generation" took 0.180 seconds
system_libs:DEBUG: forcing stdlibs: ['libembind']
system_libs:DEBUG: including libembind (libembind-rtti.a)
system_libs:DEBUG: including libGL (libGL.a)
system_libs:DEBUG: including libal (libal.a)
system_libs:DEBUG: including libhtml5 (libhtml5.a)
system_libs:DEBUG: including libstubs (libstubs-debug.a)
system_libs:DEBUG: including libc (libc-asan-debug.a)
system_libs:DEBUG: including libmalloc (libdlmalloc-debug.a)
system_libs:DEBUG: including libcompiler_rt (libcompiler_rt.a)
system_libs:DEBUG: including libc++ (libc++.a)
system_libs:DEBUG: including libc++abi (libc++abi-debug.a)
system_libs:DEBUG: including libsockets (libsockets.a)
system_libs:DEBUG: including libasan_rt (libasan_rt.a)
system_libs:DEBUG: including libasan_js (libasan_js.a)
system_libs:DEBUG: including libubsan_rt (libubsan_rt.a)
system_libs:DEBUG: including liblsan_common_rt (liblsan_common_rt.a)
system_libs:DEBUG: including libsanitizer_common_rt (libsanitizer_common_rt.a)
profiler:DEBUG: block "calculate system libraries" took 0.001 seconds
emcc:DEBUG: linking: ['--export-all', 'CMakeFiles/xcpp.dir/src/main_emscripten_kernel.cpp.o', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus-lite.a', 'libxeus-cpp.a', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus.a', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libclangCppInterOp.so', '/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libpugixml.a', '-L/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic', '-lembind-rtti', '-lGL', '-lal', '-lhtml5', '-lstubs-debug', '-lc-asan-debug', '-ldlmalloc-debug', '-lcompiler_rt', '-lc++', '-lc++abi-debug', '-lsockets', '-lasan_rt', '-lasan_js', '-lubsan_rt', '-llsan_common_rt', '-lsanitizer_common_rt']
building:DEBUG: using response file for /Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/bin/wasm-ld
root:WARNING: Creating response file /var/folders/m1/cdn74f917994jd99d_2cpf440000gn/T/emscripten_6javi6hu.rsp.utf-8 with following contents: -o
xcpp.wasm
--whole-archive
--export-all
CMakeFiles/xcpp.dir/src/main_emscripten_kernel.cpp.o
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus-lite.a
libxeus-cpp.a
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libxeus.a
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libclangCppInterOp.so
/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-host/lib/libpugixml.a
-L/Users/anutosh491/micromamba/envs/xeus-cpp-wasm-build/lib/python3.13/site-packages/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic
-lembind-rtti
-lGL
-lal
-lhtml5
-lstubs-debug
-lc-asan-debug
-ldlmalloc-debug
-lcompiler_rt
-lc++
-lc++abi-debug
-lsockets
-lasan_rt
-lasan_js
-lubsan_rt
-llsan_common_rt
-lsanitizer_common_rt
--no-whole-archive
-mllvm
-combiner-global-alias-analysis=false
-mllvm
-enable-emscripten-cxx-exceptions
-mllvm
-enable-emscripten-sjlj
-mllvm
-disable-lsr
--export-if-defined=setThrew
--export-if-defined=malloc
--export-if-defined=__get_exception_message
--export-if-defined=free
--export-if-defined=__cxa_increment_exception_refcount
--export-if-defined=__cxa_decrement_exception_refcount
--export-if-defined=__errno_location
--export-if-defined=htons
--export-if-defined=ntohs
--export-if-defined=memcpy
--export-if-defined=htonl
--export-if-defined=_emscripten_timeout
--export-if-defined=emscripten_stack_get_current
--export-if-defined=emscripten_builtin_malloc
--export-if-defined=emscripten_builtin_free
--export-if-defined=emscripten_builtin_memalign
--export-if-defined=__cxa_is_pointer_type
--export-if-defined=emscripten_stack_get_base
--export-if-defined=emscripten_stack_get_end
--export-if-defined=setTempRet0
--export-if-defined=__cxa_can_catch
--export-if-defined=fileno
--export-if-defined=__dl_seterr
--export-if-defined=memcmp
--export-if-defined=__getTypeName
/var/folders/m1/cdn74f917994jd99d_2cpf440000gn/T/emscripten_temp/tmpna5w93c5libemscripten_js_symbols.so
--import-memory
--export-dynamic
--export-if-defined=main
--export-if-defined=__get_exception_message
--export-if-defined=free
--export-if-defined=__start_em_asm
--export-if-defined=__stop_em_asm
--export-if-defined=__start_em_lib_deps
--export-if-defined=__stop_em_lib_deps
--export-if-defined=__start_em_js
--export-if-defined=__stop_em_js
--export-if-defined=__main_argc_argv
--export-if-defined=__wasm_apply_data_relocs
--export-if-defined=fflush
--export-if-defined=_Exit
--export-if-defined=_ZNKSt3__210error_code7messageEv
--export-if-defined=_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm
--export-if-defined=_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcm
--export-if-defined=_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEPKc
--export-if-defined=_ZNKSt3__214error_category10equivalentERKNS_10error_codeEi
--export-if-defined=_ZNKSt3__214error_category10equivalentEiRKNS_15error_conditionE
--export-if-defined=_ZNKSt3__214error_category23default_error_conditionEi
--export-if-defined=_ZNKSt3__215basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
--export-if-defined=_ZNKSt3__219__shared_weak_count13__get_deleterERKSt9type_info
--export-if-defined=_ZNKSt3__223__match_any_but_newlineIcE6__execERNS_7__stateIcEE
--export-if-defined=_ZNKSt3__26locale4nameEv
--export-if-defined=_ZNKSt3__26locale9use_facetERNS0_2idE
--export-if-defined=_ZNKSt3__28ios_base6getlocEv
--export-if-defined=_ZNSt13exception_ptrC1ERKS_
--export-if-defined=_ZNSt13exception_ptrD1Ev
--export-if-defined=_ZNSt3__211__call_onceERVmPvPFvS2_E
--export-if-defined=_ZNSt3__211this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILx1ELx1000000000EEEEE
--export-if-defined=_ZNSt3__212__next_primeEm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE26__erase_external_with_moveEmm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE2atEm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertENS_11__wrap_iterIPKcEEc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEmc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEmmPKc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEmmPKcm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev
--export-if-defined=_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSEc
--export-if-defined=_ZNSt3__212future_errorC1ENS_10error_codeE
--export-if-defined=_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE4openEPKcj
--export-if-defined=_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEEC1Ev
--export-if-defined=_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEED1Ev
--export-if-defined=_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE4readEPcl
--export-if-defined=_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE6sentryC1ERS3_b
--export-if-defined=_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEED2Ev
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE5writeEPKcl
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEED2Ev
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEd
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEf
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEi
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEj
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEm
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEs
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEt
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx
--export-if-defined=_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy
--export-if-defined=_ZNSt3__213random_deviceC2ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZNSt3__213random_deviceD1Ev
--export-if-defined=_ZNSt3__213random_deviceclEv
--export-if-defined=_ZNSt3__213shared_futureIvED1Ev
--export-if-defined=_ZNSt3__214__shared_countD2Ev
--export-if-defined=_ZNSt3__214basic_iostreamIcNS_11char_traitsIcEEED2Ev
--export-if-defined=_ZNSt3__214error_categoryD2Ev
--export-if-defined=_ZNSt3__215__get_classnameEPKcb
--export-if-defined=_ZNSt3__215__thread_structD1Ev
--export-if-defined=_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEEC2Ev
--export-if-defined=_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEED2Ev
--export-if-defined=_ZNSt3__215future_categoryEv
--export-if-defined=_ZNSt3__215recursive_mutex4lockEv
--export-if-defined=_ZNSt3__215recursive_mutex6unlockEv
--export-if-defined=_ZNSt3__215recursive_mutexC1Ev
--export-if-defined=_ZNSt3__215recursive_mutexD1Ev
--export-if-defined=_ZNSt3__215system_categoryEv
--export-if-defined=_ZNSt3__216generic_categoryEv
--export-if-defined=_ZNSt3__217__assoc_sub_state10__sub_waitERNS_11unique_lockINS_5mutexEEE
--export-if-defined=_ZNSt3__217__assoc_sub_state16__on_zero_sharedEv
--export-if-defined=_ZNSt3__217__assoc_sub_state4waitEv
--export-if-defined=_ZNSt3__217__assoc_sub_state9__executeEv
--export-if-defined=_ZNSt3__217__assoc_sub_state9set_valueEv
--export-if-defined=_ZNSt3__218condition_variable10notify_allEv
--export-if-defined=_ZNSt3__218condition_variableD1Ev
--export-if-defined=_ZNSt3__219__shared_mutex_baseC1Ev
--export-if-defined=_ZNSt3__219__shared_weak_count14__release_weakEv
--export-if-defined=_ZNSt3__219__shared_weak_count4lockEv
--export-if-defined=_ZNSt3__219__shared_weak_countD2Ev
--export-if-defined=_ZNSt3__219__thread_local_dataEv
--export-if-defined=_ZNSt3__220__get_collation_nameEPKc
--export-if-defined=_ZNSt3__24stodERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPm
--export-if-defined=_ZNSt3__24stoiERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi
--export-if-defined=_ZNSt3__25ctypeIcE2idE
--export-if-defined=_ZNSt3__25mutex4lockEv
--export-if-defined=_ZNSt3__25mutex6unlockEv
--export-if-defined=_ZNSt3__25mutexD1Ev
--export-if-defined=_ZNSt3__26__sortIRNS_6__lessIccEEPcEEvT0_S5_T_
--export-if-defined=_ZNSt3__26__sortIRNS_6__lessIjjEEPjEEvT0_S5_T_
--export-if-defined=_ZNSt3__26__sortIRNS_6__lessIttEEPtEEvT0_S5_T_
--export-if-defined=_ZNSt3__26__sortIRNS_6__lessIyyEEPyEEvT0_S5_T_
--export-if-defined=_ZNSt3__26chrono12steady_clock3nowEv
--export-if-defined=_ZNSt3__26chrono12system_clock11from_time_tEx
--export-if-defined=_ZNSt3__26chrono12system_clock3nowEv
--export-if-defined=_ZNSt3__26chrono12system_clock9to_time_tERKNS0_10time_pointIS1_NS0_8durationIxNS_5ratioILx1ELx1000000EEEEEEE
--export-if-defined=_ZNSt3__26futureIvEC1EPNS_17__assoc_sub_stateE
--export-if-defined=_ZNSt3__26futureIvED1Ev
--export-if-defined=_ZNSt3__26localeC1ERKS0_
--export-if-defined=_ZNSt3__26localeC1Ev
--export-if-defined=_ZNSt3__26localeD1Ev
--export-if-defined=_ZNSt3__27collateIcE2idE
--export-if-defined=_ZNSt3__28ios_base4initEPv
--export-if-defined=_ZNSt3__28ios_base5clearEj
--export-if-defined=_ZNSt3__29basic_iosIcNS_11char_traitsIcEEED2Ev
--export-if-defined=_ZNSt3__29to_stringEd
--export-if-defined=_ZNSt3__29to_stringEf
--export-if-defined=_ZNSt3__29to_stringEi
--export-if-defined=_ZNSt3__29to_stringEj
--export-if-defined=_ZNSt3__29to_stringEl
--export-if-defined=_ZNSt3__29to_stringEm
--export-if-defined=_ZNSt3__29to_stringEx
--export-if-defined=_ZNSt3__29to_stringEy
--export-if-defined=_ZNSt3__2plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEPKS6_RKS9_
--export-if-defined=_ZSt17rethrow_exceptionSt13exception_ptr
--export-if-defined=_ZSt7nothrow
--export-if-defined=_ZSt9terminatev
--export-if-defined=_ZTTNSt3__214basic_ifstreamIcNS_11char_traitsIcEEEE
--export-if-defined=_ZTTNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZTVNSt3__214basic_ifstreamIcNS_11char_traitsIcEEEE
--export-if-defined=_ZTVNSt3__215basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZTVNSt3__217__assoc_sub_stateE
--export-if-defined=_ZTVNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZTVNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
--export-if-defined=_ZdaPv
--export-if-defined=_ZdlPv
--export-if-defined=_ZdlPvSt11align_val_t
--export-if-defined=_Znam
--export-if-defined=_Znwm
--export-if-defined=_ZnwmRKSt9nothrow_t
--export-if-defined=_ZnwmSt11align_val_t
--export-if-defined=__THREW__
--export-if-defined=__cxa_atexit
--export-if-defined=__cxa_pure_virtual
--export-if-defined=__errno_location
--export-if-defined=__fixtfsi
--export-if-defined=__jit_debug_descriptor
--export-if-defined=__lshrti3
--export-if-defined=__multi3
--export-if-defined=__small_fprintf
--export-if-defined=__syscall_wait4
--export-if-defined=__threwValue
--export-if-defined=access
--export-if-defined=acos
--export-if-defined=alarm
--export-if-defined=asctime
--export-if-defined=asin
--export-if-defined=atan
--export-if-defined=atan2
--export-if-defined=atoi
--export-if-defined=calloc
--export-if-defined=chdir
--export-if-defined=close
--export-if-defined=closedir
--export-if-defined=cos
--export-if-defined=cosh
--export-if-defined=dladdr
--export-if-defined=dlclose
--export-if-defined=dlerror
--export-if-defined=dlopen
--export-if-defined=dlsym
--export-if-defined=dup
--export-if-defined=dup2
--export-if-defined=emscripten_longjmp
--export-if-defined=environ
--export-if-defined=exp
--export-if-defined=exp2
--export-if-defined=fclose
--export-if-defined=fcntl
--export-if-defined=feclearexcept
--export-if-defined=ferror
--export-if-defined=fgets
--export-if-defined=fileno
--export-if-defined=fiprintf
--export-if-defined=fputc
--export-if-defined=fread
--export-if-defined=free
--export-if-defined=fseek
--export-if-defined=fstat
--export-if-defined=ftell
--export-if-defined=ftruncate
--export-if-defined=fwrite
--export-if-defined=getTempRet0
--export-if-defined=getcwd
--export-if-defined=getenv
--export-if-defined=gethostname
--export-if-defined=getpagesize
--export-if-defined=getpid
--export-if-defined=getpwnam_r
--export-if-defined=getpwuid_r
--export-if-defined=getrusage
--export-if-defined=getsid
--export-if-defined=getuid
--export-if-defined=gmtime
--export-if-defined=iprintf
--export-if-defined=isalnum
--export-if-defined=isalpha
--export-if-defined=isatty
--export-if-defined=islower
--export-if-defined=isspace
--export-if-defined=isupper
--export-if-defined=isxdigit
--export-if-defined=kill
--export-if-defined=ldexp
--export-if-defined=localtime
--export-if-defined=localtime_r
--export-if-defined=log
--export-if-defined=log10
--export-if-defined=log2
--export-if-defined=log2f
--export-if-defined=lseek
--export-if-defined=lstat
--export-if-defined=mallinfo
--export-if-defined=malloc
--export-if-defined=memchr
--export-if-defined=memcmp
--export-if-defined=memcpy
--export-if-defined=memmove
--export-if-defined=memset
--export-if-defined=mkdir
--export-if-defined=mmap
--export-if-defined=modf
--export-if-defined=munmap
--export-if-defined=open
--export-if-defined=opendir
--export-if-defined=pclose
--export-if-defined=perror
--export-if-defined=popen
--export-if-defined=posix_madvise
--export-if-defined=posix_spawn
--export-if-defined=posix_spawn_file_actions_adddup2
--export-if-defined=posix_spawn_file_actions_addopen
--export-if-defined=posix_spawn_file_actions_destroy
--export-if-defined=posix_spawn_file_actions_init
--export-if-defined=pow
--export-if-defined=pread
--export-if-defined=pthread_setspecific
--export-if-defined=putchar
--export-if-defined=puts
--export-if-defined=qsort
--export-if-defined=raise
--export-if-defined=rand
--export-if-defined=read
--export-if-defined=readdir
--export-if-defined=readlink
--export-if-defined=realloc
--export-if-defined=realpath
--export-if-defined=remove
--export-if-defined=rename
--export-if-defined=round
--export-if-defined=saveSetjmp
--export-if-defined=setTempRet0
--export-if-defined=sigaction
--export-if-defined=sigaltstack
--export-if-defined=sigemptyset
--export-if-defined=sigfillset
--export-if-defined=sigprocmask
--export-if-defined=sin
--export-if-defined=sinh
--export-if-defined=snprintf
--export-if-defined=sqrt
--export-if-defined=srand
--export-if-defined=stat
--export-if-defined=statvfs
--export-if-defined=stderr
--export-if-defined=stdout
--export-if-defined=strchr
--export-if-defined=strcmp
--export-if-defined=strcpy
--export-if-defined=strdup
--export-if-defined=strerror_r
--export-if-defined=strlen
--export-if-defined=strncmp
--export-if-defined=strncpy
--export-if-defined=strnlen
--export-if-defined=strpbrk
--export-if-defined=strrchr
--export-if-defined=strsignal
--export-if-defined=strstr
--export-if-defined=strtod
--export-if-defined=strtol
--export-if-defined=strtoll
--export-if-defined=strtoul
--export-if-defined=strtoull
--export-if-defined=symlink
--export-if-defined=sysconf
--export-if-defined=tan
--export-if-defined=tanh
--export-if-defined=testSetjmp
--export-if-defined=time
--export-if-defined=tmpfile
--export-if-defined=tolower
--export-if-defined=toupper
--export-if-defined=uname
--export-if-defined=unlink
--export-if-defined=wait
--export-if-defined=write
--export=emscripten_stack_get_end
--export=emscripten_stack_get_free
--export=emscripten_stack_get_base
--export=emscripten_stack_get_current
--export=emscripten_stack_set_limits
--export=stackSave
--export=stackRestore
--export=stackAlloc
--export=__errno_location
--export=memalign
--export=emscripten_builtin_memalign
--export=emscripten_builtin_malloc
--export=emscripten_builtin_free
--export=_asan_c_load_1
--export=_asan_c_load_1u
--export=_asan_c_load_2
--export=_asan_c_load_2u
--export=_asan_c_load_4
--export=_asan_c_load_4u
--export=_asan_c_load_f
--export=_asan_c_load_d
--export=_asan_c_store_1
--export=_asan_c_store_1u
--export=_asan_c_store_2
--export=_asan_c_store_2u
--export=_asan_c_store_4
--export=_asan_c_store_4u
--export=_asan_c_store_f
--export=_asan_c_store_d
--export=__funcs_on_exit
--export=malloc
--export=free
--export=__cxa_is_pointer_type
--export=__cxa_can_catch
--export=__cxa_increment_exception_refcount
--export=__cxa_decrement_exception_refcount
--export=setThrew
--export=__cxa_free_exception
--export=__wasm_call_ctors
--export=__get_exception_message
--experimental-pic
-pie
-z
stack-size=67108864
--initial-memory=575275008
--max-memory=2147483648
--no-entry
LLVM build from emscripten-forge looks good
Shared library for CppInterOp (
libclangCppInterOp.so
)set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE) set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1 -shared -s EXPORT_ALL=1 -s LINKABLE=1 -Wl,--export-all") set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1 -shared -s EXPORT_ALL=1 -s LINKABLE=1 -Wl,--export-all") set(CMAKE_STRIP FALSE)
add_llvm_library(clangCppInterOp SHARED
CppInterOp.cpp DynamicLibraryManager.cpp DynamicLibraryManagerSymbol.cpp Paths.cpp
Additional libraries from Clang and LLD
LINK_LIBS "-Wl,--whole-archive" clangInterpreter "-Wl,--no-whole-archive" )
Append EXPORTED_FUNCTIONS to existing C and C++ compiler flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s EXPORTED_FUNCTIONS=['_clang_Interpreter_SetValueNoAlloc']") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS=['_clang_Interpreter_SetValueNoAlloc']")
em++: warning: EXPORTED_FUNCTIONS is not valid with LINKABLE set (normally due to SIDE_MODULE=1/MAIN_MODULE=1) since all functions are exported this mode. To export only a subset use SIDE_MODULE=2/MAIN_MODULE=2
macro(xeus_cpp_set_kernel_options target_name)
-s EXPORT_ALL=1