/[escript]/branches/doubleplusgood/doc/install/misc.tex
ViewVC logotype

Annotation of /branches/doubleplusgood/doc/install/misc.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4345 - (hide annotations)
Fri Mar 29 07:09:41 2013 UTC (6 years ago) by jfenwick
File MIME type: application/x-tex
File size: 1400 byte(s)
Spelling fixes
1 jfenwick 3989 \chapter{Misc}
2    
3    
4     \section{Building gcc}\label{sec:gccbuilding}
5     This section explains how to build gcc from source.
6     These instructions have been tested on MacOS\footnote{Lion specifically} (where they are most needed).
7    
8     Create a directory and put the following files in it (change version numbers as required).
9     \begin{itemize}
10     \item gmp-4.3.2.tar.bz2 (eg \url{ftp://gcc.gnu.org/pub/gcc/infrastructure})
11     \item mpfr-2.4.2.tar.bz2 (eg \url{http://www.mpfr.org/})
12     \item mpc-0.8.1.tar.gz (eg \url{mpc-0.8.1.tar.gz})
13     \item gcc source (eg \url{http://gcc.gnu.org/gcc-4.7/}
14     \end{itemize}
15    
16     Change into the directory you created and
17     \begin{shellCode}
18     tar -xjf gmp-4.3.2.tar.bz2
19     tar -xjf mpfr-2.4.2.tar.bz2
20     tar -xzf mpc-0.8.1.tar.gz
21     tar -xjf gcc-4.7.1.tar.bz2
22     mv gmp-4.3.2 gcc-4.7.1/gmp
23     mv mpc-0.8.1 gcc-4.7.1/mpc
24     mv mpfr-2.4.2 gcc-4.7.1/mpfr
25    
26     cd gcc-4.7.1
27     \end{shellCode}
28    
29 jfenwick 4345 \noindent Note that in the next step we specify the architecture explicitly.
30 jfenwick 3989 This is because (on our test platform at least) some of the parts default to different architectures.
31    
32     \begin{shellCode}
33     ./configure --build=amd64-apple-darwin11.4.0
34     make
35     \end{shellCode}
36    
37     \noindent Now go have several coffees, watch a movie or cook a roast.
38    
39     \noindent Once the build has completed:
40     \begin{shellCode}
41     sudo make install
42     \end{shellCode}
43    
44     \noindent Once this is done you can remove the directory you created at the beginning of this section.

  ViewVC Help
Powered by ViewVC 1.1.26