This error means that some code wasn't compiled with -pthread and therefore is not safe to execute in a multithreaded environment. Normally the error message tells you which object is the culprit, but it's less helpful here because you're using LTO. Does the problem persist if you turn off LTO?
On Mon, Jul 17, 2023 at 8:49 AM Ronny Nissengold <ronny....@gmail.com> wrote: > Hi all! > I am trying to use multithreading in my project. > I got this error when passing -pthread both to compiler and linker. > I am using cmake. > Any idea how to overcome this? > Thanks! > > -- > 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-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/acbc873e-078a-4082-8761-6c0322246170n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/acbc873e-078a-4082-8761-6c0322246170n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EVbKRUykQyuhYRhQEjMGYBXWtw-QRkxTByr18O%3D5fZYnw%40mail.gmail.com.