01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CH03.fm Page 52 Monday, October 7, 2002 8:33 PM<br />

52 Chapter 3 • Compilers <strong>and</strong> Assemblers<br />

three stages. Stage 1 <strong>and</strong> stage 2 binaries are deleted as soon as they are no longer needed. Typically<br />

this building process will do the following:<br />

• Build some basic tools like bison, gperf <strong>and</strong> so on. <strong>The</strong>se tools are necessary to<br />

continue the compilation process.<br />

• Build target tools like gas, ld, binutils <strong>and</strong> so on.<br />

• Perform a three-stage bootstrap of the compiler.<br />

• Perform comparison of stage 2 <strong>and</strong> stage 3.<br />

• Build run-time libraries.<br />

• Remove unnecessary files.<br />

You should have enough disk space to build GCC. If you are short of disk space, you can<br />

use the bootstrap-lean option on the comm<strong>and</strong> line instead of bootstrap.<br />

3.2.2.4 Final Install<br />

<strong>The</strong> final installation process is necessary to move GCC binaries under the directory used<br />

as a prefix during the configure script execution. We have used /opt/gcc-3.0.4 as the<br />

prefix directory. Executing the following comm<strong>and</strong> in /gcc3/objdir will move GCC binaries<br />

in a tree structure under /opt/gcc-3.0.4.<br />

make install<br />

A typical directory tree after installation is shown below.<br />

[root@conformix gcc-3.0.4]# tree -d |more<br />

.<br />

|-- bin<br />

|-- include<br />

| |-- g++-v3<br />

| | |-- backward<br />

| | |-- bits<br />

| | |-- ext<br />

| | `-- i686-pc-linux-gnu<br />

| | `-- bits<br />

| |-- gcj<br />

| |-- gnu<br />

| | |-- awt<br />

| | | `-- j2d<br />

| | |-- classpath<br />

| | |-- gcj<br />

| | | |-- awt<br />

| | | |-- convert<br />

| | | |-- io<br />

| | | |-- jni<br />

| | | |-- math<br />

| | | |-- protocol

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!