LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-12-2023, 03:19 AM   #1
raptorfishingbeefweb
LQ Newbie
 
Registered: Jul 2023
Posts: 2

Rep: Reputation: 0
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
 
Old 07-12-2023, 06:24 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
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.
 
Old 07-12-2023, 08:46 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,650
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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.
 
Old 07-12-2023, 10:47 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Quote:
Originally Posted by hazel View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS11.3 Error in ch 6 when building coreutils, unable to run make after ./configure engineer Linux From Scratch 5 05-30-2023 09:50 PM
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
LFS-6.0 Chapter5.6 Linux-Libc_Headers-2.6.8.1 georges2 Linux From Scratch 4 04-13-2006 03:03 AM
LFS6.0 Glibc compile problem Chapter5.8 Pass1 Paulsuk Linux From Scratch 1 04-19-2005 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration