-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD-NOTES.txt
76 lines (64 loc) · 2.29 KB
/
BUILD-NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ghcup install ghc 8.6.5
ghcup set ghc 8.6.5
cabal install alex-3.2.6
cabal install happy-1.19.11
export PATH=~/.cabal/bin:$PATH
git clone https://gitlab.haskell.org/harendra/ghc.git
cd ghc
git checkout eventlog-enhancements
git submodule update --init --recursive
cp mk/build.mk.sample mk/build.mk
# Uncomment "BuildFlavour = quick" line in mk/build.mk
# sudo apt-get install autotools-dev
# sudo apt-get install autoconf
./boot
./configure
make
./inplace/bin/ghc-stage2
make binary-dist # This will fail if autoreconf version is too recent (Use 2.69)
# For faster incremental builds after changes,
# uncomment "stage = 2" line in mk/build.mk
------------------------------------------------------------------------------
# Ensure nix-profile is not in PATH to avoid any nix related issues
# Find alex and happy versions required from aclocal.m4
# GHC builds often fail because of incorrect happy versions
# Need to find the correct one if the build fails
A working configure output:
Configure completed successfully.
Building GHC version : 8.8.4
Git commit id : 6cf8f835267581d551ca6695b3b02c34797e2cf4
Build platform : x86_64-unknown-linux
Host platform : x86_64-unknown-linux
Target platform : x86_64-unknown-linux
Bootstrapping using : /home/harendra/.ghcup/bin/ghc
which is version : 8.6.5
with threaded RTS? : YES
Using (for bootstrapping) : gcc
Using gcc : gcc
which is version : 8.3.0
Building a cross compiler : NO
Unregisterised : NO
hs-cpp : gcc
hs-cpp-flags : -E -undef -traditional
ar : ar
ld : ld.gold
nm : nm
libtool :
objdump : objdump
ranlib : ranlib
windres :
dllwrap :
genlib :
Happy : /home/harendra/.cabal/bin/happy (1.19.11)
Alex : /home/harendra/.cabal/bin/alex (3.2.6)
Perl : /usr/bin/perl
sphinx-build :
xelatex :
Using LLVM tools
clang : clang
llc : llc-7
opt : opt-7
HsColour was not found; documentation will not contain source links
Tools to build Sphinx HTML documentation available: NO
Tools to build Sphinx PDF documentation available: NO
----------------------------------------------------------------------