Poor performance when using hsc2hs to cross-compile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Poor performance when using hsc2hs to cross-compile

Vanessa McHale
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


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

signature.asc (499 bytes) Download Attachment