Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile for Web errors on linking #1

Open
ElectronicArmory opened this issue Jun 10, 2020 · 0 comments
Open

Compile for Web errors on linking #1

ElectronicArmory opened this issue Jun 10, 2020 · 0 comments

Comments

@ElectronicArmory
Copy link

OS target (iOS):
JavaScript/WebAssembly

Godot version:
3.2.2

Issue description:
Fails when linking. Only fails when attempting to build for JavaScript/Web on macOS 10.15.5. Works great for Android and iOS.
Tried both release and release_debug with no success:
scons platform=javascript tools=no target=release --jobs=$(sysctl -n hw.logicalcpu)

Here's the following output:

[ 99%] progress_finish(["progress_finish"], [])
[100%] Linking Program        ==> bin/godot.javascript.opt.js
[100%] error: undefined symbol: mbedtls_md_free (referenced by top-level compiled C/C++ code)
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _mbedtls_md_free may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_hmac_finish (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_hmac_finish may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_hmac_starts (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_hmac_starts may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_hmac_update (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_hmac_update may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_info_from_type (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_info_from_type may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_init (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_init may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: mbedtls_md_setup (referenced by top-level compiled C/C++ code)
warning: _mbedtls_md_setup may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc: error: '/emsdk/node/12.9.1_64bit/bin/node /emsdk/upstream/emscripten/src/compiler.js /var/folders/lh/4b342pzx6hg6nkp425k3rr3w0000gp/T/tmpqug7_yvu.txt' failed (1)
scons: *** [bin/godot.javascript.opt.js] Error 1
scons: building terminated because of errors.

I just need the godot.javascript.opt.zip and godot.javascript.opt.debug.zip templates built with 3.2.2 to be able to build for web and use this module. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant