Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

GHC 7 #175

Closed
rekado opened this Issue · 11 comments

7 participants

@rekado

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.

@kmihelich
Owner

Much easier said than done.

@pepedog
Collaborator

I might have a few beers and have a go at this. Wonder what GHC does.

@kmihelich
Owner

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.

@fosskers

Please try.
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-2.4.0.2/libHSunix-2.4.0.2.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[2413] ERROR: compile (null) on localhost failed
configure: error: Building ghc-pwd failed
@kmihelich
Owner

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.

@fosskers

Alright, thank you.

@dflemstr

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.

@WarheadsSE
Collaborator
@kmihelich
Owner

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.

@dflemstr

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.

@srdjantot

GHC is in repository for armv5 and armv7, but not for armv6.

@kmihelich kmihelich closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.