Thanks for the working reproducer. I think what's happening is that boost is indirectly pulling in gcc-16 (the chain appears to be something like libboost-all-dev -> libboost-mpi-dev -> libboost-mpi1.90-dev -> mpi-default-dev -> libopenmpi-dev -> gfortran-16 -> gcc-16). But that doesn't actually bring in version 16 of libstdc++.
Something in how clang determines which standard library to use is triggered by that installation (I suspect maybe the CRT objects existing in /usr/lib), so clang is trying to link against version 16 and failing to find what it needs. So in the short term, you can either install libstdc++-16-dev or you can specify a different version with `--gcc-install-dir`. I need to think about the right fix, but my intuition is that it might be we want to add the standard library as a dependency of libgcc or something similar to that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2144697 Title: clang++ is not able to compile a simple test program To manage notifications about this bug go to: https://bugs.launchpad.net/votca/+bug/2144697/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
