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

Bug 883395

Summary: dev-lang/R-4.2.2 - type int (int); ISO C99 and later do not support implicit function
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: RESOLVED FIXED    
Severity: normal CC: mjo, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.r-project.org/show_bug.cgi?id=18445
See Also: https://bugs.r-project.org/show_bug.cgi?id=18446
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-lang:R-4.2.2:20221128-011305.log
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
var.tmp.clang.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-28 08:28:54 UTC
clang -I. -I../../src/include -I../../src/include   -DHAVE_CONFIG_H   -fopenmp -fpic  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -c Rembedded.c -o Rembedded.o
clang -I. -I../../src/include -I../../src/include   -DHAVE_CONFIG_H   -fopenmp -fpic  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -c X11.c -o X11.o
clang -I. -I../../src/include -I../../src/include   -DHAVE_CONFIG_H   -fopenmp -fpic  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -c sys-std.c -o sys-std.o
sys-std.c:1350:27: error: call to undeclared library function 'isspace' with
      type 'int (int)'; ISO C99 and later do not support implicit function
      declarations [-Werror,-Wimplicit-function-declaration]
    while (bufp >= buf && isspace((int)*bufp))

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20221127-030005

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.5
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit 14a97dcb274a2003bc3c1b057948f1796497e0c2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Nov 27 23:31:52 2022 +0000

    2022-11-27 23:31:52 UTC

emerge -qpvO dev-lang/R
[ebuild  N    ] dev-lang/R-4.2.2  USE="X cairo icu jpeg nls openmp png tiff -doc -java -lapack -lto -minimal -perl (-prefix) -profile -readline -test -tk"
Comment 1 Toralf Förster gentoo-dev 2022-11-28 08:28:55 UTC
Created attachment 837899 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-28 08:28:56 UTC
Created attachment 837901 [details]
dev-lang:R-4.2.2:20221128-011305.log
Comment 3 Toralf Förster gentoo-dev 2022-11-28 08:28:58 UTC
Created attachment 837903 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-28 08:28:59 UTC
Created attachment 837905 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-28 08:29:00 UTC
Created attachment 837907 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-28 08:29:01 UTC
Created attachment 837909 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-28 08:29:02 UTC
Created attachment 837911 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-28 08:29:04 UTC
Created attachment 837913 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-28 08:29:05 UTC
Created attachment 837915 [details]
var.tmp.clang.tar.bz2
Comment 10 Larry the Git Cow gentoo-dev 2022-12-23 14:28:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3371015e23a4c2fc0f6a8d566b80942c7bb15ed2

commit 3371015e23a4c2fc0f6a8d566b80942c7bb15ed2
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2022-12-23 06:12:37 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2022-12-23 14:23:36 +0000

    dev-lang/R: add upstream patch to fix USE="-readline" build.
    
    Closes: https://bugs.gentoo.org/883395
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 dev-lang/R/R-4.2.2.ebuild                          |  1 +
 .../R/files/R-4.2.2-isspace-without-readline.patch | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 08:15:36 UTC
This reminded me to submit my little fixes to R.m4 as well (wrote it up a while ago but was waiting for a bz account to be approved): https://bugs.r-project.org/show_bug.cgi?id=18446.