Building lang/ghc on armv7 (RPI2 v1.1)

Oleksandr Shyshko oshyshko at gmail.com
Tue Dec 24 00:56:07 UTC 2019


Hi,

I am not sure whether this is the right way to report a bug or ask for help.
Please, let me know if there is a better place for it.

I am trying to build lang/ghc on armv7 (RPI2 v1.1):
============================================
$ uname -a
FreeBSD pluto 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  arm
============================================

I made it to this point:
============================================
$ cd /usr/ports/lang/ghc && sudo make SHELL='sh -x' install
...
+ utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist copy
libraries/ghc-prim dist-install /usr/local/bin/strip ''
/usr/ports/lang/ghc/work/ghc-8.6.3-boot
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/share/doc/ghc-8.6.3/html/libraries
'v  '
Installing library in
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3/ghc-prim-0.5.3
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy
libraries/integer-gmp dist-install "/usr/local/bin/strip" ''
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot'
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3'
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot/share/doc/ghc-8.6.3/html/libraries'
'v  '
+ utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist copy
libraries/integer-gmp dist-install /usr/local/bin/strip ''
/usr/ports/lang/ghc/work/ghc-8.6.3-boot
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/share/doc/ghc-8.6.3/html/libraries
'v  '
Installing library in
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3/integer-gmp-1.0.2.0
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy
libraries/base dist-install "/usr/local/bin/strip" ''
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot'
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3'
'/usr/ports/lang/ghc/work/ghc-8.6.3-boot/share/doc/ghc-8.6.3/html/libraries'
'v  '
+ utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist copy
libraries/base dist-install /usr/local/bin/strip ''
/usr/ports/lang/ghc/work/ghc-8.6.3-boot
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/share/doc/ghc-8.6.3/html/libraries
'v  '
Installing library in
/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3/base-4.12.0.0
/usr/local/bin/strip:/usr/ports/lang/ghc/work/ghc-8.6.3-boot/lib/ghc-8.6.3/base-4.12.0.0/HSbase-4.12.0.0.o:
file format not recognized
gmake[3]: *** [ghc.mk:989: install_packages] Error 1
gmake[2]: *** [Makefile:51: install] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/ghc/work/ghc-8.6.3-boot'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/lang/ghc
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ghc
============================================

Any ideas on what can be wrong or how to fix it?


-- 
Alex


More information about the freebsd-haskell mailing list