On Sun, Apr 07, 2024 at 05:18:06PM +0300, Ilias Tsitsimpis wrote:
> Package: ghc
> Version: 9.4.7-3
> Severity: grave
> Justification: renders package unusable
> 
> I recently uploaded a new version of GHC to unstable, in order to fix
> #1068179. As a result, GHC got rebuilt taking into account the new size
> for time_t on arm{el,hf}. This is evident from the build logs, where
> we now see:
> 
>   
> https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=armel&ver=9.4.7-4&stamp=1712410679&raw=0
> 
>   checking Haskell type for time_t... Int64
> 
> whereas previously we had:
> 
>   
> https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=armel&ver=9.4.7-3&stamp=1708366014&raw=0
> 
>   checking Haskell type for time_t... Int32
> 
> 
> After this change, a number of Haskell packages have started to FTBFS:
> 
> * 
> https://buildd.debian.org/status/fetch.php?pkg=haskell-filestore&arch=armel&ver=0.6.5-3%2Bb2&stamp=1712457355&raw=0
> * 
> https://buildd.debian.org/status/fetch.php?pkg=haskell-fold-debounce&arch=armel&ver=0.2.0.11-1%2Bb2&stamp=1712466208&raw=0
> * 
> https://buildd.debian.org/status/fetch.php?pkg=haskell-hourglass&arch=armel&ver=0.2.12-5%2Bb2&stamp=1712462130&raw=0

FTR, in haskell-hourglass this is #1001686 which already failed on x32 
for this reason.

> Looking into this, I see that (at least) the getPOSIXTime method is
> broken on arm{el,hf}.
>...

https://buildd.debian.org/status/fetch.php?pkg=haskell-lambdahack&arch=armhf&ver=0.11.0.0-4%2Bb1&stamp=1712562043&raw=0
https://buildd.debian.org/status/fetch.php?pkg=haskell-hledger-lib&arch=armhf&ver=1.30-1%2Bb1&stamp=1712566894&raw=0

          Exception: user error (localtime_r failed)

My reading of the code is that this happens when 
libraries/time/lib/cbits/HsTime.c returns 0x80000000 due to 
localtime_r() called in this function returning an error.

The "localtime_r failed" is from
libraries/time/lib/Data/Time/LocalTime/Internal/TimeZone.hs

> Ilias

cu
Adrian

Reply via email to