Skip to main content

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
1 answer
16 views

LFS booting EFI in macbook pro 2014

I am trying to build linux from scratch (LFS) as an educational project using the main LFS book version 12.1, however, whene i reach the bottable chapter, i found that i have to boot my LFS using EFI ...
user943998's user avatar
0 votes
0 answers
20 views

Compile Failed of gcc 13.2.0 of lfs version 12.1

When i fellow the command of the lfs book 12.1 i chapter 5 to compile gcc 13.2.0 , i got the error. Supported LTO compression algorithms: zlib gcc version 13.2.0 (GCC) configure:3560: $? = 0 ...
Kyrie Cheng's user avatar
0 votes
0 answers
27 views

Cannot install working grub on LFS Linux

I have been trying to install grub for my LSF Linux but I feel a bit lost. That is because every time I install it (no errors shown) it doesn't boot my os but grub rescue shell. I tried searching for ...
Crazegi Contact's user avatar
0 votes
0 answers
42 views

Linux From Scratch 12.1 GCC testsuite failing and timing out

I'm currently building Linux From Scratch 12.1 with the book, I've followed the instructions line by line. I'm struggling with the GCC testsuite, I have lots of FAIL and timeout. In addition to that, ...
noxen's user avatar
  • 1
0 votes
0 answers
55 views

Can’t boot into LFS using GRUB

I have made LFS.  But unfortunately, when I installed GRUB, I got an error that said ext2 system isn’t supported.  But I added --force into grub-install --force /dev/sda and it installed, so I tried ...
Crazegi Contact's user avatar
0 votes
1 answer
94 views

Git LFS doesn't work anymore with our Yocto: git doesn't fetch "large files" since we upgraded our tools

Git LFS doesn't work anymore with Yocto: git doesn't fetch "large files" since we upgraded our tools to these versions: Yocto kirkstone gitlab 16.7.3 and gitlab 16.8 git version 2.34.1 git-...
Jean-Loup Sabatier's user avatar
0 votes
0 answers
209 views

LFS libstdc failed - make: *** No targets specified and no makefile found. Stop

I am on chapter 5 of LFS. I am trying to compile LibSTDC. After cd'ing into the build directory I created and running: ../libstdc++-v3/configure \ --host=$LFS_TGT \ --build=$(../config.guess) \ --...
lfsthrowaway's user avatar
0 votes
1 answer
727 views

LFS Chapter 5.5 - Installing Glibc - cannot find /lib64/ld-linux-x86-64.so.2 inside /mnt/lfs

For some background, everything related to LFS has worked so far. After make-installing glibc, I ran these commands to sanity check: echo 'int main(){}' | $LFS_TGT-gcc -xc - readelf -l a.out | grep ld-...
lfsthrowaway's user avatar
0 votes
1 answer
1k views

Grub Install x86_64-efi doesn't exist - LFS

I've been following along with the stable systemd Linux from Scratch and have got to the final chapter where we configure grub to make the system bootable. So I've run grub-install /dev/sda1 (/dev/...
ScottishTapWater's user avatar
0 votes
0 answers
31 views

Beyond Linux from scratch 11.3 p11-kit not installing using Freebl library

I am going through the BLFS manual. I installed p11-kit-0.24.1 successfully. I then went on to install NSS-3.88.1 also successfully. When I went back to install p11-kit to make use of NSS, ninja ...
jrima12's user avatar
0 votes
0 answers
165 views

Generate ISO based on LFS image disk file

After finish building a LFS system, installed on a IMG file (system.img) and being able to run the system with qemu with the command: qemu-system-x86_64 -hda system.img -vga std -m 4G I want now ...
Kleber Mota's user avatar
3 votes
1 answer
26k views

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)

I have created a image file with this commands: dd if=/dev/zero of=linux.img bs=16M count=1024 cfdisk linux.img mkfs.ext4 linux.img and installed a linux system following the instructions from the ...
Kleber Mota's user avatar
0 votes
0 answers
165 views

rtw8822 firware does not load for custom kernel

Hi I am building Linux From Scratch, I managed to get a working linux! but now I cannot get wlan0 working. When I boot ubuntu I can see the wifi is rtw8822be, so I enabled it in .config, recompiled ...
exebook's user avatar
  • 202
2 votes
1 answer
77 views

Bash stopped working after touching some files, can I recover from it? (LFS)

I am doing as a project for my university; the first phase is to build LFS with some extras; the last requirement I have to meet is to show the prompt, and there I found that I still had to do all the ...
Joan Casals's user avatar
1 vote
1 answer
809 views

Unable to mount root filesystem in LFS

Lately, I've been building an LFS [Linux From Scratch] system for my Raspberry Pi Single Board Computer, and I'm currently on the very last step. I'm attempting to compile Linux 5.19.2 from the ...
rando's user avatar
  • 125
0 votes
1 answer
753 views

Black screen when loading linux kernel on laptop

I built the linux kernel in LFS and grub works, but when I load the linux kernel the screen just becomes black and nothing happens after that. What should I do? Im on a laptop btw if that matters. ...
IPmanfkawde's user avatar
1 vote
1 answer
303 views

EFI won't load linux kernel in LFS

Lately, I've been building an LFS [Linux From Scratch] system for my Raspberry Pi Single Board Computer, and I'm currently on the very last step. I'm attempting to compile Linux 5.15 from the ...
rando's user avatar
  • 125
0 votes
1 answer
1k views

Why pass "--prefix=/usr" to configure scripts in Linux from Scratch builds?

Why in Linux from scratch they are passing --prefix=/usr to configure scripts? For example here is the glibc configure script ../configure \ --prefix=/usr ...
IPmanfkawde's user avatar
1 vote
0 answers
120 views

Testing gcc command in Linux From Scratch?

Linux From Scratch tells me to run these commands to test that the new toolchain is working: echo 'int main(){}' | gcc -xc - readelf -l a.out | grep ld-linux So since I am testing the new toolchain, ...
IPmanfkawde's user avatar
3 votes
2 answers
186 views

How are binary packages isolated from host system?

How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system? In the LFS project, to isolate the new ...
C. Lang's user avatar
  • 133
1 vote
0 answers
131 views

Reinstalling Windows 11 after LFS 11.2 has been built

I have my Product ID ready at hand. So, how would I install Windows 11 Home after I build LFS 11.2? I haven't started building yet... since I needed to be prepared for installing Windows 11 without ...
Aarav Gupta's user avatar
0 votes
1 answer
73 views

Error with Systemd in LFS

LFS version: 11.0-systemd Host: Ubuntu20.04 Chapter in which the problem occurred: 9.5 Commands executed: timedatectl set-local-rtc 1 Error log: System has not been booted with systemd as init system (...
Anzu's user avatar
  • 1
0 votes
1 answer
8k views

GRUB2: error: disk `(hd0,)' not found

I had almost finished Linux From Scratch ; However, when I tried to started the new LFS system. GRUB couldn't launch the system: error: disk `(hd0,)' not found. Then I used grub> ls Output: (hd0) ...
user avatar
0 votes
0 answers
461 views

Linux from Scratch 11.1 Systemd edition: ERROR: Dependency "mount" not found, tried pkgconfig

So when I tried to install systemd-250 with LFS 11.1 systemd edition, it threw an error. Not much I can give, except the logs, and the fact that when I typed in the 'mount' command in the LFS chroot, ...
Aarav Gupta's user avatar
0 votes
0 answers
335 views

Linux from Scratch - readline-8.1.2 throwing an error

I was on my way with installing Linux from Scratch, when I was told to compile and install readline-8.1.2, in chapter 8.11, in LFS 11.1 systemd edition. I then went and got some old versions of ...
Aarav Gupta's user avatar
0 votes
1 answer
498 views

Sfdisk NVME issue, No such device or address

I have custom LFS installer which contains sfdisk, I am trying to add support for NVME disks on it. When I make partitions with sfdisk on a normal SATA disk, things go as expected but when I do the ...
Bart's user avatar
  • 101
1 vote
1 answer
146 views

Has the Debian kernel been modified and Linux From Scratch FAQ not been updated?

I was building an LFS (Linux From Scratch) system, and up until now, there have been absolutely no errors. However, when installing the "expect" package, make test errored out with:The ...
rando's user avatar
  • 125
0 votes
2 answers
531 views

How to Create ISO / Installation Image from Our Own LFS(Linux From Scratch) Operating System in Qemu? I want to Make my Qemu.qcow2 image my Host OS

I want to ask how to create an ISO, my OS is made with LFS 11.0 System V and I install it in Qemu. My Host OS is CAELinux. The main concern is: Is it possible to move the LFS OS installed in Qemu to ...
Freya the Goddess's user avatar
0 votes
1 answer
669 views

Auto detect network interface card, network init.d

I have build my LFS linux that based in this book, it's working fine and network interface card is working. Even it's configuring IP automatically with using dhcpcd service. According chapter 9 in ...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
675 views

Linux From Scratch/LFS 11.0 Systemd kernel boots to black screen

I have a new build of LFS 11.0-systemd on a bare metal Thinkpad X250. Everything is compiled and setup with Fedora 36 as the host system. I'm using BIOS boot mode. The system boots to GRUB, but when I ...
pants_towel's user avatar
0 votes
1 answer
969 views

annoying clocksource alert/warning in bash prompt periodically

So I just build LFS system and it's working fine, but the annoying part is there's alert that every periode show like every 3 second. It said root@LFS:# clocksource: timekeeping watchdog on CPU0: ...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
167 views

Perform backup (and restore) from my current LFS (Linux From Scratch) progress with dd command

I have my LFS proyek, currently I'm in chapter 10 so far according this book https://www.linuxfromscratch.org/lfs/view/stable/chapter10/grub.html . I want to perform backup of my LFS progress so if ...
Muhammad Ikhwan Perwira's user avatar
0 votes
2 answers
16k views

checking whether the C compiler works... no

I'm trying to build Linux From Scratch (LFS) I'm just following this books https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html I have this error after I run ./configure in eudev ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
266 views

Make a virtualbox hard drive from virtual block device

I'm trying to create LFS (linux from scratch) but copying to usb is so slow so I created a virtual disk file of 3GB using created partition and formatted to ext4. sudo dd if=/dev/zero of=./lfs.img bs=...
Vaibhav.c's user avatar
  • 133
0 votes
1 answer
548 views

Linux From Scratch 11 can not verify any SSL certificates

I have built an LFS 11.0 system and installed wget from the BLFS book. I also have openssl and gnutls installed, but whenever do wget for a site with ssl, it says it can't verify the cert. It does ...
Matthias Lee's user avatar
1 vote
1 answer
336 views

Install GRUB on LFS USB drive

I have built a Linux From Scratch system onto a flash drive with the kernel and everything. When I boot into it via the GRUB instance on the host computer's hard drive, it works fine. I would like to ...
Matthias Lee's user avatar
0 votes
0 answers
204 views

LFS Chapter 3.1 zsh: command not found: wget

Hi I am making LFS on Black Arch VM. I am currently at Chapter 3.1 I ran command wget https://www.linuxfromscratch.org/lfs/view/11.0/wget-list But I got error zsh: command not found: wget. I run ...
Leviathan's user avatar
  • 113
1 vote
1 answer
1k views

Kernel cannot find init

I am learning to build a linux from scratch systemd edition, following the instructions at https://www.linuxfromscratch.org/lfs/view/stable-systemd/index.html on VirtualBox 6.1 but when I was booting ...
luanphm's user avatar
  • 21
0 votes
1 answer
184 views

LFS chapter 5.2. Binutils-2.37 problem

Hi I am currently making LFS and I am in Chapter 5.2. And I am trying to run this command lfs:/mnt/lfs/sources$ tar -xvf binutils-2.36.1.tar.xz But it gave me the following output: tar: binutils-2.36....
Leviathan's user avatar
0 votes
0 answers
69 views

Chapter 3 Packages and patches virtual box problems

I am making LFS I am curently at packages and patches. I ran command pushd $LFS/sources md5sum -c md5sums popd and it gave me pushd $LFS/sources md5sum -c md5sums popd /sources /sources acl-2.3.1....
Leviathan's user avatar
0 votes
1 answer
141 views

How to create mkfs for LFS? [closed]

I am trying to run following command mkfs -v -t ext4 /dev/sda1 to create file system but I got an output /dev/sda1 is apparently in use by the system; will not make a filesystem here!. How can I ...
Leviathan's user avatar
  • 113
0 votes
0 answers
1k views

Glibc 2.34 cross-compiling issue for aarch64 on x86_64

aarch64-linux-gnueabihf-gcc ../sysdeps/gnu/getutmpx.c -c -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -...
James's user avatar
  • 101
-1 votes
2 answers
334 views

reliable way to find added/modified files by make install

i was about to ask this question yesterday and when i hit the review button, the "similar questions" window has been modified to show me this one: How to find out which files get installed ...
folen gateis's user avatar
0 votes
1 answer
1k views

When configuring Glibc prior to compiling it I recieve an error concerning kernel headers telling me to use "--with-headers"

I am using the latest stable Linux from Scratch book version. In Step 5.5.1, when configuring Glibc I run the provided script, and receive an error telling me to use the --with-headers configure ...
Lukas's user avatar
  • 57
0 votes
0 answers
173 views

Can I use an extra 'etc' folder inside /usr in linux?

I'm experimenting with linux from scratch. I'm using stow to install extra packages into /usr/local/stow/. I'm using the command stow <package dir> -t /usr which symlinks everythin to /usr/bin, /...
Jonathan Wick's user avatar
1 vote
1 answer
426 views

I am building an LFS system for the first time. Should the Grub Bios Partition be primary or extended?

I'd assume it would be primary, but I'd prefer to be sure before beginning. Many thanks in advance.
Lukas's user avatar
  • 57
0 votes
0 answers
181 views

How to configure LFS for multilib support?

I managed to install FLS pure 64-bit, but i want to "upgrade it" so it supports 32-bit also. I don't want to build LFS from ground up again. Is there a way to install multilib support on an ...
George Rabus's user avatar
1 vote
1 answer
574 views

LFS GCC-10.2.0 Pass 2 Fails with source-code error in crtstuff.c

When I'm trying to run Chapter 6.18 of the LFS (with systemd) book, make fails because in the file crtstuff.c, line 695, there is an undefined reference to __CTOR_END__. This seems like some sort of g+...
Alexander P's user avatar
0 votes
1 answer
62 views

What are you supposed to do for "pass 2" sections in LFS

I'm trying to build an LFS system but I've hit a roadbloack, what am I supposed to do for the 2nd passes. I thought maybe I had to re-untar again then compile their but that didn't make a new ...
Seb Ebse's user avatar
0 votes
1 answer
261 views

compiling bash doesn't work, LFS

I have been following the instructions of the LFS manual so far but have come to an error when making bash, I ran make in the bash-5.1 folder but it displayed an error at the end of the command output:...
Seb Ebse's user avatar