You can clone with
HTTPS or Subversion.
Please provide a binary package for GHC 7. Currently, GHC 6 is included.
To build GHC 7 a working install of GHC 6 is required.
Much easier said than done.
I might have a few beers and have a go at this. Wonder what GHC does.
I put in a day's worth of due diligence trying to make this possible, but wasn't able to come up with much. At least on the v7h side, there's an issue with it building everything vfpv3 instead of vfpv3-d16. Since GHC on ARM is possible only because of LLVM, this might be related in some way to the other clang issue. Either way, this is a good chunk of work to do and the solution is evading me at the moment.
My current project is an Arch Linux package manager written in Haskell, and it requires the ABS packages haskell-regex-base and haskell-regex-posix to build. The default PKGBUILDs for these two packages demand ghc=7.4.2-1.
I really want my project to be able to build on ARM.
If possible, could you be more elaborate as to why the builds were failing? Attempting to build with the standard ABS PKGBUILD for 7.4.2 (with arm added to the architecture line) gets me this far:
configure: Building in-tree ghc-pwd
/usr/bin/ld: /usr/lib/ghc-6.12.3/unix-184.108.40.206/libHSunix-220.127.116.11.a(Semaphore.o): undefined reference to symbol 'sem_post@@GLIBC_2.4'
/usr/bin/ld: note: 'sem_post@@GLIBC_2.4' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
distcc ERROR: compile (null) on localhost failed
configure: error: Building ghc-pwd failed
There isn't much to elaborate on. The binaries are getting built with vfpv3, not vfpv3-d16. And on top of that they don't run afterward. If you don't know what this means, Google is willing to help.
Alright, thank you.
I have a built version of GHC 7.6.1 along with a working PKGBUILD. However, I accidentally made the package depend on distcc/gcc, so I'm rebuilding it in qemu with plain gcc for the C compiler. I can provide the working build stuff, though.
Information on how you ended up bootstrapping for each of the architectures we support, especially how you got around the issues I had with v7 vfpv3, will also be needed so your results can be replicated and built in our build environment.
I have only tested armv6h because that's the only platform I have access to, so further testing might be needed for the other platforms.
GHC is in repository for armv5 and armv7, but not for armv6.