I run raspbian, a Debian derivative to support armv6 hardfloat, I
recently updated ghc in raspbian bookworm to 9.0.2-4+rpi1 merging
our local changes (mainly changing the compiler defaults) with the
9.0.2-4 version that had just landed in Debian bookworm.
Unfortunately after doing so it seems all haskell library packages
are failing to build with errors like:
[1 of 1] Compiling Main ( Setup.hs, Setup.o ) <no location info>: error: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM between [10 and 14) ghc: could not execute: opt at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 109. Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("ghc", "--make", "Setup.hs", "-o", "debian/hlibrary.setup") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 133 Debian::Debhelper::Buildsystem::Haskell::Recipes::run("ghc", "--make", "Setup.hs", "-o", "debian/hlibrary.setup") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 513 Debian::Debhelper::Buildsystem::Haskell::Recipes::make_setup_recipe() called at -e line 1 make: *** [/usr/share/cdbs/1/class/hlibrary.mk:149: debian/hlibrary.setup] Error 25
(full log available at
http://buildd-mm.raspbian.org/status/fetch.php?pkg=haskell-mountpoints&arch=armhf&ver=1.0.2-7%2Bb1&stamp=1664737616&raw=0
)
Has anyone seen this issue before? or have any suggestions on how
to debug it?