Closed issue by meator on void-packages repository https://github.com/void-linux/void-packages/issues/49207 Description: ### Is this a new report? Yes ### System Info Void 6.6.18_1 x86_64 GenuineIntel uptodate hold rrrdDFFFFFFFFFFFFFFFFFFFFFFFFFFFF ### Package(s) Affected libstdc++-13.2.0_2 libstdc++-devel-13.2.0_2 libstdc++-dbg-13.2.0_2 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? _No response_ ### Expected behaviour Everything being all right. ### Actual behaviour I have the following program: ```c++ #include int main() { std::string{std::string{}}; } ``` When I compile it with ``` g++ -ggdb main.cpp ``` , debug it with `gdb` and try to step in the fourth line, I get ``` std::__cxx11::basic_string, std::allocator >::basic_string (this=0x7fffffffe590) at ./build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.h:512 warning: 512 ./build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.h: No such file or directory ``` `gdb` is trying to look into `./build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.h`, but it should be looking in `/usr/include/c++/13.2/bits/basic_string.h`. This looks like `./build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/basic_string.h` was the path in the build step of `libstdc++` (which is a subpackage of `gcc`) in the masterdir. This path doesn't match the path in a real installed system, which rightfully confuses gdb. I have `libstdc++-13.2.0_2` `libstdc++-devel-13.2.0_2` and `libstdc++-dbg-13.2.0_2` installed, so I shouldn't be lacking debugging symbols. ### Steps to reproduce I have first created this recording with slightly different code and it was intended for `#voidlinux`, but it is still relevant and useful: https://asciinema.org/a/646146