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
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
57 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 ...
-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
50 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 ...
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 ...
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 ...
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-...
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 ...
3
votes
1answer
253 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.
1
vote
1answer
418 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 ...
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
0answers
133 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 ...
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 ...
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 ...
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
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/...
3
votes
1answer
695 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 ...
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
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 ...
0
votes
1answer
4k views

Kernel Panic - not syncing: VFS: Unable to mount root fs - LFS

I have created a LFS (linux from scratch). All the files is on a secondary hdd. ie. /dev/sdb There is no partition in that like sdb1 or sdb2. Both root and boot is in the same /dev/sdb . My host ...
1
vote
0answers
398 views

Changing system wide GCC compilation options such as -DFORTIFY_SOURCE, PIE and stack_protector

This is my first StackExchange question ever, and if it is in the wrong place (UNIX and Linux vs. somewhere like Software Engineering?) please point me right! A very long time ago, I built a system ...
1
vote
1answer
385 views

Do I need a framebuffer driver for a minimal CLI system without X?

I've recently built a Linux From Scratch system on my Apple Macbook laptop; however, I've been struggling to understand the graphics hardware and what kernel driver options I need to enable. The LFS ...
3
votes
1answer
333 views

Linux From Scratch Inside of an LXC Container

Is it possible to build ‘Linux From Scratch’ (LFS) inside of an LXC container, as opposed to creating a dedicated partition per the LFS instructions?
0
votes
1answer
64 views

How best to troubleshoot a source package configure script?

I've been trying to compile the GnuTLS package from source, as part of a BLFS (Linux From Scratch) system. Here is the LFS page for it. I have installed all of the required and recommended packages ...
1
vote
0answers
122 views

Errors during LFS first boot

I just finished building my LFS system, but been running into issues during the first boot. The error that comes up is: hd1 cannot get c/h/s values So a little background: The base machine I used ...
0
votes
1answer
230 views

Why does my System.map file not contain a 'Version_XXXXX' line?

In relation to this question that I asked previously: Linux Kernel: 'Cannot find map file' The System.map file that is being generated by my linux kernel build (4.12.7) does not contain a ...
0
votes
1answer
1k views

Linux Kernel: 'Cannot find map file'

I've been trying to get a Linux kernel to run that I've configured and compiled myself, but so far without success. The machine is an Apple Macbook (Intel Core 2 Duo, 64-bit) that has the free ...
0
votes
1answer
25 views

Is it needed for the server daemon to running so that it could be included as a dependency while building some other package?

I'm making the postfix MTA which depends on some database packages(mariadb, postgresql,...). I'm building on the instructions of Beyond Linux Form Scratch (BLFS) but I fear if it is needed for the ...
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
4answers
11k views

Split string using IFS

I have written a sample script to split the string but it is not working as expected #!/bin/bash IN="One-XX-X-17.0.0" IFS='-' read -r -a ADDR <<< "$IN" for i in "${ADDR[@]}"; do echo "...
2
votes
2answers
2k views

How do I create a proper /etc/fstab file for my LFS partition?

I'm trying to create an appropriate /etc/fstab file for my LFS partition, as in LFS part 8.2. How do I find out the file systems for my / mount-point and my swap mount point ( and )? And how do I ...
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/...
1
vote
1answer
478 views

Setup wifi configurations for Broadcom43142

I'm working on a custom version of Linux distro (more specifically, the LFS project) which means I don't have a package manager and I install packages manually. I try to setup the BCM43142 pci card (...