skip to Main Content

Docker – "version `GLIBCXX_3.4.30' not found" but found in /usr/lib/x86_64-linux-gnu/libstdc++.so.6

$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX_3.4.30 GLIBCXX_3.4.30 Yet, when running another application on the same docker container: org.postgresql.util.PSQLException: ERROR: could not load library "/usr/lib/postgresql/13/lib/llvmjit.so": /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libz3.so.4) The llvvjit.so file is also present: # ls…

VIEW QUESTION

Ubuntu – Undefined behavior (according to clang -fsanitize=integer) on libstdc++ std::random due to negative index on Mersenne Twister engine

I'm using clang++ 10 on Ubuntu 20.04 LTS, with -fsanitize-undefined-trap-on-error -fsanitize=address,undefined,nullability,implicit-integer-truncation,implicit-integer-arithmetic-value-change,implicit-conversion,integer My code is generating random bytes with std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<uint8_t> dd(0, 255); ... ch = uint8_t(dd(gen)); This last line causes the sanitizer to report undefined behavior is…

VIEW QUESTION

How to install libstdc++6 debug symbols on Ubuntu 20.04? – Debian

For example, take the following minimal example: #include <cstdio> #include <stdexcept> int main(int argc, char* argv[]){ #ifdef __GLIBCPP__ std::printf("GLIBCPP: %dn",__GLIBCPP__); #endif #ifdef __GLIBCXX__ std::printf("GLIBCXX: %dn",__GLIBCXX__); #endif throw std::runtime_error("Were are libstdc++.so.6 debug symbols?"); return 0; } When running it inside my…

VIEW QUESTION

devtoolset-7 stl_vector.h undefined reference to `std::__throw_out_of_range_fmt(char const*, …)' – CentOS

I am currently trying compile my program on CentOS 7, and below error has occurred. It works well with ubuntu 18.04, but it is not works with CentOS 7. db/obj-db.o: In function `std::vector<std::string, std::allocator<std::string> >::_M_range_check(unsigned long) const': /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/stl_vector.h:825: undefined reference…

VIEW QUESTION
Back To Top
Search