Cross-compiling GHC for ARM (RPi)
karel.gardas at centrum.cz
Mon Dec 1 09:53:45 UTC 2014
Two obvious questions:
1) have you installed your ncurses into your sysroot?
2) have you passed your sysroot to really all gcc invocations?
Your description looks like at least one answer to above question should
For example I used custom bash script to solve (2), see .
On 12/ 1/14 12:43 AM, Xandaros wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> I'm having some trouble cross-compiling GHC (or just making a
> cross-compiler, which is what I am trying to do for now).
> I got my toolchain through crosstool-ng. I just took the
> arm-unknown-linux-gnueabi sample and disabled the "render the toolchain
> read-only" option.
> Unfortunately nt-ng does not come with ncurses, so I also compiled and
> installed that. I set the prefix to
> where ~/x-tools/arm-unknown-linux-gnueabi is where my toolchain is located.
> I copied the mk/build.mk.sample file to mk/build.mk and uncommented the
> quick-cross option. I left everything else as-is.
> After configuring I executed make, which runs for quite a while but
> eventually it complains about not being able to find the curses headers.
> What do I do to fix this? I wouldn't mind using a different toolchain if
> I can get it to work, so I am open for anything.
> Configure summary of ncurses and last lines of output of make:
> I hope you can help me resolve this, I've been trying to do this for a
> long time now :/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> -----END PGP SIGNATURE-----
> ghc-devs mailing list
> ghc-devs at haskell.org
More information about the ghc-devs