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 2164ded112..8beaa8986e 100644 > --- a/compiler/GHC/HsToCore/Foreign/C.hs > +++ b/compiler/GHC/HsToCore/Foreign/C.hs > @@ -560,7 +560,7 @@ mkFExportCBits dflags c_nm maybe_target arg_htys res_hty is_IO_res_ty cc > , ppUnless res_hty_is_unit $ > if libffi > then char '*' <> parens (ffi_cResType <> char '*') <> > - text "resp = cret;" > + text "resp = " <> parens ffi_cResType <> text "cret;" > else text "return cret;" > , rbrace > ] Thanks, I tested this and it works. I submitted it to GHC here: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12079 (Unfortunately to modify this you'll have to sign up to their gitlab instance, which is very timeconsuming.) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue