+ make -C tools-for-build -I../src/runtime grovel-headers make: Entering directory '/var/tmp/portage/dev-lisp/sbcl-2.2.8/work/sbcl-2.2.8/tools-for-build' x86_64-pc-linux-gnu-gcc -I../src/runtime -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 grovel-headers.c -o grovel-headers grovel-headers.c: In function 'main': grovel-headers.c:228:32: error: 'O_LARGEFILE' undeclared (first use in this function) 228 | defconstant("o_largefile", O_LARGEFILE); | ^~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-j4-20220909-190004 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.1 * clang/llvm (if any): /usr/lib/llvm/15 15.0.0 Python 3.10.7 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.62.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17] 2) Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3.90 HEAD of ::gentoo commit 0ebfc5ca824fc306f8c879484007cc171613f907 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Sep 10 05:42:30 2022 +0000 2022-09-10 05:42:29 UTC emerge -qpvO dev-lisp/sbcl [ebuild N ] dev-lisp/sbcl-2.2.8 USE="threads unicode zstd -capstone -debug -doc -source"
Created attachment 804394 [details] emerge-info.txt
Created attachment 804397 [details] dev-lisp:sbcl-2.2.8:20220910-064559.log
Created attachment 804400 [details] emerge-history.txt
Created attachment 804403 [details] environment
Created attachment 804406 [details] etc.portage.tar.bz2
Created attachment 804409 [details] temp.tar.bz2
*** Bug 879003 has been marked as a duplicate of this bug. ***
lto_tinderbox has reproduced this issue with version 2.2.10 - Updating summary.
Adding following line to ebuild fixes the problem: CFLAGS="${CFLAGS} -D_GNU_SOURCE"
(In reply to Viktor Kuzmin from comment #9) > Adding following line to ebuild fixes the problem: > > CFLAGS="${CFLAGS} -D_GNU_SOURCE" I added that to my ebuild and it compiled after failing on this bug
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d70dea44f3adc722aa1a5f776dd0144a6fb544 commit 51d70dea44f3adc722aa1a5f776dd0144a6fb544 Author: Matthew Smith <matthew@gentoo.org> AuthorDate: 2022-11-13 11:45:40 +0000 Commit: Matthew Smith <matthew@gentoo.org> CommitDate: 2022-11-13 11:45:40 +0000 dev-lisp/sbcl: append -D_GNU_SOURCE Fixes build issue due to O_LARGEFILE hiding behind feature test macro. Closes: https://bugs.gentoo.org/869434 Signed-off-by: Matthew Smith <matthew@gentoo.org> dev-lisp/sbcl/sbcl-2.2.0.ebuild | 3 +++ dev-lisp/sbcl/sbcl-2.2.10.ebuild | 3 +++ dev-lisp/sbcl/sbcl-2.2.9.ebuild | 3 +++ 3 files changed, 9 insertions(+)