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
27 views

Keyboard & mouse not responding in X11 / XWindows

I’ve built a Linux from Scratch (LFS) instance. It is based on version 10 of LFS, it is SystemV based. I’ve been working on getting XWindows working. When I run the xinit or startx, XWindows displays ...
0
votes
0answers
43 views

Making current Linux from Scratch installation (on VBox) independent from the host system (CentOS 8) it was created on

As the title says, I've installed LFS sucessfully on VirtualBox, with all system partitions on a separate virtual HDD, and it's booting OK. However, whenever I detach the host system's HDD (A CentOS 8 ...
1
vote
0answers
50 views

No WIFI in BLFS 8.4

I have built the BLFS 8.4 but WIFI doesn't work on it. The boot gives an error message Starting wpa_supplicant on the wlan0 interface...Could not read interface wlan0 flags: No such device Could not ...
0
votes
1answer
33 views

Tar up the whole BLFS system

I have successfully installed BLFS 8.4 and now I want to transfer it to another machine. Would it work if I tar up the whole BLFS system and then untar it on an empty partition on another machine? If ...
0
votes
0answers
28 views

Is there any package manager for BLFS?

I have successfully installed BLFS 8.4 and now I want to install a package manager to keep my system up to date. I want to know if it's possible and how.
0
votes
0answers
29 views

How to make an iso of BLFS 8.4 to distribute

I have successfully created BLFS 8.4 and now I want to make its iso file so that I can transfer it to my other laptop like any other Linux distribution such as Ubuntu, Mint, Manjaro, etc. is installed ...
1
vote
1answer
96 views

No sound in LFS

I'm trying to install BLFS 8.4 I have successfully installed alsa-lib and alsa-utilities, the alsa-mixer also works fine. My sound card is "HDA Intel". speaker-test also works but gives an ...
0
votes
0answers
25 views

Optional packages in LFS ( do I need to install a package again after I install an optional package later? )

I am building BLFS 8.4 If I install an optional package later, then do I need to install all the previous packages again so that they can take the benefit of the optional package?
0
votes
1answer
35 views

Error while installing slang-2.3.2

Error while installing slang-2.3.2 I am trying to build BLFS 8.4 An error occurs while installing slang. This is the configuration, make and installing script: ./configure --prefix=/usr \ -...
1
vote
1answer
58 views

configure: error: libmpfr not found or uses a different ABI (including static vs shared)

Heyo all, I've recently been working on a small side project regarding a custom Linux distro, not with the LFS instructions. Currently, I'm compiling a cross-compiler for gcc. Anyways, I get this ...
1
vote
2answers
35 views

Packages cannot locate QT5 (BLFS 8.4)

I'm trying to install BLFS 8.4 I've installed QT5 but somehow other packages that need QT5 cannot find it. E.g. while installing highlight, after the command make gui, it says qmake command not found. ...
0
votes
0answers
29 views

Kernel Panic due to root partition on SSD not found

I am building an LFS and I use this .config for building the kernel. I have a HDD and SSD(ADATA 8200 PRO) and this LFS resides on a SSD partition. When I boot with parameters ro root=UUID=675d8907-...
0
votes
1answer
39 views

Unable to build Apache-ant-1.10.5

I'm trying to build BLFS 8.4 An error occurs when trying to download the runtime dependencies using the fetch.xml ant build script: bootstrap/bin/ant -f fetch.xml -Ddest=optional Error: BUILD FAILED /...
0
votes
1answer
31 views

CLASSPATH error while configuring JAVA Environment (Java Development Kit)

After installing JAVA(JDK) whenever I reboot the system or switch to normal user a message is displayed: bash: ${AUTO_CLASSPATH_DIR}: invalid variable name bash: ${AUTO_CLASSPATH_DIR}: invalid ...
0
votes
0answers
16 views

Building LFS 8.4 on a separate drive than my host OS

I recently attempted (and failed) at building LFS (linux from scratch) 8.4. The problem ended up being that GRUB wouldn't recongize where the vmlinuz file was. I did some digging and found out that ...
0
votes
1answer
29 views

Installing Packages From Source

I have been trying different Linux distributions lately to learn as much as about Linux. Lately, I have encountered with installing packages from source while trying to learn about the core elements ...
1
vote
1answer
24 views

How do I make chroot run a command?

I have a problem with compiling an LFS system on Linux Mint 20 with Cinnamon. My problem is that when I get to the (third?) pass of Glibc, chroot doesn't let me run any commands, telling me that they ...
0
votes
0answers
50 views

Configure Error While Building LFS

I have encountered a problem while building LFS. On the 8.26 chapter while building gcc I accidentally forgot to press enter after rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/10.2.0/include-fixed/bits/ ...
1
vote
0answers
74 views

I cannot access XFCE when launched via LightDM

As a personal project I decided to start building a Linux From Scratch (System V Edition, 9.1) on a virtual machine. Everything went out correctly until the moment of entering the system through ...
0
votes
1answer
88 views

`chown -Rv tester .` will not change ownership of files

The process keeps saying retained as root when I run chown -Rv tester . How do I make file ownership switch from root to tester? (lfs chroot) root:/sources/gcc-10.2.0/build# chown -Rv tester . 2>&...
0
votes
0answers
51 views

Building Chromium on Linux (from Scratch)

I am trying to build Chromium on a recent version of Linux From Scrath, building LFS/BLFS so far works fine for me, just do not manage to get Chromium working. I need it for specific use. ...
1
vote
1answer
348 views

cfdisk: cannot open /dev/sda

Background Info I am currently trying to build a Linux From Scratch (LFS) partition. This is my first attempt and I'm doing this to challenge myself, but I'm having trouble getting started. I'm using ...
0
votes
1answer
23 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
296 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
44 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
47 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
60 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
1answer
271 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
69 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
73 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
44 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
472 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
59 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
35 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
18 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
802 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
185 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 ...
2
votes
0answers
101 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
215 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 ...
1
vote
0answers
261 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
269 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
392 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
638 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
82 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
63 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
204 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
433 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
712 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
222 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
2k 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 ...