Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822093 - sys-libs/compiler-rt-sanitizers-13.0.0: sanitizer_platform_limits_posix.cpp:155:10: fatal error: 'crypt.h' file not found
Summary: sys-libs/compiler-rt-sanitizers-13.0.0: sanitizer_platform_limits_posix.cpp:1...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: LLVM support project
Depends on:
Blocks: 798963
  Show dependency tree
Reported: 2021-11-06 11:21 UTC by Acatorn
Modified: 2021-11-06 21:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Build.log (build.log,68.83 KB, text/plain)
2021-11-06 11:21 UTC, Acatorn
output of emerge --info (emerge-info,5.16 KB, text/plain)
2021-11-06 11:22 UTC, Acatorn

Note You need to log in before you can comment on or make changes to this bug.
Description Acatorn 2021-11-06 11:21:56 UTC
Created attachment 749049 [details]

During my weekly system update I received:

ERROR: sys-libs/compiler-rt-sanitizers-13.0.0::gentoo failed (compile phase):
 *   ninja -v -j8 -l0 failed
 * Call stack:
 *, line  127:  Called src_compile
 *   environment, line 3452:  Called cmake_src_compile
 *   environment, line 1457:  Called cmake_build
 *   environment, line 1426:  Called eninja
 *   environment, line 1933:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"

Here's the output of emerge -pqv '=sys-libs/compiler-rt-sanitizers-13.0.0::gentoo:
[ebuild  NS   ] sys-libs/compiler-rt-sanitizers-13.0.0 [12.0.1] USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc%* profile safestack scudo tsan ubsan xray -debug% (-shadowcallstack) -test"

build.log in attachment

Best Regards,
Comment 1 Acatorn 2021-11-06 11:22:58 UTC
Created attachment 749052 [details]
output of emerge --info
Comment 2 Klaus Kusche 2021-11-06 13:36:12 UTC
What libc are you using?

If you use a recent version of glibc in the recommended way,
this seems to indicate that sys-libs/libxcrypt is missing on your system?

(for other libc implementations I don't know)
Comment 3 Michael Baer 2021-11-06 13:42:46 UTC
Same here. 

I assume, it happend the same on your system: compiler-rt-sanitizers was compiled _before_ virtual/libcrypt-2 and/or sys-libs/libxcrypt (the last will provide crypt.h) and you're using glibc 2.33-r7 (at least higher or equal than 2.33-r3).

If you have sys-libs/libxcrypt installed, than you should have crypt.h (you can check with [ equery f libxcrypt | grep crypt.h ]).

It should than compile fine.

Suggestion to maintainer: compiler-rt-sanitizers should depend on virtual/libcrypt-2 or sys-libs/libxcrypt if newer glibc, not providing crypt.h (>=2.33-r3?) anymore, was found on the system.
Comment 4 Larry the Git Cow gentoo-dev 2021-11-06 20:49:51 UTC
The bug has been closed via the following commit(s):

commit 7abb5ba9c674430b26936cb0c5692661b5aafca8
Author:     Sam James <>
AuthorDate: 2021-11-06 20:49:24 +0000
Commit:     Sam James <>
CommitDate: 2021-11-06 20:49:43 +0000

    sys-libs/compiler-rt-sanitizers: needs crypt.h
    Needs crypt.h but only the header so DEPEND.
    Signed-off-by: Sam James <>

 .../compiler-rt-sanitizers/compiler-rt-sanitizers-10.0.1-r1.ebuild     | 3 ++-
 .../compiler-rt-sanitizers/compiler-rt-sanitizers-11.1.0-r1.ebuild     | 3 ++-
 sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.1.ebuild   | 3 ++-
 .../compiler-rt-sanitizers/compiler-rt-sanitizers-   | 3 ++-
 sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.ebuild   | 3 ++-
 .../compiler-rt-sanitizers/compiler-rt-sanitizers-   | 3 ++-
 6 files changed, 12 insertions(+), 6 deletions(-)