Bug#862728: hedgewars: FTBFS on architectures without freepascal
James Cowgill
jcowgill at debian.org
Tue May 16 10:06:41 UTC 2017
Source: hedgewars
Version: 0.9.22-dfsg-11
Severity: important
Tags: patch
Hi,
On architectures which do not have a freepascal compiler (such as mips*,
ppc64el, s390x, etc), hedgewars FTBFS with this error:
> /«PKGBUILDDIR»/tools/pas2c/Pas2C.hs:300:5: error:
> * Non type-variable argument
> in the constraint: MonadState RenderState m
> (Use FlexibleContexts to permit this)
> * When checking the inferred type
> injectNamespace :: forall (m :: * -> *).
> MonadState RenderState m =>
> Identifier -> m ()
> In an equation for `uses2C':
> uses2C uses@(Uses unitIds)
> = do { mapM_
> injectNamespace (Identifier "pas2cSystem" undefined : unitIds);
> mapM_ injectNamespace (Identifier "pas2cRedo" undefined : unitIds);
> mapM_ (id2C IOInsert . setBaseType BTUnit) unitIds;
> .... }
> where
> injectNamespace (Identifier i _)
> = do { getNS <- gets (flip Map.lookup . namespaces);
> .... }
> tools/pas2c/CMakeFiles/pas2c.dir/build.make:63: recipe for target 'bin/pas2c' failed
This is a bug in the Pas2C script which does not compile with newer
version of GHC. It's fixed by these 2 upstream commits:
6f45bb989ab48671cd6cedc820fde9dee94d3960
("pas2c: Tentatively fix the build")
83f87ace0bcaf9112773fd918254f500624819b6
("Use less weird options")
I applied the attached combined patch and hedgewars now builds on mips64el.
Unfortunately I have no mips64el machines with graphics cards. I tried
to run hedgewars using X11 forwarding and I could start playing a game
for about 10 seconds before my X server crashed :/ (unlikely to be a bug
in hedgewars).
Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pas2c-ghc8.patch
Type: text/x-patch
Size: 1048 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170516/444c874c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170516/444c874c/attachment-0001.sig>
More information about the Pkg-games-devel
mailing list