Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
8eb44058
Commit
8eb44058
authored
25 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-01-26 13:07:55 by simonmar]
Finish pass 1 over the build system docs.
parent
4afec095
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/building.sgml
+26
-17
26 additions, 17 deletions
docs/building.sgml
with
26 additions
and
17 deletions
docs/building.sgml
+
26
−
17
View file @
8eb44058
...
...
@@ -819,10 +819,11 @@ from the source is that the build tree can be placed in a
non-backed-up partition, saving your systems support people from
backing up untold megabytes of easily-regenerated, and
rapidly-changing, gubbins. The golden rule is that (with a single
exception
—
<XRef
LinkEnd=
"sec-build-config"
>
<Emphasis>
absolutely everything in the build tree is either
a symbolic link to the source tree, or else is mechanically
generated
</Emphasis>
. It should be perfectly OK for your build tree to vanish
overnight; an hour or two compiling and you're on the road again.
exception
—
<XRef
LinkEnd=
"sec-build-config"
>
)
<Emphasis>
absolutely everything in the build tree is either a symbolic
link to the source tree, or else is mechanically generated
</Emphasis>
.
It should be perfectly OK for your build tree to vanish overnight; an
hour or two compiling and you're on the road again.
</Para>
<Para>
...
...
@@ -919,12 +920,13 @@ Runs the newly-created <Command>configure</Command> script, thus:
./configure
</ProgramListing>
<Command>
configure
</Command>
's mission is to scurry round your computer working out
what architecture it has, what operating system, whether it has the
<Function>
vfork
</Function>
system call, where
<Command>
yacc
</Command>
is kept, whether
<Command>
gcc
</Command>
is available,
where various obscure
<Literal>
#
include
</Literal>
files are, whether it's a leap year,
and what the systems manager had for lunch. It communicates these
snippets of information in two ways:
<Command>
configure
</Command>
's mission is to scurry round your
computer working out what architecture it has, what operating system,
whether it has the
<Function>
vfork
</Function>
system call, where
<Command>
yacc
</Command>
is kept, whether
<Command>
gcc
</Command>
is
available, where various obscure
<Literal>
#
include
</Literal>
files
are, whether it's a leap year, and what the systems manager had for
lunch. It communicates these snippets of information in two ways:
</Para>
<Para>
...
...
@@ -1250,8 +1252,12 @@ file. Typing <Command>gmake</Command> alone is generally the same as typing <Co
<ListItem>
<Para>
installs the things built by
<Literal>
all
</Literal>
. Where does it
install them? That is specified by
<Filename>
mk/config.mk.in
</Filename>
; you can
override it in
<Filename>
mk/build.mk
</Filename>
.
install them? That is specified by
<Filename>
mk/config.mk.in
</Filename>
; you can override it in
<Filename>
mk/build.mk
</Filename>
, or by running
<command>
configure
</command>
with command-line arguments like
<literal>
--bindir=/home/simonpj/bin
</literal>
; see
<literal>
./configure
--help
</literal>
for the full details.
</Para>
</ListItem></VarListEntry>
<VarListEntry>
...
...
@@ -2477,11 +2483,14 @@ vagaries of different systems, it seems. The solution is simple:
<ListItem>
<Para>
If you're compiling with GHC 4.00 or above, then the
<Emphasis>
maximum
</Emphasis>
heap size must have been reached. This is somewhat
unlikely, since the maximum is set to 64M by default. Anyway, you can
raise it with the
<Option>
-optCrts-M
<
size
>
</Option>
flag (add this flag to
<Constant>
<
module
>_
HC
_
OPTS
</Constant>
<Command>
make
</Command>
variable in the appropriate
<Filename>
Makefile
</Filename>
).
If you're compiling with GHC 4.00 or later, then the
<Emphasis>
maximum
</Emphasis>
heap size must have been reached. This
is somewhat unlikely, since the maximum is set to 64M by default.
Anyway, you can raise it with the
<Option>
-optCrts-M
<
size
>
</Option>
flag (add this flag to
<Constant>
<
module
>_
HC
_
OPTS
</Constant>
<Command>
make
</Command>
variable in the appropriate
<Filename>
Makefile
</Filename>
).
</Para>
</ListItem>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment