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
35 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....
1
vote
0answers
40 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
24 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
22 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
19 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
220 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
81 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
87 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
49 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
129 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
46 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 ...
0
votes
0answers
27 views

gcc pass 1 looking for libc libraries

I'm attempting to build LFS. I'm currently on step 5.5.1 checking for C compiler default output file name... configure: error: in `/home/ubuntu/linux-toolchain/src/gcc-8.2.0/build/intl': configure: ...
1
vote
0answers
129 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
174 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
316 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
74 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
43 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
108 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
257 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
377 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
126 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
841 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
421 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
466 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
66 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
3k 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
193 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
406 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
3k 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
309 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
340 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
279 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
61 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
116 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
193 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
112 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 ...
8
votes
4answers
10k 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
407 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
423 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 (...
0
votes
1answer
210 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 ...
-2
votes
2answers
527 views

Error when chrooting with LFS [closed]

When I attempt to chroot in chapter 6.4 with this code: chroot "$LFS" /tools/bin/env -i \ HOME=/root \ TERM="$TERM" \ PS1='\u:\w\$ ' \ PATH=/bin:/...
1
vote
1answer
951 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 ...
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
302 views

Why do we need to change root (chroot) to continue building my Linux system in LFS?

Why do we need to change root (chroot) to continue building my Linux system in LFS starting chapter 6? In chapter 5, we built all the tools using the host system, I understand that all the compilers ...
1
vote
2answers
248 views

Why LFS and CLFS change the path used to find the dynamic linker?

Both LFS and CLFS apply patches to the GCC source before building. The CLFS patches are a bit more involved than the LFS patches, but what they have in common is the changing of the path used to find ...
0
votes
1answer
221 views

Linux From Scratch 7.10 issue, EFI partition

Just a little background information, I am taking a Unix II course, instructor being Bruce Dubbs, the managing editor for the LFS.org project. I am building LFS in a Debian 8.6 host for a Unix II ...