Bug#1085966: ghc: ftbfs: help: Use extra --ghc-options does not reduce binary size (based on ghc 9.6.6-2)
fanpeng
fanpeng at loongson.cn
Mon Nov 4 08:54:21 GMT 2024
On Thu, 24 Oct 2024 10:12:03 +0300 Ilias Tsitsimpis wrote:
Add replaceJump for a larger jump range.
On the Loong64 platform, there may be situations that are out of the
R_LARCH_B26 jump range. The previous commit added an additional
--ghc-options parameter, but the issue persists. The reason for this is
the lack of code for jump substitution, so we should add this part of
the code to make sure that the --ghc-options parameter works.
Please refer to the attachment for specific changes.
> Hi Dandan,
>
> On Thu, Oct 24, 2024 at 11:16AM, zhangdandan wrote:
> > Please give us some suggestions.
> > Let's discuss and solve the problem together under this bug.
> > Your opinions are welcome.
>
> Unfortunately I am not an expert on this and I don't really know why it
> fails. It looks like GHC is broken/incomplete on LoongArch64, so I would
> suggest you report this upstream[1]. I will happily backport any fix but
> we have to first discuss it with them.
>
> [1] https://gitlab.haskell.org/ghc/ghc/-/issues
>
> As a workaround, maybe we can try to build an unregisterised compiler on
> LoongArch64 and use that instead, until this bug is fixed. Can you try
> and see if an unregisterised GHC works and build pandoc successfully?
>
> Best,
>
> --
> Ilias
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20241104/781d5f2e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoongArch-add-rewrite-jump.diff
Type: text/x-patch
Size: 1959 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20241104/781d5f2e/attachment.bin>
More information about the Pkg-haskell-maintainers
mailing list