Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 931494

Summary: cross-aarch64 missing dependency on crypt
Product: Gentoo Linux Reporter: Pedro Ferreira <arkangath>
Component: EclassesAssignee: Cross compilation support <cross>
Status: RESOLVED CANTFIX    
Severity: normal CC: arkangath
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Build log

Description Pedro Ferreira 2024-05-07 13:23:42 UTC
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.
Comment 1 Pedro Ferreira 2024-05-07 13:25:55 UTC
Created attachment 892433 [details]
Build log
Comment 2 James Le Cuirot gentoo-dev 2024-05-07 22:49:38 UTC
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.