large file support broken in sbcl-1.0.30 on x86-64/linux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
I've just built a fresh SBCL 1.0.30 from source and here's what I'm
getting on a file that's 6GB in size:
nathell@
Linux chamsin 2.6.31-10-generic #35-Ubuntu SMP Tue Sep 22 17:33:14 UTC 2009 x86_64 GNU/Linux
nathell@
(running SBCL from: .)
This is SBCL 1.0.30, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (defparameter a (open "/my/large/file"))
A
* (file-length a)
1787358656
* *features*
(:ANSI-CL :COMMON-LISP :SBCL :SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS
:SB-UNICODE :SB-EVAL :SB-SOURCE-
:ELF :LINUX :GENCGC :STACK-
:LINKAGE-TABLE :COMPARE-
:RAW-INSTANCE-
:STACK-
:CYCLE-COUNTER :COMPLEX-FLOAT-VOPS :FLOAT-EQL-VOPS :INLINE-CONSTANTS
:OS-PROVIDES-
* (quit)
nathell@
-rw-r--r-- 1 nathell nathell 6082325952 2009-07-11 09:33 /my/large/file
I've also tried to explicitly enable :largefile in
base-target-
following message:
make: Entering directory
`/home/
cc -fno-omit-
grovel-headers
grovel-headers.c: In function 'main':
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
argument 3 has type 'long unsigned int'
grovel-
function)
grovel-
only once
grovel-
make: *** [grovel-headers] Error 1
make: Leaving directory
`/home/
I'm on the 64-bit edition of Ubuntu Karmic. I'll be grateful for any
hints.
Best regards,
Daniel Janus
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
Hi,
status confirmed
done
Can you try editing src/runtime/ Config. x86_64- linux so that it includes x86-linux? Then alter the "linux)" branch of the case features, and recompile.
the feature test macros related to largefile, similar to
.../Config.
statement dispatching on "$sbcl_os" in make-config.sh to add x86_64 to
the list adding :largefile to late-target-
Best,
Christophe
PS: this message also serves as a test to see whether I have done all
the relevant voodoo to get me working with launchpad.