You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linking errors after switched to new emsdk... #15958
Hello,
I recently switched to new emsdk and now cannot link my projects with this errors:
error: undefined symbol: _get_daylight (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by __localtime_r__deps: ['localtime_r'], referenced by top-level compiled C/C++ code)
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: __get_daylight may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: _get_timezone (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by __localtime_r__deps: ['localtime_r'], referenced by top-level compiled C/C++ code)
warning: __get_timezone may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
error: undefined symbol: _get_tzname (referenced by tzset_impl__deps: ['_get_daylight','_get_timezone','_get_tzname'], referenced by tzset__deps: ['tzset_impl'], referenced by localtime_r__deps: ['tzset'], referenced by __localtime_r__deps: ['localtime_r'], referenced by top-level compiled C/C++ code)
warning: __get_tzname may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
em++: error: 'D:/Projects/emsdk/node/14.15.5_64bit/bin/node.exe D:\Projects\emsdk\upstream\emscripten\src\compiler.js C:\Users\Andrey\AppData\Local\Temp\tmphplnjtvj.txt' failed (returned 1)
ninja: build stopped: subcommand failed.
Perhaps try ./emcc --clear-cache just to make sure. And rebuild all your project's libraries from scratch (maybe this is caused by old object files in the previous sdk being linked with the new).
I ran into the same link errors that @Honya2000 reported when I tried to build Little-CMS. 3.1.2 and 3.0.1 both failed, but 2.0.6 worked. This was on a fresh ubuntu 20.04 on a cloud VM so no old cache files.
Activity
Honya2000 commentedon Jan 11, 2022
Weird thing is that i'm seems like do not use those functions at all.
Not sure why linker complains...
kripken commentedon Jan 11, 2022
Perhaps try
./emcc --clear-cachejust to make sure. And rebuild all your project's libraries from scratch (maybe this is caused by old object files in the previous sdk being linked with the new).pieper commentedon Jan 22, 2022
I ran into the same link errors that @Honya2000 reported when I tried to build Little-CMS. 3.1.2 and 3.0.1 both failed, but 2.0.6 worked. This was on a fresh ubuntu 20.04 on a cloud VM so no old cache files.
kripken commentedon Jan 25, 2022
Ok, this sounds like a regression then. If one of you can bisect it, that should be the fastest way to find what caused the issue,
https://emscripten.org/docs/contributing/developers_guide.html#bisecting
Avoid reverse dependencies in JS library code handling time. NFC
Avoid reverse dependencies in JS library code handling time. NFC
Avoid reverse dependencies in JS library code handling time. NFC
Avoid reverse dependencies in JS library code handling time. NFC (#16118
Upgrade to Emscripten💩 3.1.10
Upgrade to Emscripten💩 3.1.10