Questions tagged [lfs]

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

56 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
946 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 ...
4
votes
0answers
2k views

NVIDIA GLX is not working under a Optimus Laptop

First I would emphasize that I am using a Linux From Scratch 7.7 Systemd (Now running kernel 3.14.39) I built these two days, so I don't want to touch anything about glibc/gcc and there is no package ...
3
votes
0answers
525 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=$...
2
votes
0answers
208 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
110 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, `...
2
votes
0answers
305 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\" -...
2
votes
1answer
601 views

Pacman(Arch linux) on LFS

Is it possible to have a package manager(in my case pacman) on LFS? Not just compiling it will it work?
2
votes
0answers
342 views

configure port for dhcp request in uboot

We are fetching ip using DHCP in u-boot. we need to send via same interface (eg eth1) every time. but DHCP request sent via any configured interface(eth1/eth2..). How can we configure u-boot to send ...
2
votes
1answer
877 views

LFS 7.5 - Glibc-2.19 compile errors at section 6.9, are they fatal to my LFS build?

I am using a host Ubuntu 14.04 system, and I am currently going through the Linux From Scratch guide here. At section 6.9, http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html, after ...
2
votes
1answer
937 views

Eglibc cannot compile suffix of object files while trying to cross compile

I'm currently making my way through Trac's CLFS book. When trying to configure the 32-bit version of EGLIBC-2.15, using the options: BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \ AR="${...
2
votes
0answers
2k views

libbfd-2.22.so missing while compiling Binutils/Glibc/Zlib

When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error: ar: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such ...
1
vote
0answers
79 views

Linux from scratch moving from VirtualBox to USB drive

I have successfully created Linux from Scratch based distribution in VirtualBox. I have dynamically allocated storage of max size 64 GB, with less than 7 GB space used in the .vdi file, and I want to ...
1
vote
0answers
51 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 ...
1
vote
1answer
82 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
0answers
82 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 ...
1
vote
0answers
300 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
277 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 ...
1
vote
1answer
691 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
214 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
0answers
88 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 ...
1
vote
0answers
578 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
0answers
123 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 ...
1
vote
1answer
543 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 (...
1
vote
1answer
1k 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
725 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 ...
1
vote
0answers
793 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
0answers
342 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' ...
1
vote
0answers
296 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
2answers
139 views

LFS Troubles - Applying Patch in Section 5.7.1

Apologize in advance if this has been asked before, and if it is very obvious. I'm following the guide pretty literally at this point to get started. The page in question is this: http://...
1
vote
1answer
476 views

E2fsprogs undefined reference to symbol - LFS

I'm building an LFS system, and I've gotten to this page, but when I run make it says: make[2]: Entering directory '/sources/e2fsprogs-1.42.13/build/e2fsck' LD e2fsck /usr/bin/ld: journal.o: ...
1
vote
0answers
592 views

Pacman Package manager in LFS

I'm trying to install a Linux From Scratch system. I know LFS doesn't come with a package manager. I want to use pacman as my package manager. I googled bout it and found some links bt they are old, ...
1
vote
1answer
234 views

Can we separate commands in LFS?

I am trying to build a Linux by using Linux from scratch tutorial ,but i can't explain this,when i run multiple command as this step describe: CC=$LFS_TGT-gcc \ AR=$LFS_TGT-ar ...
1
vote
0answers
2k views

Thunar using no thumbnailers except built in fonts and images

Linux From Scratch SVN-20111010 Beyond Linux From Scratch Version 2011-11-16 Xfce4 4.8.0 I can't get any thumbnails in Thunar beyond fonts and basic images. After fighting with this I've gone back ...
1
vote
1answer
514 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/...
0
votes
1answer
38 views

Why can't I view any available networks in linux

I use a custom built Linux distro. When I try to enable wifi I cannot view any existing networks. My wifi card is Intel Wifi link 5100 and the output of lspci -vv is Subsystem: Intel Corporation WiFi ...
0
votes
1answer
44 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
58 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 ...
0
votes
0answers
33 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
31 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 ...
0
votes
0answers
26 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
0answers
34 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
0answers
19 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
0answers
72 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/ ...
0
votes
0answers
56 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. ...
0
votes
0answers
60 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 ...
0
votes
1answer
369 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
72 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
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.