Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732268 - sys-libs/glibc-2.31-r5: fails to compile: *** These critical programs are missing or too old: compiler (CC=x86_64-pc-linux-gnu-clang)
Summary: sys-libs/glibc-2.31-r5: fails to compile: *** These critical programs are mis...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-11 19:34 UTC by Agostino Sarubbo
Modified: 2020-10-30 19:21 UTC (History)
0 users

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


Attachments
build.log (build.log,20.18 KB, text/plain)
2020-07-11 19:34 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-11 19:34:21 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/glibc fails to compile.
Discovered on: amd64  (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-11 19:34:29 UTC
Created attachment 648950 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-11 19:40:35 UTC
The error is:
"""
configure: error: 
*** These critical programs are missing or too old: compiler
"""

Which comes from:

"""
AC_CACHE_CHECK([if $CC is sufficient to build libc], libc_cv_compiler_ok, [
AC_TRY_COMPILE([], [
#if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
#error insufficient compiler
#endif],
               [libc_cv_compiler_ok=yes],
               [libc_cv_compiler_ok=no])])
AS_IF([test $libc_cv_compiler_ok != yes],
      [critic_missing="$critic_missing compiler"])
"""

glibc does not support clang as a main compiler.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2020-10-30 19:21:58 UTC
> 
> glibc does not support clang as a main compiler.

Exactly.