ghc.git
20 months agofix-cross-compilation
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
fix-cross-compilation

commit bd92182cd56140ffb2f68ec01492e5aa6333a8fc
Author: Ben Gamari <bgamari.foss@gmail.com>
Date:   Tue Jun 21 14:05:59 2022 +0000

    configure: Use AC_PATH_TOOL to detect tools

    Previously we used AC_PATH_PROG which, as noted by #21601, does not
    look for tools with a target prefix,
    breaking cross-compilation.

    Fixes #21601.

Gbp-Pq: Name fix-cross-compilation

20 months agoAllow setting path for LLC/OPT during configuration
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Allow setting path for LLC/OPT during configuration

Patch configure.ac to allow us to modify the path for LLC/OPT during
configuration.

Gbp-Pq: Name allow-setting-llvm-program

20 months agoFix installation patch for iserv/unlit
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Fix installation patch for iserv/unlit

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22557
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22697

Gbp-Pq: Name hadrian-iserv

20 months agoUse realpath instead of custom script
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Use realpath instead of custom script

Use realpath instead of the custom script, which is broken. As an example,

  $ ./mk/relpath.sh /usr/lib/ghc/lib /usr/lib/ghc-doc
  ..-doc
  $ realpath --relative-to=/usr/lib/ghc/lib /usr/lib/ghc-doc
  ../../ghc-doc

Gbp-Pq: Name hadrian-relpath

20 months agoPass 'mathjax' to Haddock
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Pass 'mathjax' to Haddock

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/23625

Hadrian currently doesn't allow us to modify Haddock options, so
patch Hadrian to manually pass the 'mathjax' option.

Gbp-Pq: Name hadrian-haddock-opts

20 months agoAdd more hadrian bootstrap plans
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Add more hadrian bootstrap plans

Hadrian only contains bootstrap plans for previous GHC versions. Add plans for
the current version as well, since we may want to bootstrap hadrian with a
cross-compiled GHC that is of the same version as the GHC we are building here.

Gbp-Pq: Name hadrian-plans

20 months agonewer-llvm
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
newer-llvm

commit 0cc16aaf89d7dc3963764b7193ceac73e4e3329b
Author: Matthew Pickering <matthewtpickering@gmail.com>
Date:   Mon Jan 30 10:58:12 2023 +0000

    Bump supported LLVM range from 10 through 15 to 11 through 16

    LLVM 15 turns on the new pass manager by default, which we have yet to
    migrate to so for new we pass the `-enable-new-pm-0` flag in our
    llvm-passes flag.

    LLVM 11 was the first version to support the `-enable-new-pm` flag so we
    bump the lowest supported version to 11.

    Our CI jobs are using LLVM 12 so they should continue to work despite
    this bump to the lower bound.

    Fixes #21936

Gbp-Pq: Name newer-llvm

20 months agouse-unbundled-sphinx-rtd-theme
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
use-unbundled-sphinx-rtd-theme

===================================================================

Gbp-Pq: Name use-unbundled-sphinx-rtd-theme

20 months agoFix LLVM error on armel
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Fix LLVM error on armel

GHC 8.10 fails to build on armel with the following error:
   LLVM ERROR: unable to allocate function argument #8
   PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
   Stack dump:
   0.  Program arguments: llc-12 -O2 -enable-tbaa -relocation-model=pic -mcpu=arm7tdmi -mattr=+soft-float,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-fp16,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fullfp16,-fp64,-d32,-neon,-crypto,-dotprod,-fp16fml,-bf16,-mve,-mve.fp,-fpregs,+strict-align /tmp/ghc5537_0/ghc_6.bc -o /tmp/ghc5537_0/ghc_7.lm_s
   1.  Running pass 'Function Pass Manager' on module '/tmp/ghc20177_0/ghc_6.bc'.
   2.  Running pass 'ARM Instruction Selection' on function '@"stg_gc_f1$def"'
   `llc-12' failed in phase `LLVM Compiler'. (Exit code: -6)
   make[3]: *** [rts/ghc.mk:325: rts/dist/build/HeapStackCheck.o] Error 1

 Surprisingly, reverting commit 4540bbe2811e860f35de6e67ab2f0040592fd3a5 fixes
 thie error.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/20285

Gbp-Pq: Name fix-llvm-armel

20 months agoRemove hard-coded googleapis font URL
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Remove hard-coded googleapis font URL

Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

20 months agolocal-mathjax
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
local-mathjax

===================================================================

Gbp-Pq: Name local-mathjax

20 months agoAdd kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4
Svante Signell [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Add kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4

Bug-Debian: https://bugs.debian.org/913140

Gbp-Pq: Name kfreebsd-aclocal.m4

20 months agoUse native x86_64 instructions on x32
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Use native x86_64 instructions on x32

This patch enables a few native 64-bit integer instructions
on x32 which are available on this architecture despite using
32-bit pointers. These instructions are present on x86_64 but
not on x86 and ghc checks the size of (void *) to determine
that. This method fails on x32 since despite using 32-bit
pointers and hence sizeof(void *) == 4, it still uses the
full x86_64 instruction set and software-emulated variants
of the aforementioned 64-bit integer instructions are
therefore not present in the toolchain which will make ghc
fail to build on x32.
See: https://ghc.haskell.org/trac/ghc/ticket/11571

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

20 months agobuildpath-abi-stability
Debian Haskell Group [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

20 months agoDo not emit a warning if the .haddock file is missing
Joachim Breitner [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Do not emit a warning if the .haddock file is missing

As it is quite common on Debian installations to install the -dev package
without the -doc package.

Gbp-Pq: Name no-missing-haddock-file-warning

20 months agoUse VFPv3-D16 FPU for ARM builds
Jani Monoses [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Use VFPv3-D16 FPU for ARM builds

Upstream-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914

Jani writes: The D16 part was Debian/Ubuntu specific, IIRC we define hardfloat
in that particular variant (16 double registers) or we had a different naming
for some reason.

Gbp-Pq: Name ARM-VFPv3D16

20 months agoghc (9.4.7-5) unstable; urgency=medium
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
ghc (9.4.7-5) unstable; urgency=medium

  * Backport upstream patches to fix issues with 64-bit time_t (Closes:
    #1068586)
  * Build unregisterised on powerpc (Closes: #1060196)

[dgit import unpatched ghc 9.4.7-5]

20 months agoImport ghc_9.4.7-5.debian.tar.xz
Ilias Tsitsimpis [Wed, 10 Apr 2024 11:24:01 +0000 (14:24 +0300)]
Import ghc_9.4.7-5.debian.tar.xz

[dgit import tarball ghc 9.4.7-5 ghc_9.4.7-5.debian.tar.xz]

2 years agoImport ghc_9.4.7.orig.tar.xz
Ilias Tsitsimpis [Tue, 10 Oct 2023 19:08:48 +0000 (22:08 +0300)]
Import ghc_9.4.7.orig.tar.xz

[dgit import orig ghc_9.4.7.orig.tar.xz]