Bug#1069520: sbcl: FTBFS on armhf: make[1]: *** [debian/rules:53: override_dh_auto_build] Error 1

2024-04-27 Thread Sean Whitton
Hello,

Thanks Peter.  Looks like upstream might be able to commit a fix.

-- 
Sean Whitton


signature.asc
Description: PGP signature


Bug#1069520: sbcl: FTBFS on armhf: make[1]: *** [debian/rules:53: override_dh_auto_build] Error 1

2024-04-24 Thread Peter Van Eynde
Hi,

Tested this and it’s due to the 64t transition. The grovelled data changed:

(sid_armhf-dchroot)pvaneynd@abel:~/sbcl-2.3.7$ diff -u 
./crossbuild-runner/backends/arm/stuff-groveled-from-headers.lisp 
output/stuff-groveled-from-headers.lisp
--- ./crossbuild-runner/backends/arm/stuff-groveled-from-headers.lisp   
2023-07-29 07:59:39.0 +
+++ output/stuff-groveled-from-headers.lisp 2023-07-29 07:59:39.0 
+
@@ -30,7 +30,7 @@
 (define-alien-type off-t (signed 64))
 (define-alien-type size-t (unsigned 32))
 (define-alien-type ssize-t (signed 32))
-(define-alien-type time-t (signed 32))
+(define-alien-type time-t (signed 64))
 (define-alien-type suseconds-t (signed 32))
 (define-alien-type uid-t (unsigned 32))
 ;; Types in src/runtime/wrap.h. See that file for explantion.
@@ -141,6 +141,7 @@
 (defconstant clock-process-cputime-id 2) ; #x2
 (defconstant clock-realtime-alarm 8) ; #x8
 (defconstant clock-realtime-coarse 5) ; #x5
+(defconstant clock-tai 11) ; #xb
 (defconstant clock-monotonic-coarse 6) ; #x6
 (defconstant clock-monotonic-raw 4) ; #x4
 (defconstant clock-boottime 7) ; #x7
@@ -149,11 +150,11 @@
 ;;; structures
 (define-alien-type nil
   (struct timeval
-  (tv-sec (signed 32))
-  (tv-usec (signed 32
+  (tv-sec (signed 64))
+  (tv-usec (signed 64
 (define-alien-type nil
   (struct timespec
-  (tv-sec (signed 32))
+  (tv-sec (signed 64))
   (tv-nsec (signed 32

I honestly don’t understand how to use 64-bit values on this arch, so I created 
https://bugs.launchpad.net/sbcl/+bug/2063340


Best regards, Peter

Bug#1069520: sbcl: FTBFS on armhf: make[1]: *** [debian/rules:53: override_dh_auto_build] Error 1

2024-04-23 Thread Peter Van Eynde
This looks a lot like a problem between the 
`OBSERVED-INTERNAL-REAL-TIME-DELTA-SEC` which is a word and the new 64-bit 
counters.

❯ git grep observed-internal-real-time-delta-sec
src/code/thread-structs.lisp:  #-64-bit (observed-internal-real-time-delta-sec 
0 :type sb-vm:word)
src/code/unix.lisp:   
(sb-thread::thread-observed-internal-real-time-delta-sec thr))

While the current sources still have:

❯ grep -A 2 -B 2 '(tv-sec' 
crossbuild-runner/backends/arm/stuff-groveled-from-headers.lisp
(define-alien-type nil
  (struct timeval
  (tv-sec (signed 32))
  (tv-usec (signed 32
(define-alien-type nil
  (struct timespec
  (tv-sec (signed 32))
  (tv-nsec (signed 32

I’m guessing that this is no longer the case on armhf anymore. I’m trying to 
test this on the porter box abel.debian.org.

Best regards, Peter

Bug#1069520: sbcl: FTBFS on armhf: make[1]: *** [debian/rules:53: override_dh_auto_build] Error 1

2024-04-20 Thread Lucas Nussbaum
Source: sbcl
Version: 2:2.3.7-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf

Hi,

During a rebuild of all packages in sid, your package failed to build
on armhf.


Relevant part (hopefully):
> make[2]: Entering directory '/<>/tools-for-build'
> cc -I../src/runtime -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -marm 
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time 
> -D_FORTIFY_SOURCE=2 -Wl,-z,relro  grovel-headers.c  -ldl -Wl,-no-as-needed 
> -lzstd -o grovel-headers
> make[2]: Leaving directory '/<>/tools-for-build'
> 13.75user 0.96system 0:14.73elapsed 99%CPU (0avgtext+0avgdata 
> 54616maxresident)k
> 0inputs+48376outputs (0major+228023minor)pagefaults 0swaps
> make-host-2.sh: 2: set: can't access tty; job control turned off
> //entering make-host-2.sh
> //running cross-compiler to create target object files
> This is SBCL 2.3.7.debian, an implementation of ANSI Common Lisp.
> More information about SBCL is available at .
> 
> 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.
> * T
> * ; Installed READ interceptor
> ; Float-ops cache prefill: 4315 entries
> ;; loading #P"/<>/tests/type.before-xc.lisp"
> ;; loading #P"/<>/tests/info.before-xc.lisp"
> ;; loading #P"/<>/tests/vm.before-xc.lisp"
> ctype cache metrics:  Count LF SeekHit maxPSL  Mask
>   FUN :1137  55.5% 57FF
>   List: 737  72.0% 83FF
>   Set : 198  38.7% 51FF
>   UNION   : 177  69.1% 7 FF
>   VALUES  : 175  68.4% 5 FF
>   ARRAY   : 136  53.1% 4 FF
>   NUMERIC : 123  48.0% 3 FF
>   Key-Info:  85  66.4% 4 7F
>   CONSTANT:  53  41.4% 5 7F
>   Key-Info-Set:  38  59.4% 3 3F
>   INTERSECTION:  31  48.4% 2 3F
>   UNKNOWN :  26  40.6% 3 3F
>   MEMBER  :  21  32.8% 2 3F
>   HAIRY   :  13  20.3% 2 3F
>   NEGATION:  12  18.8% 3 3F
>   EQL :   6 NIL  %
>   CHARACTER-SET   :   4   6.3% 1 3F
>   CONS:   2   3.1% 1 3F
>   ALIEN-TYPE  :   1   1.6% 1 3F
>   MEMBER/EQ   :   0   0.0% 0 3F
>   FUN-DESIGNATOR  :   0   0.0% 0 3F
>   Total   :2975
> Alien:
>   POINTER :   1   1.6% 1 3F
>   INTEGER :   0   0.0% 0 3F
>   BOOLEAN :   0   0.0% 0 3F
>   C-STRING:   0   0.0% 0 3F
>   ARRAY   :   0   0.0% 0 3F
>   FUN :   0   0.0% 0 3F
>   VALUES  :   0   0.0% 0 3F
>   ENUM:   0   0.0% 0 3F
>   UNION   :   0   0.0% 0 3F
>   STRUCT  :   0   0.0% 0 3F
>   Total   :   1
> [  1/301] src/code/show(0.028 sec)
> [  2/301] src/compiler/early-constantp (0.016 sec)
> [  3/301] src/compiler/vop-existsp (0.032 sec)
> [  4/301] src/code/defsetfs(0.268 sec)
> [  5/301] src/code/cl-specials (0.028 sec)
> [  6/301] src/code/primordial-extensions   (0.228 sec)
> [  7/301] src/code/cold-init-helper-macros (0.044 sec)
> [  8/301] src/code/backq   (0.16 sec)
> [  9/301] src/code/globals (0.024 sec)
> [ 10/301] src/code/cmacros (0.052 sec)
> [ 11/301] src/code/uncross (0.004 sec)
> [ 12/301] src/code/defbangtype (0.012 sec)
> [ 13/301] src/code/early-constants (0.008 sec)
> [ 14/301] src/code/function-names  (0.028 sec)
> [ 15/301] src/compiler/early-globaldb  (0.184 sec)
> [ 16/301] src/compiler/generic/parms   (0.068 sec)
> [ 17/301] src/compiler/arm/parms   (0.024 sec)
> [ 18/301]