16 April 2019

bootstrapping ghc

System: Slackware Linux (version 14.2)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Deps: Sphinx-2.0.1.tar.gz

See the previous Post on Sphinx installation.

D. Spencer's build script took about 10 hours to run.

http://slackbuilds.org/repository/14.2/haskell/ghc/
ghc-8.4.3-src.tar.xz
ghc-8.4.3-i386-deb8-linux.tar.xz
ghc.tar.gz

root@darkstar:~# installpkg /tmp/ghc-8.4.3-i586-2_SBo.tgz
Verifying package ghc-8.4.3-i586-2_SBo.tgz.
Installing package ghc-8.4.3-i586-2_SBo.tgz:
PACKAGE DESCRIPTION:
# ghc (The Glasgow Haskell Compiler)
#
# GHC is a state-of-the-art, open source, compiler and interactive
# environment for the functional language Haskell.
# This is a complete build, including interactive system, profiling
# libraries and documentation.
#
# Homepage: http://haskell.org/ghc/
#
Executing install script for ghc-8.4.3-i586-2_SBo.tgz.
Package ghc-8.4.3-i586-2_SBo.tgz installed.

root@darkstar:~#

Installation of the command-line interface for Cabal and Hackage.

bash-4.3$ su -
root@darkstar:~# cd /tmp
root@darkstar:/tmp# sqg -p haskell-cabal-install
Processing haskell-cabal-install
Done.
root@darkstar:/tmp# ed /var/lib/sbopkg/queues/haskell-cabal-install.sqf
351
2,20p
haskell-zlib
haskell-tar
haskell-base16-bytestring
haskell-resolv
haskell-random
haskell-network-uri
haskell-network
haskell-HTTP
haskell-hashable
haskell-old-locale
haskell-old-time
haskell-ed25519
haskell-cryptohash-sha256
haskell-base64-bytestring
haskell-hackage-security
haskell-edit-distance
haskell-echo
haskell-async
haskell-cabal-install
q
root@darkstar:/tmp# sbopkg -ki haskell-cabal-install
Both a queuefile and a package were found with the name "haskell-cabal-install".

Use (Q)ueuefile, (P)ackage, or (A)bort?: Q

...

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?: P

...

haskell-cabal-install:
  MD5SUM check for cabal-install-2.2.0.0.tar.gz ... OK
  Building package haskell-cabal-install-2.2.0.0-i586-1_SBo.tgz ... OK
  Installing package haskell-cabal-install-2.2.0.0-i586-1_SBo.tgz ... OK

root@darkstar:/tmp# exit
logout
bash-4.3$ grep 'Installing package' /var/log/sbopkg/sbopkg-build-log | grep haskell | wc -l
19
bash-4.3$

I had not allocated for the optional LLVM 5.0 dependency in this build.

See also: tclquadcode (on LLVM)

[   ] [   ]