Re: Modern C failures in Haskell stack

2024-02-16 Thread David Abdurachmanov
On Fri, Feb 16, 2024 at 9:38 AM Jens-Ulrik Petersen wrote: > > Thanks Richard for the PR and Florian for the patch > > On Thu, Feb 15, 2024 at 11:28 PM Richard W.M. Jones wrote: >> >> On Thu, Feb 15, 2024 at 12:57:21PM +0100, Florian Weimer wrote: >> > For the first issue, please try this GHC

Re: Modern C failures in Haskell stack

2024-02-15 Thread Jens-Ulrik Petersen
Thanks Richard for the PR and Florian for the patch On Thu, Feb 15, 2024 at 11:28 PM Richard W.M. Jones wrote: > On Thu, Feb 15, 2024 at 12:57:21PM +0100, Florian Weimer wrote: > > For the first issue, please try this GHC patch > > I submitted it to GHC here: >

Re: Modern C failures in Haskell stack

2024-02-15 Thread Jens-Ulrik Petersen
Thank you for looking into this, much appreciated, since I hadn't found proper time yet. It might be helpful to have a downstream ghc bug to track this too. Jens -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to

Re: Modern C failures in Haskell stack

2024-02-15 Thread Richard W.M. Jones
On Thu, Feb 15, 2024 at 12:57:21PM +0100, Florian Weimer wrote: > For the first issue, please try this GHC patch (only compile-tested with > the stage 0 compiler build this point): > > diff --git a/compiler/GHC/HsToCore/Foreign/C.hs > b/compiler/GHC/HsToCore/Foreign/C.hs > index

Re: Modern C failures in Haskell stack

2024-02-15 Thread Richard W.M. Jones
I did a more thorough review of all the failed ghc-* packages by submitting scratch builds for every one of them (starting from this list: https://kojipkgs.fedoraproject.org/mass-rebuild/f40-failures.html). It turns out that there is only one "class" of modern C failure, of this form:

Re: Modern C failures in Haskell stack

2024-02-15 Thread Jakub Jelinek
On Thu, Feb 15, 2024 at 12:57:21PM +0100, Florian Weimer wrote: > For the first issue, please try this GHC patch (only compile-tested with > the stage 0 compiler build this point): > > diff --git a/compiler/GHC/HsToCore/Foreign/C.hs > b/compiler/GHC/HsToCore/Foreign/C.hs > index

Re: Modern C failures in Haskell stack

2024-02-15 Thread Florian Weimer
* Richard W. M. Jones: > We noticed that some ghc-* packages FTBFS with Modern C failures eg > these two picked at random: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=113534568 > https://koji.fedoraproject.org/koji/taskinfo?taskID=113534602 > > I think what's happening here is

Re: Modern C failures in Haskell stack

2024-02-15 Thread Richard W.M. Jones
On Thu, Feb 15, 2024 at 12:24:22PM +0100, Jakub Jelinek wrote: > On Thu, Feb 15, 2024 at 11:13:08AM +, Richard W.M. Jones wrote: > > We noticed that some ghc-* packages FTBFS with Modern C failures eg > > these two picked at random: > > > >

Re: Modern C failures in Haskell stack

2024-02-15 Thread Jakub Jelinek
On Thu, Feb 15, 2024 at 11:13:08AM +, Richard W.M. Jones wrote: > We noticed that some ghc-* packages FTBFS with Modern C failures eg > these two picked at random: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=113534568 >

Modern C failures in Haskell stack

2024-02-15 Thread Richard W.M. Jones
We noticed that some ghc-* packages FTBFS with Modern C failures eg these two picked at random: https://koji.fedoraproject.org/koji/taskinfo?taskID=113534568 https://koji.fedoraproject.org/koji/taskinfo?taskID=113534602 I think what's happening here is that ghc is generating C FFI code which