FS#53204 - [sbcl] file-length reports wrong file sizes

Attached to Project: Arch Linux
Opened by d4ryus (d4ryus) - Tuesday, 07 March 2017, 21:06 GMT
Last edited by Jürgen Hötzel (juergen) - Sunday, 12 March 2017, 12:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

sbcl is compiled without :largefile, which makes file-length report wrong file sizes.

The error can be reproduced with
http://paste.lisp.org/display/340839
file-length returns 0, but should return 4294967296.

*features* returns the following list:
http://paste.lisp.org/display/340840

:largefile seemed to be dropped here:
https://git.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?hhttps://git.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?hhttps://git.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?h=packages/sbcl&id=34812a072dbc9253c21e1e2c4d1649b5a7f2b0a5=packages/sbcl&id=34812a072dbc9253c21e1e2c4d1649b5a7f2b0a5=packages/sbcl&id=34812a072dbc9253c21e1e2c4d1649b5a7f2b0a5

Additional info:

package version: sbcl 1.3.12-1

uname -m: x86_64

pacman -Qi sbcl:
Name : sbcl
Version : 1.3.12-1
Description : Steel Bank Common Lisp
Architecture : x86_64
URL : http://www.sbcl.org/
Licenses : custom
Groups : None
Provides : common-lisp cl-asdf
Depends On : zlib
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 65.67 MiB
Packager : Juergen Hoetzel <juergen@archlinux.org>
Build Date : Wed 28 Dec 2016 06:24:24 PM CET
Install Date : Thu 29 Dec 2016 12:02:16 AM CET
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Steps to reproduce:

http://paste.lisp.org/display/340839
This shell script creates a file with size 2^32 and then uses sbcl and file-length to determine the file size, which prints 0.

Iam myself new to lisp and when i found out that file-length returns wrong sizes I asked about it on #lisp, they then basically tracked the error down to the missing :largefile feature on the packaged sbcl and told me that i should file a bug here.
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Sunday, 12 March 2017, 12:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  In sbcl-1.3.15-1-x86_64
Comment by Jürgen Hötzel (juergen) - Friday, 10 March 2017, 20:13 GMT
The reason for disabled LFS support was

r51641 | juergen | 2009-09-10 13:36:13 +0200 (Do, 10. Sep 2009) | 1 Zeile
disable largefile support (fails to build on i686)

I will check out, if this is still the case.

Loading...