ghc for armv6h

Request a package to be made here. Make sure you have searched before requesting.

ghc for armv6h

Postby goobypls » Sun Dec 22, 2013 11:29 pm

Greetings everyone,

I am looking to run and compile Haskell on a raspberry pi, but I noticed that there isn't an armv6h version of 'ghc' in the package repositories, nor is there any latest version in the AUR. I've tried to cross compile GHC, but I haven't very much experience in the matter, and would prefer if there were just an armv6 package for GHC.

Thanks,
goobypls
goobypls
 
Posts: 3
Joined: Sun Dec 22, 2013 11:24 pm

Re: ghc for armv6h

Postby moonman » Mon Dec 23, 2013 4:14 am

https://github.com/archlinuxarm/PKGBUILDs/pull/370 don't know why it isn't in the repos, maybe it fails to build?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ghc for armv6h

Postby goobypls » Mon Dec 23, 2013 5:43 am

I downloaded the PKGBUILD items from the repo you linked and attempted to run makepkg on them:

$this->bbcode_second_pass_code('', '==> Validating source files with md5sums...
ghc-7.6.3-src.tar.bz2 ... Passed
ghc-7.6.3-testsuite.tar.bz2 ... Passed
build.mk ... Passed
add-vfp-flags.patch ... Passed
ghc_7.4.1-4+rpi1_armhf.deb ... Passed
==> Extracting sources...
-> Extracting ghc-7.6.3-src.tar.bz2 with bsdtar
-> Extracting ghc-7.6.3-testsuite.tar.bz2 with bsdtar
-> Extracting ghc_7.4.1-4+rpi1_armhf.deb with bsdtar
==> Starting build()...
patching file aclocal.m4
patching file compiler/main/DriverPipeline.hs
Hunk #1 succeeded at 1394 with fuzz 2 (offset -59 lines).
Creating libraries/array/ghc.mk
Creating libraries/array/GNUmakefile
Creating libraries/base/ghc.mk
Creating libraries/base/GNUmakefile
Creating libraries/bin-package-db/ghc.mk
Creating libraries/bin-package-db/GNUmakefile
Creating libraries/binary/ghc.mk
Creating libraries/binary/GNUmakefile
Creating libraries/bytestring/ghc.mk
Creating libraries/bytestring/GNUmakefile
Creating libraries/Cabal/Cabal/ghc.mk
Creating libraries/Cabal/Cabal/GNUmakefile
Creating libraries/containers/ghc.mk
Creating libraries/containers/GNUmakefile
Creating libraries/deepseq/ghc.mk
Creating libraries/deepseq/GNUmakefile
Creating libraries/directory/ghc.mk
Creating libraries/directory/GNUmakefile
Creating libraries/filepath/ghc.mk
Creating libraries/filepath/GNUmakefile
Creating libraries/ghc-prim/ghc.mk
Creating libraries/ghc-prim/GNUmakefile
Creating libraries/haskeline/ghc.mk
Creating libraries/haskeline/GNUmakefile
Creating libraries/haskell2010/ghc.mk
Creating libraries/haskell2010/GNUmakefile
Creating libraries/haskell98/ghc.mk
Creating libraries/haskell98/GNUmakefile
Creating libraries/hoopl/ghc.mk
Creating libraries/hoopl/GNUmakefile
Creating libraries/hpc/ghc.mk
Creating libraries/hpc/GNUmakefile
Creating libraries/integer-gmp/ghc.mk
Creating libraries/integer-gmp/GNUmakefile
Creating libraries/integer-simple/ghc.mk
Creating libraries/integer-simple/GNUmakefile
Creating libraries/old-locale/ghc.mk
Creating libraries/old-locale/GNUmakefile
Creating libraries/old-time/ghc.mk
Creating libraries/old-time/GNUmakefile
Creating libraries/pretty/ghc.mk
Creating libraries/pretty/GNUmakefile
Creating libraries/process/ghc.mk
Creating libraries/process/GNUmakefile
Creating libraries/template-haskell/ghc.mk
Creating libraries/template-haskell/GNUmakefile
Creating libraries/terminfo/ghc.mk
Creating libraries/terminfo/GNUmakefile
Creating libraries/time/ghc.mk
Creating libraries/time/GNUmakefile
Creating libraries/transformers/ghc.mk
Creating libraries/transformers/GNUmakefile
Creating libraries/unix/ghc.mk
Creating libraries/unix/GNUmakefile
Creating libraries/utf8-string/ghc.mk
Creating libraries/utf8-string/GNUmakefile
Creating libraries/Win32/ghc.mk
Creating libraries/Win32/GNUmakefile
Creating libraries/xhtml/ghc.mk
Creating libraries/xhtml/GNUmakefile
Booting .
Booting libraries/base/
Booting libraries/directory/
Booting libraries/integer-gmp/
Booting libraries/old-time/
Booting libraries/process/
Booting libraries/terminfo/
Booting libraries/time/
Booting libraries/unix/
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... /home/pi/PKGBUILDs/extra/ghc/src/usr/lib/ghc/bin/ghc
checking version of ghc... 7.4.1
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking target system type... armv6l-unknown-linux-gnueabihf
HOST: armv6l-unknown-linux-gnueabihf
Build platform inferred as: arm-unknown-linux
Host platform inferred as: arm-unknown-linux
Target platform inferred as: arm-unknown-linux
GHC build : arm-unknown-linux
GHC host : arm-unknown-linux
GHC target : arm-unknown-linux
configure: Building in-tree ghc-pwd
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM
ghc: could not execute: opt-3.0
configure: error: Building ghc-pwd failed
==> ERROR: A failure occurred in build().
Aborting...
')

I had all the proper dependencies before building, but somehow it failed. I guess this may be why it's not in the extra repo.
goobypls
 
Posts: 3
Joined: Sun Dec 22, 2013 11:24 pm

Re: ghc for armv6h

Postby moonman » Mon Dec 23, 2013 6:26 am

llvm installed? There was a built package in the 3rd comment: https://dl.dropbox.com/u/1824041/github ... pkg.tar.xz
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ghc for armv6h

Postby goobypls » Mon Dec 23, 2013 3:13 pm

D'oh, should've read the comments closer. Thanks for pointing it out. Yes, I did have LLVM installed when attempting to build. I ran `makepkg -s` to also install all the dependencies as defined by the PKGBUILD, so I'm not sure why it failed there.
goobypls
 
Posts: 3
Joined: Sun Dec 22, 2013 11:24 pm

Re: ghc for armv6h

Postby WarheadsSE » Mon Dec 23, 2013 4:10 pm

Which 3rd comment?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ghc for armv6h

Postby moonman » Mon Dec 23, 2013 8:57 pm

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ghc for armv6h

Postby WarheadsSE » Mon Dec 23, 2013 9:54 pm

I see. Well, at this point it is failing to build with an oddball issue in the PKGBUILD regarding the bootstrapping


http://archlinuxarm.org:81/builder/in-l ... og.html.gz
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ghc for armv6h

Postby moonman » Wed Dec 25, 2013 12:17 pm

tried to fix it, but the same error comes up. Builds fine locally.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ghc for armv6h

Postby WarheadsSE » Wed Dec 25, 2013 3:13 pm

It's the bootstrapping that is being a pain.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 4 guests