Skip to content

EM_ASM not supported on MAIN or SIDE_MODULES #18199

@anggupta

Description

@anggupta

One of the very first blocker in Dynamic Linking is EM_ASM not supported on MAIN/SIDE MODULES.

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 [-Wunused-command-line-argument]
em++: warning: -sSIDE_MODULE + pthreads is experimental [-Wexperimental]
em++: warning: ignoring unsupported linker flag: -soname [-Wlinkflags]
em++: error: EM_ASM is not supported in side modules
ninja: build stopped: subcommand failed.
Warning: Command failed: set -o pipefail && cmake -DCMAKE_C_FLAGS="" -DCMAKE_CXX_FLAGS="" -GNinja -DCMAKE_TOOLCHAIN_FILE="/Users/suryaban/.venus_emscripten/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" -DCMAKE_BUILD_TYPE=Debug -S app/proj/TritiumLib/linux_web/TritiumLib/ -B symbols/linux_web/Debug/TritiumLib && cd symbols/linux_web/Debug/TritiumLib && /opt/homebrew/bin/ninja && cd - 2>&1 | tee /Users/suryaban/Documents/Adobe_Git/tritium_dynamic_link/illustrator/tmp/compileBuildLogs/TritiumLib.txt
Use --force to continue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions