Bug#1089921: ghc: Cherry-pick upstream patch to fix "relocation R_LARCH_B26 overflow"

ywgrit wangxin03 at loongson.cn
Sat Feb 15 03:21:34 GMT 2025


On 2/13/25 4:17 AM, Gianfranco Costamagna wrote:
> Hello, unfortunately this patch
> [0004-llvmGen-Pass-mcmodel-medium-option-to-LLVM-backend-on-LoongArch.patch 
> (application/octet-stream, attachment)]
>
> Looks not coming from upstream and a mix of stuff that is merged, and 
> stuff that isn't.
We made a little change on the patch which comes from upstream, as follows.

- patch: 0004-llvmGen-Introduce-infrastructure-for-module-flag-metadata.patch
Cherry-pick from upstream with little change.
The corresponding upstream commit is: a6a3874276ced1b037365c059dcd0a758e813a5b
Role: required to add a moduleflag to the llvm IR.
NOTE: We made a little change on the upstream patch because we have to: without the change, a large number of patches would need to be backported to ghc-9.6.6 so that the upstream patch(a6a3874276ced1b037365c059dcd0a758e813a5b) could be backported to ghc-9.6.6, and one of these would break the public interface, i.e., the stack alignment ghc option would be removed. We don't want that happen, so we have to made the change on the upstream patch.

>
> Please update and refer to upstream commit or PR if unmerged.
>
> thanks,
>
> Gianfranco
>
> On Fri, 20 Dec 2024 16:16:10 +0800 ywgrit <wangxin03 at loongson.cn> wrote:
>> Test suite test-pandoc: RUNNING...
>> pandoc tests
>>   Command:
>>     md-abbrevs.md
>> #1: OK (0.02s)
>> #2: OK (0.02s)
>>     5368.md
>> #1: OK (0.04s)
>>     9021.md
>> #1: OK (0.11s)
>>     3518.md
>> #1: OK (0.03s)
>>     8402.md
>> #1: OK (0.03s)
>>     8070.md
>> #1: OK (0.01s)
>>     5627.md
>> #1: OK (0.03s)
>> #2: OK (0.06s)
>> #3: OK (0.02s)
>>     ascii.md
>> #1: OK (0.02s)
>> #2: OK (0.01s)
>> #3: OK (0.01s)
>> #4: OK (0.01s)
>> #5: OK (0.01s)
>> #6: OK (0.01s)
>> #7: OK (0.01s)
>> #8: OK (0.01s)
>> #9: OK (0.01s)
>> #10: OK (0.01s)
>> #11: OK (0.01s)
>> #12: OK (0.01s)
>>     7041.md
>> #1: OK (0.01s)
>>     3533-rst-csv-tables.md
>> #1: OK (0.03s)
>> #2: OK (0.03s)
>> #3: OK (0.01s)
>>     make-section-column-divs.md
>> #1: OK (0.01s)
>>     7761.md
>> #1: OK (0.80s)
>>     biblatex-aksin.md
>> #1: OK (0.08s)
>>     5410.md
>> #1: OK (0.01s)
>>     7394.md
>> #1: OK (0.81s)
>>     3736.md
>> #1: OK (0.01s)
>> #2: OK (0.02s)
>> #3: OK (0.01s)
>>     biblatex-book-averroes.md
>> #1: OK (0.09s)
>>     pandoc-citeproc-76.md
>> #1: OK (0.82s)
>>     5899.md
>> #1: OK (0.01s)
>>     yaml-with-chomp.md
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20250215/1b39931f/attachment-0001.htm>


More information about the Pkg-haskell-maintainers mailing list