6.14. Installing Binutils-2.14

Estimated build time:           1.4 SBU
Estimated required disk space:  167 MB

6.14.1. Contents of Binutils

Binutils is a collection of software development tools containing a linker, assembler and other tools to work with object files and archives.

Installed programs: addr2line, ar, as, c++filt, gprof, ld, nm, objcopy, objdump, ranlib, readelf, size, strings and strip

Installed libraries: libiberty.a, libbfd.[a,so] and libopcodes.[a,so]

6.14.2.

6.14.3. Binutils Installation Dependencies

Binutils depends on: Bash, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Perl, Sed, Texinfo.

6.14.4.

6.14.5. Installation of Binutils

Now is an appropriate time to verify that your pseudo terminals (PTYs) are working properly inside the chroot environment. We will again quickly check that everything is set up correctly by performing a simple test:

expect -c "spawn ls"

If you receive the message:

The system has no more ptys.  Ask your system administrator to create more.

Your chroot environment is not set up for proper PTY operation. In this case there is no point in running the test suites for Binutils and GCC until you are able to resolve the issue. Please refer back to Section 6.6 and Section 6.9 and perform the recommended steps to fix the problem.

Note

The test suite for Binutils in this section is considered critical. Our advice is to not skip it under any circumstances.

This package is known to behave badly when you have changed its default optimization flags (including the -march and -mcpu options). Therefore, if you have defined any environment variables that override default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting or modifying them when building Binutils.

The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:

mkdir ../binutils-build
cd ../binutils-build

Now prepare Binutils for compilation:

../binutils-2.14/configure \
    --prefix=/usr --enable-shared

Compile the package:

make tooldir=/usr

Normally, the tooldir (the directory where the executables end up) is set to $(exec_prefix)/$(target_alias), which expands into, for example, /usr/i686-pc-linux-gnu. Since we only build for our own system, we don't need this target specific directory in /usr. That setup would be used if the system was used to cross-compile (for example compiling a package on an Intel machine that generates code that can be executed on PowerPC machines).

Test the results:

make check

The test suite notes from Section 5.15 are still very much appropriate here. Be sure to refer back there should you have any doubts.

Install the package:

make tooldir=/usr install

Install the libiberty header file that is needed by some packages:

cp ../binutils-2.14/include/libiberty.h /usr/include

Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:57:39