Created attachment 903108 [details] emerge --info A portage-installed ccache will have the source references in the debug information set for the build directly rather than the /usr/src/debug directory: === #9 0x00005555555b2f4a in finalize_at_exit (ctx=...) at /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2384 #10 operator() (__closure=<optimized out>) at /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2438 #11 std::__invoke_impl<void, cache_compilation(int, char const* const*)::<lambda()>&> (__f=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/invoke.h:61 #12 std::__invoke_r<void, cache_compilation(int, char const* const*)::<lambda()>&> (__fn=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/invoke.h:111 #13 std::_Function_handler<void(), cache_compilation(int, char const* const*)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/std_function.h:290 #14 0x00005555555c2baa in std::function<void()>::operator() (this=0x7fffffffb640) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/std_function.h:591 #15 util::Finalizer::~Finalizer (this=0x7fffffffb640, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/util/Finalizer.hpp:42 #16 cache_compilation (argc=argc@entry=28, argv=argv@entry=0x7fffffffdaa8) at /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2484 #17 0x00005555555c4326 in ccache_main (argc=28, argv=0x7fffffffdaa8) at /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2804 #18 0x00007ffff7b842e0 in __libc_start_call_main (main=main@entry=0x5555555929d0 <main(int, char* const*)>, argc=argc@entry=28, argv=argv@entry=0x7fffffffdaa8) at ../sysdeps/nptl/libc_start_call_main.h:58 #19 0x00007ffff7b84399 in __libc_start_main_impl (main=0x5555555929d0 <main(int, char* const*)>, argc=28, argv=0x7fffffffdaa8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffda98) at ../csu/libc-start.c:360 #20 0x00005555555b0235 in _start () === Note that the frame source files read: /var/tmp/portage/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2804 when it probably should read /usr/src/debug/dev-util/ccache-4.10.1/work/ccache-4.10.1/src/ccache/ccache.cpp:2804 Indeed, the directory exists but it's empty: === # ls -lsa /usr/src/debug/dev-util/ccache-4.10.1/ total 0 0 drwxr-xr-x 1 root root 16 16 Sep 11:36 . 0 drwxr-xr-x 1 root root 240 16 Sep 11:38 .. 0 -rw-r--r-- 1 root root 0 16 Sep 13:51 .keepdir ===
Interesting - I tried tweaking my make.conf options and replacing "-fuse-ld=gold" with "-fuse-ld=lld" makes the sources be installed properly.