[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: haskell packages failling to build in raspbian bookworm.



On 05/10/2022 13:27, Ilias Tsitsimpis wrote:
Hi Peter,

On Sun, Oct 02, 2022 at 08:09PM, Peter Michael Green wrote:
<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 athttp://buildd-mm.raspbian.org/status/fetch.php?pkg=haskell-mountpoints&arch=armhf&ver=1.0.2-7%2Bb1&stamp=1664737616&raw=0
)
Can you please share the build logs for GHC itself, and maybe the source
package as well (to take a look at the extra modifications that you did)?

The package was built manually, so I don't have a log.

However after some experimentation I believe the issue is that the ghc package
is sensitive to extra stuff being installed in the build-environment. It seems to
pick it up at build time and then break when it isn't available at runtime.
Specifically this seems to apply to llvm 14 and to libnuma.

Some build conflicts have been added and haskell packages in raspbian
seem to now be building ok.

Debdiffs of raspbian ghc packages, compared to the corresoning debian
ones can be found at https://debdiffs.raspbian.org/main/g/ghc/



Reply to: