Compiling an application in debug mode and linking dynamically produces the following error :
error: lld-link: _gnu_exception_handler was replaced
I discovered this after I've updated my project to compile on Zig 0.14.0. I've also noticed that the error persists even after removing all the code and keeping just the webui module.
Compiling the library using the makefile in the main repository does not export that symbol anywhere, only Zig seems to do it.
Static linking does get rid of that error, but it crashes, regardless of the optimization / release mode :
Segmentation fault at address 0x0
D:\Stuff\Programs\Dev\ziglang\lib\libc\mingw\winpthreads\clock.c:128:0: 0x7ff61916f424 in clock_gettime (mingw32.lib)
_pthread_get_system_time_best_as_file_time(&ct.ft);
D:\Stuff\Programs\Dev\Zig stuff\waveboard_zig\external\webui-main\src\civetweb\civetweb.c:6025:0: 0x7ff61915d4e6 in get_random (webui.lib)
uint64_t now = mg_get_current_time_ns();
D:\Stuff\Programs\Dev\Zig stuff\waveboard_zig\external\webui-main\src\civetweb\civetweb.c:21156:0: 0x7ff6191610dc in mg_start2 (webui.lib)
ctx->dd.auth_nonce_mask =
D:\Stuff\Programs\Dev\Zig stuff\waveboard_zig\external\webui-main\src\civetweb\civetweb.c:21861:0: 0x7ff619162de0 in mg_start (webui.lib)
return mg_start2(&init, NULL);
D:\Stuff\Programs\Dev\Zig stuff\waveboard_zig\external\webui-main\src\webui.c:8973:0: 0x7ff61912d445 in _webui_server_thread (webui.lib)
http_ctx = mg_start(&http_callbacks, 0, http_options);
???:?:?: 0x7ff9a0327033 in ??? (KERNEL32.DLL)
???:?:?: 0x7ff9a18e26a0 in ??? (ntdll.dll)
Everything was fine on 0.13.0 and even some development versions of 0.14.0, but not on the final version.
Compiling an application in debug mode and linking dynamically produces the following error :
I discovered this after I've updated my project to compile on Zig 0.14.0. I've also noticed that the error persists even after removing all the code and keeping just the webui module.
Compiling the library using the makefile in the main repository does not export that symbol anywhere, only Zig seems to do it.
Static linking does get rid of that error, but it crashes, regardless of the optimization / release mode :
Everything was fine on 0.13.0 and even some development versions of 0.14.0, but not on the final version.