Created attachment 892432 [details] emerge --info When building cross-aarch64-linux-gnu/gcc-13.2.1_p20240503:13/13::crossdev the build fails due to a missing crypt dependency: /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.2.1_p20240503/work/gcc-13-20240503/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:180:10: fatal error: crypt.h: No such file or directory 180 | #include <crypt.h> | ^~~~~~~~~ compilation terminated. I think this is because I have the sanitizer enabled.
Created attachment 892433 [details] Build log
I hit this recently too, but it worked after removing the target entirely and recreating it. I couldn't be sure, but my suspicion was that the sanitize USE flag was enabled when it shouldn't have been due to the target having been created a long time ago. I can see from your log that it is enabled for you, so I suggest you try the same thing. I don't think there's a good solution to automatically fix this for others.