Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [lfs]

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

1
vote
1answer
43 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.
0
votes
0answers
41 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 ...
-2
votes
0answers
7 views

Change color of chroot prompt in LFS

I am currently building an lfs and am in the 6th chapter. I am using ssh and a remote droplet for making the lfs. I have a tiny problem that while i am in the chroot environment, the prompt color is ...
1
vote
0answers
46 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
31 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
59 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
98 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
124 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
40 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
285 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
93 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/...
1
vote
0answers
188 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
41 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 ...
2
votes
1answer
2k 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
124 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
279 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
2k 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
207 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
211 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
201 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
50 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
95 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
124 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
681 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
24 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
96 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 ...
7
votes
4answers
7k 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
1k 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
300 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
332 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
141 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
345 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
743 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
2k 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
237 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
196 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
185 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 ...
6
votes
1answer
21k views

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

Trying to execute the source command using "lfs" user on ubuntu 14.04 and getting this: root@linux:~/lfs# su lfs - -c "source ~/.bash_profile" bash: cannot set terminal process group (-1): ...
1
vote
1answer
420 views

LFS Linux kernel won't boot - black screen

I've recently completed an LFS build using GRUB-2.03~beta, and I've installed this using UEFI. When I boot linux however, I'm greeted with a black screen. I'm unsure how to debug this as the kernel ...
0
votes
1answer
95 views

Locked out of ssh after mounting bind /dev /run /proc and reboot

I've added the following commands in my /etc/rc.local file to automatically mount kernel's virtual file system, as said on Linux From Scratch (LFS). And rebooted... Sections 6.2.2 Mounting and ...
1
vote
0answers
249 views

LFS 7.10 - why am I getting an error when using make command for expect-5.45

I am trying to compile expect-5.45 for LFS everything works until I use the make command, below is the output of using the make command: gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -...
1
vote
0answers
709 views

Create a UEFI bootable persistent USB Livesystem

After a copple of tries with Ubuntu that failed to be persistent, and the hint to create a fresh question form the community to find I easier. I am try a new attemp. My Goal: A USB stick live ...
1
vote
1answer
575 views

LFS Kernel Panic on first boot

I recently finally finished my build of LinuxFromScratch version 7.9-SYSTEMD. There is one change I had to make from the book. I needed to aquire a patch for the package inettools that caused ...
1
vote
0answers
302 views

Building kernel for BeagleBone Black lead me hdmi problems

I have successfully followed CLFS book to build RPi and BBB embedded systems. In RPi case the bootloader did not give me problems with device tree. Some years ago I would have to patch Torvalds' ...
0
votes
1answer
944 views

GCC 5.1.0 fails to compile following the LFS guide — pass 2; linking errors?

I'm trying to follow the LFS guide for compiling the GCC 5.1 with binutils 5.25 and glibc 2.21 and the process fails when reaching the "gcc pass 2" step giving me the error: ld: /tools/lib/../lib64/...
1
vote
0answers
252 views

Auto-detect video card driver

I've recently made a Linux From Scratch with Kernel 4.5.0 on virtualbox. In the /etc/X11/xorg.conf I have listed my video driver as vesa However when I boot into the live session in my laptop, the ...
1
vote
1answer
1k views

Bash script to change password in chroot

I have build a Linux From Scratch live CD and wrote an installer script for it. There is a step in that script in which I take an username and password from the user and create an user. The installed ...
0
votes
1answer
359 views

Install Linux From Live CD

I have made a Linux From Scratch and built a live CD from it. I also wrote a script in /usr/sbin named install-lfs. When I want to install Linux, I just have to open a terminal in the live session and ...
1
vote
1answer
10k 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- ...
0
votes
1answer
132 views

Possible problems deleting /tools in LFS

I recently made a Linux From Scratch and now I want to delete the /tools directory. But before rushing through it, I ran ldd /bin/* | grep '/tools' Which gave me this liblzma.so.5 => /tools/lib/...