Questions tagged [lfs]

(LFS) - Linux From Scratch is a Linux distribution that you build from source (scratch) piece by piece.

Filter by
Sorted by
Tagged with
3
votes
3answers
2k views

6.7 Linux headers `make mrproper` fails in lfs 7.5

I'm building lfs-7.5. When I run make mrproper in chapter 6.7, it says: make: gcc: command not found and on running bash /tools/bin/gcc, it says: bash: /tools/bin/gcc: no such file or ...
0
votes
1answer
16 views

What should I do to get the most out of building an LFS system? [closed]

I've begun building an LFS system because I've heard it's a great way to learn Linux. I'm in the middle of chapter 5 right now (and you can see the TOC here), and all I've done so far is set up my ...
0
votes
1answer
60 views

Grow a Nix-based system from scratch?

Is it possible to grow a Nix (the package manager, not nixos the distro) based linux system from scratch? More specifically: AFAIK Nix provides infrastructural packages like glibc, gcc, linux kernel, ...
0
votes
0answers
12 views

How to create an installer for a desktop LFS system

I am building an LFS system currently and it is turning out quite well. The goal is to be able to put this custom distro onto an ISO image to insert into virtualbox or a similar VM software. What I am ...
5
votes
3answers
6k views

How to provide crt1.o and crti.o for LFS?

I have tried to create a Linux distribution with the Linux From Scratch (LFS) website. Everything went good until step 5.7. Glibc-2.19, but when I tried: $LFS_TGT-gcc dummy.c I get: /tools/lib/gcc/...
1
vote
1answer
482 views

Linux from Scratch 8.1. Issue related to Zlib 1.2.11

I am doing Linux from Scratch. I am currently at 6.11 section i.e zlib 1.2.11 in LFS 8.2 . I did the following as per the book: 1) Prepare Zlib for compilation: ./configure --prefix=/usr 2)Compile ...
1
vote
1answer
1k views

BLFS Xorg: Fatal server error no screens found

I'm trying to build the Xorg X Window System Environment as outlined in Beyond Linux From Scratch Version 8.0. My BLFS system resides in a Virtual Machine using VirtualBox Version 5.0.10 r104061. I ...
-2
votes
1answer
36 views

How to install multiple tar archives from a .tar tarball?

I am just getting started with Linux from scratch and there is a long list of packages that need to be installed. I headed over to one of the official mirrors to download one .tar archive of all the ...
1
vote
1answer
41 views

LFS - Version SVN-20200315 - GLibc fails to *install*

I'm just following the LFS book and when I reach the point to install GLibc the second time, in the chroot, it builds fine, but when I run make install, it errors. It installs a file to /usr/share/...
0
votes
0answers
51 views

make bootable iso from linux from scratch

i have created linux from scratch which has / in /sdb2 and /boot in /sdb1 and swap in /sdb3 , now i want to create a iso , how do i do it? size of 1. / = 25 GB 2. /boot = 100 MB 3. /swap = 2 GB
0
votes
0answers
17 views

Grub configuration for LFS on a VMware environment

I am trying to figure out why my LFS does not boot and would need some help. The setup is built on a Ubuntu VMware VM. The sda is the drive where my Ubuntu is running on. LFS is built on sdb. sdb1 is ...
4
votes
2answers
3k views

Add and Compile apt-get package manager for LFS

I'm trying to add apt-get package manager to LFS (LINUX FROM SCRATCH) system. I have found a solution explaining how to 'compile apt-get and dpkg' for LFS. But it's very old and unusable. I searched ...
0
votes
1answer
52 views

LFS - Should Glibc be patched in Section 5.7?

I'm currently working my way through the Linux From Scratch (LFS) book, but I'm a bit confused about when to apply patches. In Section 5.7 the goal is to build glibc. The section have a pretty ...
1
vote
1answer
419 views

Why am I receiving make errors when trying to compile GCC?

I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I ...
0
votes
1answer
42 views

Partition have size of img after using “dd” to install

I have a partition of size 50GB and made image via some disk tool (through GUI). But it had size of entire partition (50GB). Then I resized that image to 8.7GB: e2fsck -f -y xxx.img resize2fs -M xxx....
3
votes
0answers
222 views

Missing file crti.o when compiling GCC-9.2.0

On Fedora 30 --> compiling GCC-9.2.0. I find solutions to similar problems, but not exactly the same. Some say its a bug. First errors come when preparing for compilation with ../configure --target=$...
0
votes
1answer
42 views

LFS 7.8 - Pass1 GCC 5.2.0 error in 'make'

I am working on LFS 7.8. In Pass1 GCC 5.2.0 compilation there is an error in 'make' : configure: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libvtv': configure: error: C compiler ...
-1
votes
1answer
28 views

macOS as host for LFS - good idea or not?

So I have a hackintosh with macOS Catalina and a second SSD I'd like to try build LFS onto. Should I even try following the book from macOS as a host or I'll be better off using some live-usb distro;...
0
votes
0answers
26 views

Stuck at chapter 6.7 of lfs

I have been doing lfs inside vm on my system and through live Ubuntu cd.I am getting core dump or segmenatuon fault in make mrproper step of chapter 6.7.Please can somebody help on what to do..since I ...
0
votes
0answers
16 views

Installing Linux-3.19 API Headers in LFS giving error

I am on chapter 6 of LFS and it is giving such error. Please help me figure out what i am doing wrong.P.S i have entered chroot.
0
votes
1answer
528 views

LFS 6.7 /bin/sh Command not found

Im building LFS 9.0 and have reached chapter 6.7. When running make mrproper I get the output: make: /bin/sh: Command not found ...(above repeated ~20 times)... make: /bin/sh: Command not found ...
2
votes
0answers
132 views

Error compiling bc: cannot find libreadline.so.8

I am following the Linux from Scratch book, Version 8.4 and am stuck on compiling bc (Chapter 6.15). I have copied and pasted the commands on that page up to the make command, but when I run make, I ...
3
votes
1answer
696 views

How can I copy text from Links (webpage) to the console?

I have been building a Linux From Scratch system and I have installed the Links web browser on it, which I am running in graphical mode via DirectFB (I have not yet installed the X Window System). I ...
0
votes
0answers
121 views

BLFS-8.3 - PulseAudio - No sound problem

I am getting stuck in the configuration for PulseAudio. I compiled and installed PulseAudio normally without any issue, but the system had no sound. Tried to delete rm ~/.config/pulse/*, set pacmd set-...
2
votes
1answer
921 views

Eglibc cannot compile suffix of object files while trying to cross compile

I'm currently making my way through Trac's CLFS book. When trying to configure the 32-bit version of EGLIBC-2.15, using the options: BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \ AR="${...
1
vote
0answers
66 views

How to build LLVM/Clang isolated from the host system?

I'm looking for something like the Linux From Scratch process for GCC, but for LLVM/Clang. Linux From Scratch builds an isolated GCC/binutils toolchain, and because of the rather monolithic nature, `...
0
votes
1answer
183 views

Failed sanity check at LFS 5.7.Glibc-2.29

I want to cross-compile LFS on CentOS v. 7.6.1810 with no sudo rights (I want to customize my environment on server). One problem is that globally a lot of packages are outdated (for instance, python ...
2
votes
0answers
119 views

Why does gcc need to the --with-newlib flag when bootstraping for LFS?

When building the first pass of GCC in Linux From Scratch, it says to pass the --with-newlib flag because "Since a working C library is not yet available, this ensures that the inhibit_libc ...
1
vote
0answers
217 views

why does exec env -i /bin/bash in .bash_profile go to background and exit when logging in via su - on arch?

I am following the LFS book and trying to get a clean shell using the following .bash_profile in arch (bash 5): exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash What this usually does is ...
1
vote
0answers
135 views

LFS-6.25. Attr-2.4.48 fails at “make check”

I'm having an issue with Chapter 6.25 version 8.3. I followed the instructions but when I came to the make check part it showed me the output: (lfs chroot) root:/sources/attr-2.4.48# make check ...
3
votes
1answer
255 views

Is Linux from Scratch possible on BSD?

I have a TrueOS installation. I was wondering if it was possible to follow the LFS book on my current system.
6
votes
4answers
9k views

Linux From Scratch: libgmp.la, libmpfr.la, and libmpc.la not found during version-check

I'm trying to build a Linux From Scratch system on my host Linux Mint machine. However, when I run the version-check.sh file, it returns that my system is missing libgmp.la, libmpfr.la, and libmpc.la, ...
1
vote
2answers
545 views

LFS (Linux From Scratch) hard disk partition requirement

I am going through the LFS documentation in order to build my flavor of firmware for our systems. Currently my host machine is Ubuntu 18.10. I have 2 hard drives /dev/sda and /dev/sdb. My Ubuntu ...
1
vote
0answers
81 views

gcc 8.2.0 build fails on LFS v8.3

While building all packages in order every single one of them has succeeded but gcc 8.2.0 build fails. Below is the build error on executing make: msgfmt: error while loading shared libraries: ...
1
vote
0answers
54 views

Display blacking out on boot (Macbook Linux)

(Please note that I am breaking this out as a separate question from this one I asked earlier: How exactly do the Linux display device files work?) I have a Linux From Scratch system that I've built (...
1
vote
1answer
3k views

linux from scratch error “These critical programs are missing or too old: gawk”

I am following "Linux from Scratch" book version 8.0, and I reached section (5.7. Glibc-2.25). When trying to configure glibc I get this error: These critical programs are missing or too old: gawk ...
1
vote
1answer
337 views

Partitioning for Linux From Scratch (LFS)

I'm building the system in VirtualBox with a CentOS 7.5.1804 guest on a Windows 10 host using the v8.2 systemd book (the current is v8.3, but the partitioning content is the same), and I got a little ...
0
votes
1answer
266 views

Using a USB drive as the working drive/partition(s) on which I create Linux From Scratch? [closed]

I'm interested in going through the Linux From Scratch (LFS) book for an under-the-hood Linux learning experience. To do this, one needs an existing host Linux system from which to work. I want to ...
0
votes
1answer
166 views

confused about lfs sources installation

I started to homemode Linux build using LFS book. I came to Part II. - Chapter 5 about "Constracting a Temporary System". I downloaded all needed sources to /mnt/lfs/sources. When i want to start ...
0
votes
2answers
125 views

Problem compiling QT4 in Beyond Linux From Scratch 7.8

I'm using a VirtualBox machine (32 bit) to build BLFS to comply with the Linux Standard Base (all the packages mentioned in the book (http://www.linuxfromscratch.org/blfs/view/7.8/), with required and ...
9
votes
2answers
16k views

Do I only need one swap partition for multiple Linux distros? (and other questions)

I have Linux Mint 14 installed as my only OS. I have one extended partition containing /swap, / and /home, and I have some unallocated space on my drive. I'm guessing that Mint decided to put this ...
1
vote
1answer
458 views

Error when compiling XML-Parser-2.44 with Perl

When trying to perl Makefile.pl XML-Parser-2.44 while chrooted in LFS, I get this error: Checking if your kit is complete... Looks good Warning: prerequisite LWP::UserAgent 0 not found. Have /tools/...
0
votes
2answers
1k views

How to create partitions for using Linux from Scratch [closed]

I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has ...
0
votes
2answers
654 views

Should I use /dev/sda or /dev/sdb in fstab when booting from USB?

I am building Linux from Scratch to put on a usb drive but don’t know if Linux always calls the drive being booted from /dev/sda or not. I have two disks in the system, my SSD which is called /dev/...
2
votes
1answer
13k views

GRUB error- no suitable video mode found

I recently made an LFS and made some changes in GRUB. I added the update-grub command. I'm able to set background color and highlight color. But when I add a custom theme- update-grub gives- ...
1
vote
1answer
439 views

E2fsprogs undefined reference to symbol - LFS

I'm building an LFS system, and I've gotten to this page, but when I run make it says: make[2]: Entering directory '/sources/e2fsprogs-1.42.13/build/e2fsck' LD e2fsck /usr/bin/ld: journal.o: ...
1
vote
0answers
81 views

Cannot install Sed in tools directory, Permission Denied

I am building Linux From Scratch. Here's the error I faced during installation of sed. /tools/bin/install: cannot create regular file '/tools/bin/sed': Permission denied Because of this I cannot ...
3
votes
1answer
5k views

How to remove symbolic link from directory in Fedora?

I was trying to create symbolic link to directory in Fedora. $ sudo ln -sv $LFS/tools Then this error occurs. ln: failed to create symbolic link './tools': File exists How do I remove symbolic ...
0
votes
0answers
225 views

Zlib 1.2.11 Make Check Fails (LFS 8.2, Chapter 6, Section 6.11) [duplicate]

I’m currently following the instructions in chapter 6, finished the build of Glibc successfully, and moved on to Zlib. Went past the configure and make stages smoothly enough, but testing it failed ...
1
vote
2answers
122 views

LFS Troubles - Applying Patch in Section 5.7.1

Apologize in advance if this has been asked before, and if it is very obvious. I'm following the guide pretty literally at this point to get started. The page in question is this: http://...