New undefined errors with emcc 1.40

35 views
Skip to first unread message

キャロウ マーク

unread,
Jul 31, 2020, 4:50:38 PM7/31/20
to emscripten-discuss
When compiling my project with emcc 1.40 we get the following errors that did not appear with 1.39.5;

> emcc --version
emcc (Emscripten gcc/clang-like replacement) 1.40.0 (634dfe9c7837119d3970c4145984b8f517e3e1ca)

> cmake --build build-web-release --config Release
[54/54] Linking CXX executable libktx.js
FAILED: libktx.js
error: undefined symbol: _tempFixedLengthArray (referenced by emscripten_glInvalidateFramebuffer__deps: ['_tempFixedLengthArray'], 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: __tempFixedLengthArray may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: _heapObjectForWebGLType (referenced by emscripten_glTexImage3D__deps: ['_heapObjectForWebGLType','_heapAccessShiftForWebGLHeap'], referenced by top-level compiled C/C++ code)
warning: __heapObjectForWebGLType may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: _heapAccessShiftForWebGLHeap (referenced by emscripten_glTexImage3D__deps: ['_heapObjectForWebGLType','_heapAccessShiftForWebGLHeap'], referenced by top-level compiled C/C++ code)
warning: __heapAccessShiftForWebGLHeap may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors

Was something changed in the GL ES emulation?

Why would it have worked before without adding these things to EXPORTED_FUNCTIONS?

Regards

    -Mark
signature.asc

Alon Zakai

unread,
Jul 31, 2020, 5:20:32 PM7/31/20
to emscripte...@googlegroups.com
I think this is


Sorry about this regression - please use the previous release until we tag a new one with a fix.


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/4C3D2F01-76C6-4251-A837-58E854EED8EB%40callow.im.

キャロウ マーク

unread,
Jul 31, 2020, 6:44:47 PM7/31/20
to emscripten-discuss


On Jul 31, 2020, at 14:20, Alon Zakai <alon...@gmail.com> wrote:

I think this is


Sorry about this regression - please use the previous release until we tag a new one with a fix.


Yes it does. Thanks for the quick reply.

Regards

    -Mark
signature.asc

Sam Clegg

unread,
Aug 1, 2020, 1:15:05 AM8/1/20
to emscripte...@googlegroups.com
Sorry about that.  I broke this, and it also showed up a gap in our testing.


cheers,
sam

On Fri, Jul 31, 2020 at 1:50 PM キャロウ マーク <git...@callow.im> wrote:
--
Reply all
Reply to author
Forward
0 new messages