Cannot have GHC in ARMv6 architecture

jmcf125 at openmailbox.org jmcf125 at openmailbox.org
Wed Sep 9 11:22:26 UTC 2015


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*  libncursesw.so@  libncursesw.so.5@  libncursesw.so.5.9*
> >
> >/home/jmcf125/ghc-raspberry-pi/sysroot/usr:
> >include/
> >
> >/home/jmcf125/ghc-raspberry-pi/sysroot/usr/include:
> >cursesapp.h  cursesf.h  curses.h  cursesm.h  cursesp.h  cursesw.h  cursslk.h  ncurses_dll.h  ncurses.h@  slcurses.h
> 
> 
> This is misunderstadning, you need whole sysroot package for ARMv6. That
> means basically copy whole / or just google for it.
> 
> The reason is simple curses headers include another headers and those will
> not be available in your way. Ditto for libs which depends at least on libc.

That was actually just the 1st thing I tried, then as I said:
> >I also tried extracting the ncurses official package for ARMv6 itself to
> >sysroot, and got another error message, where the compiler did work. I
> >begun to wonder whether I need a full ARMv6 system in sysroot to make
> >this work, and as my Raspberry Pi is on an external hard drive, I
> >mounted it on /mnt/jrpi, and changed the --sysroot option to it.
> >Finally, configure worked!

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" compiler/stage2/doc/html/ghc//.
> ><<ghc: 13398192 bytes, 14 GCs, 190152/210488 avg/max bytes residency (2 samples), 26M in use, 0.000 INIT (0.000 elapsed), 0.016 MUT (0.257 elapsed), 0.015 GC (0.020 elapsed) :ghc>>
> >"inplace/bin/mkdirhier" utils/hsc2hs/dist-install/build/tmp//.
> >"inplace/bin/mkdirhier" utils/ghc-pkg/dist-install/build/tmp//.
> >"inplace/bin/mkdirhier" utils/ghctags/dist-install/build/tmp//.
> ><<ghc: 13396968 bytes, 14 GCs, 190128/210440 avg/max bytes residency (2 samples), 26M in use, 0.000 INIT (0.000 elapsed), 0.015 MUT (0.213 elapsed), 0.014 GC (0.017 elapsed) :ghc>>
> >"inplace/bin/mkdirhier" utils/ghc-pwd/dist-install/build/tmp//.
> >"inplace/bin/mkdirhier" utils/ghc-cabal/dist-install/build/tmp//.
> >"inplace/bin/mkdirhier" utils/hpc/dist-install/build/tmp//.
> >"inplace/bin/mkdirhier" utils/runghc/dist-install/build/tmp//.
> >docs/users_guide/users_guide.xml
> >make[1]: docs/users_guide/users_guide.xml: Command not found
> >docs/users_guide/what_glasgow_exts_does.gen.xml
> >docs/users_guide/ghc.mk:24: recipe for target 'docs/users_guide/users_guide.xml' failed
> >make[1]: *** [docs/users_guide/users_guide.xml] Error 127
> >make[1]: *** Waiting for unfinished jobs....
> >make[1]: docs/users_guide/what_glasgow_exts_does.gen.xml: Command not found
> >docs/users_guide/ghc.mk:24: recipe for target 'docs/users_guide/what_glasgow_exts_does.gen.xml' failed
> >make[1]: *** [docs/users_guide/what_glasgow_exts_does.gen.xml] Error 127
> >Writing utils/haddock/doc/haddock/license.html for section(license)
> >Writing utils/haddock/doc/haddock/ch01s03.html for section
> >Writing utils/haddock/doc/haddock/ch01s04.html for section
> >Writing utils/haddock/doc/haddock/introduction.html for chapter(introduction)
> >Writing utils/haddock/doc/haddock/invoking.html for chapter(invoking)
> >Writing utils/haddock/doc/haddock/ch03s02.html for section
> >Writing utils/haddock/doc/haddock/ch03s03.html for section
> >Writing utils/haddock/doc/haddock/ch03s04.html for section
> >Writing utils/haddock/doc/haddock/ch03s05.html for section
> >Writing utils/haddock/doc/haddock/hyperlinking.html for section(hyperlinking)
> >Writing utils/haddock/doc/haddock/module-attributes.html for section(module-attributes)
> >Writing utils/haddock/doc/haddock/ch03s08.html for section
> >Writing utils/haddock/doc/haddock/markup.html for chapter(markup)
> >Writing utils/haddock/doc/haddock/ix01.html for index
> >Writing utils/haddock/doc/haddock/index.html for book(haddock)
> >cp mk/fptools.css utils/haddock/doc/haddock/
> >Makefile:71: recipe for target 'all' failed
> >make: *** [all] Error 2

ghc-stage1 logically does not work, although it is created.

I hope this is clearer. Cheers,
João Miguel


More information about the ghc-devs mailing list