Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869434 - dev-lisp/sbcl-2.2.10 - grovel-headers.c: error: O_LARGEFILE undeclared (first use in this function)
Summary: dev-lisp/sbcl-2.2.10 - grovel-headers.c: error: O_LARGEFILE undeclared (first...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
: 879003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-10 07:46 UTC by Toralf Förster
Modified: 2022-11-13 11:49 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.19 KB, text/plain)
2022-09-10 07:46 UTC, Toralf Förster
Details
dev-lisp:sbcl-2.2.8:20220910-064559.log (dev-lisp:sbcl-2.2.8:20220910-064559.log,93.80 KB, text/plain)
2022-09-10 07:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,70.23 KB, text/plain)
2022-09-10 07:46 UTC, Toralf Förster
Details
environment (environment,83.29 KB, text/plain)
2022-09-10 07:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.04 KB, application/x-bzip)
2022-09-10 07:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.53 KB, application/x-bzip)
2022-09-10 07:46 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-10 07:46:24 UTC
+ 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"
Comment 1 Toralf Förster gentoo-dev 2022-09-10 07:46:25 UTC
Created attachment 804394 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-10 07:46:26 UTC
Created attachment 804397 [details]
dev-lisp:sbcl-2.2.8:20220910-064559.log
Comment 3 Toralf Förster gentoo-dev 2022-09-10 07:46:27 UTC
Created attachment 804400 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-10 07:46:29 UTC
Created attachment 804403 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-10 07:46:30 UTC
Created attachment 804406 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-10 07:46:31 UTC
Created attachment 804409 [details]
temp.tar.bz2
Comment 7 Agostino Sarubbo gentoo-dev 2022-11-03 11:34:31 UTC
*** Bug 879003 has been marked as a duplicate of this bug. ***
Comment 8 Agostino Sarubbo gentoo-dev 2022-11-03 11:43:53 UTC
lto_tinderbox has reproduced this issue with version 2.2.10 - Updating summary.
Comment 9 Viktor Kuzmin 2022-11-06 09:11:46 UTC
Adding following line to ebuild fixes the problem:

CFLAGS="${CFLAGS} -D_GNU_SOURCE"
Comment 10 oomaschloom 2022-11-13 00:20:37 UTC
(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
Comment 11 Larry the Git Cow gentoo-dev 2022-11-13 11:49:38 UTC
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(+)