[Haskell-cafe] Poor performance when using hsc2hs to cross-compile
Vanessa McHale
vanessa.mchale at iohk.io
Wed Dec 26 14:56:53 UTC 2018
Hi all,
I've been trying to cross-compile X11 for ARM. Unfortunately, the build
runs in the preprocessor phase for a very very long time when
preprocessing Graphics/X11/Types.hsc
Upon passing -v to hsc2hs I saw many steps like
checking XK_abrevebelowdot `GreaterOrEqual` Unsigned 17039360
executing: /usr/bin/arm-linux-gnueabihf-gcc -c
/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/Graphics/X11/ExtraTypes/XorgDefault_hsc_test37988.c
-o
/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/Graphics/X11/ExtraTypes/XorgDefault_hsc_test37988.o
-marm -fno-stack-protector '-fuse-ld=gold' -Wl,-z,noexecstack
'-D__GLASGOW_HASKELL__=806' '-Dlinux_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1'
'-Dlinux_HOST_OS=1' '-Darm_HOST_ARCH=1' -Iinclude
-I/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/include
-I/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/autogen
-I/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/global-autogen
-include
/home/vanessa/git-builds/junk/X11-1.9/dist-newstyle/build/arm-linux/ghc-8.6.3/X11-1.9/build/autogen/cabal_macros.h
-I/usr/local/lib/arm-linux-gnueabihf-ghc-8.6.3/base-4.12.0.0/include
-I/usr/local/lib/arm-linux-gnueabihf-ghc-8.6.3/integer-gmp-1.0.2.0/include
-I/usr/local/lib/arm-linux-gnueabihf-ghc-8.6.3/include
result: False
which I assume are necessary or at least progressing...
Is there any way to speed this up? Is it a bug of some sort in hsc2hs or
X11? Is there any hope in reporting upstream to the appropriate project
(and what is the appropriate project in this case?)?
Cheers,
Vanessa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20181226/eb95dfcc/attachment.sig>
More information about the Haskell-Cafe
mailing list