Bug#1125010: haskell-primitive-unaligned is FTBFS with Error: [Cabal-7554] can't find source for Data/Primitive/Unaligned/Mach
Trupti
trupti at linux.ibm.com
Thu Jan 8 09:46:57 GMT 2026
On 2026-01-08 15:09, Trupti wrote:
> Source: haskell-primitive-unaligned
> Version: 0.1.1.2-6
> Severity: serious
> tags : FTBFS
> User: debian-powerpc at lists.debian.org
> Usertags: ppc64el
> X-Debbugs-Cc: debian-powerpc at lists.debian.org
>
>
> Dear Maintainer,
>
> haskell-primitive-unaligned is failed to build on ppc64el with below
> error:
>
> Preprocessing library for primitive-unaligned-0.1.1.2...
> Error: [Cabal-7554]
> can't find source for Data/Primitive/Unaligned/Mach in src,
> dist-ghc/build/autogen, dist-ghc/build/global-autogen
>
> dh_auto_build: error: debian/hlibrary.setup build --builddir=dist-ghc
> --jobs=8 returned exit code 1
> make: *** [debian/rules:8: binary-arch] Error 25
> dpkg-buildpackage: error: debian/rules binary-arch subprocess failed
> with exit status 2
>
> Below is build log for reference:
>
> https://buildd.debian.org/status/fetch.php?pkg=haskell-primitive-unaligned&arch=ppc64el&ver=0.1.1.2-6&stamp=1767648033&raw=0
>
>
> Thanks,
> Trupti
Hello,
The build fails because the Cabal file always tells the compiler to look
in the src directory for source files.On 64-bit systems like ppc64el,
the actual source files are in src-64, not in src.
Because of this, Cabal cannot find Data.Primitive.Unaligned.Mach, even
though the file exists.
This worked previously and is now exposed by newer Cabal (3.12) / GHC
9.10.
The fix is to move hs-source-dirs entirely into an if/else block
selecting src-64 vs src-32.sing an if/else block in the Cabal file.
Thanks,
Trupti.
More information about the Pkg-haskell-maintainers
mailing list