LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS11.3 Chapter5.2 Getting an error compiling the Binutils package (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs11-3-chapter5-2-getting-an-error-compiling-the-binutils-package-4175726868/)

raptorfishingbeefweb 07-12-2023 03:19 AM

LFS11.3 Chapter5.2 Getting an error compiling the Binutils package
 
Hello folks,

I'm a relative beginner when it comes to Linux. In the course of my training, I was given the task of carrying out the LFS project in order to gain a better understanding of what is behind the system and how it works.

So far I've made it to Chapter 5.2, but I'm currently encountering the problem that the "Make" command, which is responsible for compiling the package, outputs the following error:

https://paste.pics/807fe07802032c44e416b1836e23eb30

business_kid 07-12-2023 06:24 AM

Hello, raptor & welcome to LQ.

The segment you sent was too short to really be diagnostic with. But included header files usually end in .h, whereas .c files are code. I suspect something odd.

I'd try 'rm-rf' on the binutils directory. Explode the archive and start again. When the compile crashes, hit up-arrow & return, and paste the second output here. You can also do
Code:

make >compile.txt 2>&1
and then post compile.txt

It's important to mention what's your host system, as some are unsuitable.

hazel 07-12-2023 08:46 AM

Did you go through the list of tools and tool versions that LFS needs? For example, Debian-based distros use mawk and dash where LFS needs gawk and bash. Fedora isn't a suitable build host either for some reason.

business_kid 07-12-2023 10:47 AM

Quote:

Originally Posted by hazel (Post 6441624)
Fedora isn't a suitable build host either for some reason.

It's got to do with all the patches RH uses. No Red Hat based system is good. I tried it once and had to give up on gcc.


All times are GMT -5. The time now is 10:24 PM.