s
Untitled
m
I looked at libstdc++ source code and there is a define called _GLIBCXX_HAVE_TLS (TLS = thread local storage) that changes the implementation of std::call_once. Apparently libleveldb seems to have been compiled with _GLIBCXX_HAVE_TLS being defined but your libstdc++ shipped with your compiler was built with the above option undefined
Is gcc also shipped with the toolchain? If you do gcc -v it will give you the configure options that were used to build the compiler and its runtimes. This may give us a hint
s
I got it working. Thanks 😉
m
What was the issue?
s
Honestly, hard to tell... I played a bit with
-femulated-tls
and went back to the original config... and it worked 😬 Might have something to do with compilation cache or something. I am really bumed I cannot get it fail again. I went back to the original config (with ctrl-z) and it's still working. C++ always gives me a sense of... disorientation.
m
It's very weird as the macro mentioned above is set once in bits/c++config.h when libstdc++ is built and shouldn't be set by anyone else again ever. Somehow somewhere that must have gotten out of sync