Saturday, December 26, 2020

Chapter 12 : Compile and Install BinUtils - Compiling a Cross-Toolchain

 Hi,

In this chapter, I would be discussing on how to compile the bin utils package

Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 2.35
- You should be logged in as lfs user, when you perform the actions described here.
- Change directory to the sources folder (/mnt/lfs/sources)

Use the following command to unpack the package...

$ tar -xvf binutils-2.35.tar.xz

The above command would unpack the package in a folder called binutils-2.35.

Once the command execution is completed, we have to change directory to that folder.

$ cd binutils-2.35

The linux from scratch suggest that we should be compiling the packages using a dedicated directory.

To compile binutils, let us create a directory called "build" inside binutils-2.35

$ mkdir build

Change directory to build directory

$ cd build
Paste the following command at the terminal to prepare binutils for compilation.

../configure --prefix=$LFS/tools   \

                 --with-sysroot=$LFS  \

                 --target=$LFS_TGT  \

                 --disable-nls              \

                 --disable-werror

Execute the following command at the prompt to compile the binutils

$ make

If the above command execution is successful then execute the following command to install binutils

$ make install

For detailed explanation on compiling binutils package, you can refer the link given below...





No comments:

Post a Comment

Changing the password of the root user of mysql in Ubuntu

Hi all,    In this post we are going to see how to reset the password of root user in mysql As we all know the root user of mysql is some...