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

Bug 919256

Summary: sys-libs/readline-8.2_p7[utils] - [clang] configure: error: Cant run the compiler - sorry
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: gabifalk
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=870424
https://github.com/gentoo/gentoo/pull/36621
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt
sys-libs:readline-8.2_p7:20231205-084603.log

Description Toralf Förster gentoo-dev 2023-12-05 08:59:51 UTC
      |        ^~~~
conftest.c:9:8: note: include '<stdlib.h>' or provide a declaration of 'exit'
cc1: some warnings being treated as errors
CC=cc; CFLAGS=-O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int; LIBS=;
$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5
configure:3285: error: Can't run the compiler - sorry
configure: error: Can't run the compiler - sorry

## ---------------- ##

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_clang-20231205-030530

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.6
php cli (if any):

  HEAD of ::gentoo
commit 49628839f71340fcb2d1734960bafc357739a905
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 5 02:32:01 2023 +0000

    2023-12-05 02:32:00 UTC

emerge -qpvO sys-libs/readline
[ebuild     U ] sys-libs/readline-8.2_p7 [8.1_p2-r1] USE="(split-usr) (unicode) utils* -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 08:59:52 UTC
Created attachment 877311 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 08:59:52 UTC
Created attachment 877312 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-05 08:59:54 UTC
Created attachment 877313 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-05 08:59:54 UTC
Created attachment 877314 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-05 08:59:55 UTC
Created attachment 877315 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 08:59:56 UTC
Created attachment 877316 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 08:59:57 UTC
Created attachment 877317 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-12-05 08:59:58 UTC
Created attachment 877318 [details]
sys-libs:readline-8.2_p7:20231205-084603.log
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-06 12:35:22 UTC
I don't get why I haven't hit this...
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-06 12:37:35 UTC
oh, it needs USE=utils
Comment 11 Larry the Git Cow gentoo-dev 2024-05-11 00:30:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f2879693f68d2a9a489d923ffd6e4ff96ec714b

commit 5f2879693f68d2a9a489d923ffd6e4ff96ec714b
Author:     Gabi Falk <gabifalk@gmx.com>
AuthorDate: 2024-05-09 23:15:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-11 00:26:39 +0000

    sys-libs/readline: USE=utils: port to modern C (C99)
    
    GCC 14 enables -Werror=implicit-function-declaration and
    -Werror=implicit-int by default.
    
    Closes: https://bugs.gentoo.org/870424
    Closes: https://bugs.gentoo.org/919256
    Link: https://lists.gnu.org/archive/html/bug-readline/2024-05/msg00000.html
    Signed-off-by: Gabi Falk <gabifalk@gmx.com>
    Closes: https://github.com/gentoo/gentoo/pull/36621
    Signed-off-by: Sam James <sam@gentoo.org>

 .../readline/files/readline-8.1-rlfe-c99.patch     | 1201 ++++++++++++++++++++
 sys-libs/readline/readline-8.1_p2-r1.ebuild        |    2 +-
 sys-libs/readline/readline-8.1_p2-r2.ebuild        |    2 +-
 sys-libs/readline/readline-8.2_p10.ebuild          |    2 +-
 sys-libs/readline/readline-8.3_alpha.ebuild        |    1 +
 sys-libs/readline/readline-9999.ebuild             |    1 +
 6 files changed, 1206 insertions(+), 3 deletions(-)