Re: Cannot have GHC in ARMv6 architecture

2015-09-14 Thread João Miguel
Hello again, I still can't get the stage 2 binary, as previous messages show. Should I manually use the stage 1 compiler to do it, along with GCC cross-compiler, etc.? Because the page https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/RaspberryPi says that «The build should go

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread Karel Gardas
On 09/ 9/15 01:22 PM, jmcf...@openmailbox.org wrote: So, when doing that, configure works (the logs were for the previous attempts). But why is that when I try to make, with a working configure, and a real sysroot, that I get the following error? $ make -j5 (...) "inplace/bin/mkdirhier"

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread jmcf125
Hi, sorry for not sending a CC to the mailing list, works differently from others I've used > > $ ls -R /home/jmcf125/ghc-raspberry-pi/sysroot/* > >/home/jmcf125/ghc-raspberry-pi/sysroot/lib: > >libcursesw.so libncurses.so libncurses++.so libncurses.so.5@ > >libncurses.so.5.9*

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread Karel Gardas
So ghc-stage1 is working. Good! Now just to find why your base is broken, please rebuild ghc completely and this time does not use any -j 5 option. It'll use just one core, but will stop on the first error. Let's see how far you get. Karel On 09/ 9/15 02:59 PM, jmcf...@openmailbox.org

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread jmcf125
> How exactly ghc-stage1 behaves? What does ghc-stage1 --info tells you? $ ../inplace/bin/ghc-stage1 --make HelloWorld.lhs HelloWorld.lhs:1:1: Could not find module ‘Prelude’ There are files missing in the ‘base-4.8.1.0’ package, try running 'ghc-pkg check'. Use -v to see a list

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread jmcf125
> So ghc-stage1 is working. Good! Now just to find why your base is broken, > please rebuild ghc completely and this time does not use any -j 5 option. > It'll use just one core, but will stop on the first error. Let's see how far > you get. Ah. Alright, it took a while longer. $ ./configure

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread Karel Gardas
On 09/ 9/15 04:21 PM, jmcf...@openmailbox.org wrote: So ghc-stage1 is working. Good! Now just to find why your base is broken, please rebuild ghc completely and this time does not use any -j 5 option. It'll use just one core, but will stop on the first error. Let's see how far you get. Ah.

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread Reid Barton
On Wed, Sep 9, 2015 at 11:46 AM, Karel Gardas wrote: > On 09/ 9/15 04:21 PM, jmcf...@openmailbox.org wrote: > >> So ghc-stage1 is working. Good! Now just to find why your base is broken, >>> please rebuild ghc completely and this time does not use any -j 5 option. >>>

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread Karel Gardas
On 09/ 9/15 05:59 PM, Reid Barton wrote: This is not weird at all! GHC does not provide ARM NCG and so it is using LLVM if you compile ARM registerised build. But "./configure [...] --enable-unregisterised" should mean using the C backend, not LLVM, right? So this still looks strange.

Re: Cannot have GHC in ARMv6 architecture

2015-09-09 Thread jmcf125
Okay, I tried with LLVM registerised, I've read about it and the idea sounds nice. > What is in your build.mk? Maybe you are using one of the build flavors that > sets -fllvm explicitly? Ah, so that was it. I followed Karel's blog, seems back then the BuildFlavour = quick-cross option he used

Cannot have GHC in ARMv6 architecture

2015-09-07 Thread jmcf125
Hi, I have tried to have GHC in my Raspberry Pi, got stuck in the issue 7754 (https://ghc.haskell.org/trac/ghc/ticket/7754), since I didn't know where to pass options to terminfo's configure file, although I did copy the headers from my Raspberry Pi. I've been using HUGS ever since, as Arch Linux

Re: Cannot have GHC in ARMv6 architecture

2015-09-07 Thread Karel Gardas
Hi, I think sysroot option may help you. I wrote something about it for ARMv8 in the past here: https://ghcarm.wordpress.com/2014/01/18/unregisterised-ghc-head-build-for-arm64-platform/ Cheers, Karel On 09/ 7/15 08:18 PM, jmcf...@openmailbox.org wrote: Hi, I have tried to have GHC in my