Questions tagged [lfs]

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

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
2
votes
0answers
112 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
105 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
72 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 ...
2
votes
1answer
550 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 ...
2
votes
0answers
290 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
515 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
330 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
833 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
910 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
58 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, `...
1
vote
0answers
170 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
342 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
77 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
49 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
114 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
71 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
343 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
118 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
445 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
575 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
778 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
329 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
274 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
120 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
424 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
531 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
219 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
429 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
0answers
25 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
6 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
21 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
0answers
99 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-...
0
votes
1answer
153 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 ...
0
votes
0answers
39 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: ...
0
votes
1answer
114 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 ...
0
votes
0answers
107 views

KDE Framework 5 buid problem on Beyond Linux From Scratch

I was building KDE Framework 5 according to the BLFS book Version 2016-02-16. The link is here http://linuxfromscratch.org/blfs/view/svn/kde/krameworks5.html But the build process stoppd at ...
0
votes
0answers
93 views

Xterm and User problem on Linux From Scratch

I made a linux system using LFS book 7.8 and then went to BLFS 7.8. I installed lxdm and xfce4 desktop. All the necessary drivers and libraries are installed. Now when I log in as root, I get no ...
0
votes
1answer
693 views

Error while compiling “5.9. Binutils-2.25 - Pass 2 ”

When I try to build binutils, I get the following error make[1]: *** [configure-bfd] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/binutils-build' make: *** [all] Error 2 Here is the full ...
0
votes
2answers
116 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 ...