Questions tagged [linux-from-scratch]

Linux From Scratch (LFS) provides step-by-step instructions for building a custom Linux system from source. Do not confuse this tag with the git-lfs tag.

linux-from-scratch
Filter by
Sorted by
Tagged with
0 votes
0 answers
33 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
  • 50
0 votes
0 answers
63 views

Using LFS files from github to be pushed through a jenkins pipeline for a lambda function

We have this lambda function in place in SB2 and Prod. The issue the deployment package in Prod differs from SB2. I have a work around to be able to do some testing in SB2 but when i try to push that ...
Fatima Ali's user avatar
0 votes
1 answer
975 views

Cross Compiling GLIBC fro x86_64 from aarch64 Missing asm/prctl.h

I'm Attempting to do Linux From Scratch on aarch64 compiling for amd64, Everything is going smooth until I got this error running make -j1 for GLIBC Chapter 5.5 I've tried everything and I couldn't ...
Humzaa Omar's user avatar
0 votes
1 answer
199 views

error: invalid initializer va_list ap2 = va_arg(ap, va_list);

I'm currently in chroot building LFS. I was trying to compile a legacy project called install-log but I get this error: (lfs chroot) root:/src/install-log# make install cc -MMD -c -o list.o list.c In ...
umar's user avatar
  • 25
0 votes
1 answer
169 views

LFS binutils ../../gold/gold.h:29:10: fatal error: cstddef: No such file or directory

I'm working on LFS(11.0) for the first time When installing the package binutils (https://www.linuxfromscratch.org/lfs/view/stable/chapter08/binutils.html) (lfs chroot) root:/sources/binutils-2.37# ...
user5844653's user avatar
0 votes
0 answers
298 views

I'm curious about the directory layout in LFS. Why can't we use lib64 as the default directory in LFS if LFS is a pure 64 bit system?

In Linux From Scratch during the 1st pass of GCC we have a case command that changes -m64 to ../lib instead of lib64. I am aware that this patch is to eliminate a compile time error but why can't we ...
glawman's user avatar
0 votes
1 answer
185 views

Gnome-Shell: undefined symbol: gvc_channel_map_get_type

I am trying to compile Gnome-Shell-40.5 on my LinuxFromScratch box, but keeping getting the following error: /usr/src/gnome-shell-40.5/build/tmp-introspectr58mnoox/Gvc-1.0: symbol lookup error: /usr/...
Luc's user avatar
  • 1
0 votes
1 answer
88 views

Unknowingly skipping a step in lfs

I am working on lfs. And now I have entered chroot and I have completed section 7.6 of lfs version 10.1. But the problem is that I have skipped building sed in 6.14. And I cant do the step in section ...
amir mousawi's user avatar
0 votes
0 answers
1k views

Error concerning an " undefined reference to `__dso_handle' " when complinging Glibc

I am working on a Linux from Scratch system for the first time. Background Info: Book version - 10.1 Host distrobution - EndeavorOS Problem occurs in step 5.5.1 https://www.linuxfromscratch.org/lfs/...
Lukas's user avatar
  • 17
0 votes
0 answers
826 views

LFS error These critical programs are missing or too old: make while compiling glibc

I am following the LFS guide and I am on this step http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html . Every time I am compiling glibc-2.33, during the ./configure process I get ...
Dhrxv's user avatar
  • 22
0 votes
1 answer
165 views

How to reduce (or optimize) size of recently built LFS?

As the title shows, I've recently built an LFS (version 8.3), with jhalfs. So with du -h, the size of the whole partition is about 4.5 GB (I've already deleted all the files in /sources). Executing ...
Youssef Slassi's user avatar
0 votes
1 answer
787 views

Mouse and Keyboard not working in XWindows

I have an LFS v10 environment that is SystemV based. I'm in the process of improving it by adding XWindows to it. When I run startx, XWindows starts up, and I see the a few programs/Windows that ...
user937371's user avatar
0 votes
0 answers
35 views

LFS why install glibc twice [duplicate]

I followed the LFS's insturctions and all of it seems to work properly yet. But i got confused when it comes to the second time of installation of the glibc after entering the chroot environment. My ...
juicyliberty's user avatar
0 votes
0 answers
106 views

Need help on LFS-7.10 Pass2 binutils configure error

I have been working on resolving issues in build scripts that were built based on LFS a few years back. I tried over the last week and tried multiple versions and solutions from different sites. ...
vijay's user avatar
  • 59
0 votes
1 answer
443 views

("Solved")LFS QT4 (4.8.7) Install Fails at "dialogs/qprintdialog_unix.cpp"

I have been following the blfs guide on KDE and I needed QT4 for one of the dependencies of "KDE-Baseapps". Running: ./configure -prefix $QT4PREFIX \ -sysconfdir /etc/xdg \ -confirm-license \...
Spatialflunky1's user avatar
0 votes
0 answers
173 views

LFS 9.1, step 6.9 (glibc-2.31) , breaks gcc

I'm stuck os step 6.9 of LFS. After launching make, the following command breaks gcc functionality case $(uname -m) in i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;; x86_64) ln -sfnv $PWD/elf/ld-...
Maurizio Ferreira's user avatar
0 votes
0 answers
625 views

LFS: 9.1 - 6.10 readelf missing libdebuginfod.so.1

First time building LFS, I managed to get to the 6th chapter, but am stuck on the check for the second toolchain, after running gcc -dumpspecs | sed -e 's@/tools@@g' \ -e '/\*...
soz's user avatar
  • 314
0 votes
1 answer
194 views

Linux from scratch: 'tools/include' is not a directory when installing linux-5.5.3 API Headers

I am working on linux from scratch and I am at section 5.6 linux-5.5.3 API Headers. I was able to extract the tar, cd into the new directory, and make. At this point I am inside the linux-5.5.3 ...
atultw's user avatar
  • 989
0 votes
0 answers
204 views

`go run: cannot run non-main package` as Unprivileged User

I'm encountering an error with a recently-compiled golang compiler, but only as an unprivileged user. I'm hoping someone could provide advice on further troubleshooting ideas. As root: $ cd $HOME &...
Micah Henning's user avatar
0 votes
1 answer
170 views

lfs 6.41 XMLParser undefined reference to symbol 'pthread_attr_getstacksize@@GLIBC_2.2.5'

I have an issue while building LFS system, I'm at point 6.41 and I'm building XML:Parser I'm making perl Makefile.PL make make test and then I got /usr/bin/ld: /tools/lib/perl5/5.30.0/x86_64-...
aurelieng2009's user avatar
0 votes
1 answer
2k views

Possible to use WSL2 to build LFS

I am wondering if it is possible for me to use Windows Subsystem Linux 2 (Windows Insider Fast Ring Update) to build a Linux From Scratch? What I am worried about is that I am unable to delete the ...
wesdork's user avatar
0 votes
1 answer
946 views

lfs gcc cannot compile

I am trying to make the gcc according Linux From Scratch. But I meet an error. error screen capture Additonal information that might be of use: 0. lfs manual version 7.7-systemd 1. I am running ...
xiao Wu's user avatar
0 votes
1 answer
535 views

Error in step 5.17.1, installation of Bison of Linux From Scratch

I'm trying to compile Bison to build Linux From Scratch. My host OS is Ubuntu 18.04. Based on the instructions on this webpage, upon entering ./configure --prefix=/tools I eventually get the error ...
ariadnus's user avatar
0 votes
0 answers
138 views

Strange error when compiling lightdm-gtk-greeter-2.0.3.tar.gz

I got the error when compiling lightdm-gtk-greeter-2.0.3.tar.gz as below make[2]: Leaving directory '/sources/lightdm-1.24.0/lightdm-gtk-greeter-2.0.3/po' Making all in src make[2]: Entering ...
xuanloctn's user avatar
0 votes
0 answers
454 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 ...
tyler7410's user avatar
0 votes
0 answers
84 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: ...
ba11b0y's user avatar
  • 171
0 votes
1 answer
339 views

Mesa-18.1.6 'c compiler cannot create executables'

so I have been trying to compile Mesa on BLFS 8.3 to no avail, and I am having issues trying to figure out what seems to be the issue. I am not quite understanding why it will not compile, when gcc is ...
thealexvond's user avatar
0 votes
0 answers
637 views

lfs gcc-7.3.0 -Pass 2 error C cannot create executables

I am currently trying to make my first linux from scratch(lfs) build, I need to make the GCC-7.3.0 - pass 2 but the output of the ../configure step of the book(Chapter 5.10) give me an error. All the ...
electriclife's user avatar
0 votes
1 answer
464 views

Boot from docker volume

I'm trying to build Linux From Scratch in docker. It expects a mounted volume on which it'll build a system you can boot from, so my plan was to attach a docker volume to a normal docker ubuntu ...
Adrian May's user avatar
  • 2,142
0 votes
1 answer
160 views

"not running as user lfs, you should be" error

Description Trying to install pilfs (the LFS for raspberry) on my raspberry pi 3. I'm following the guide as posted here: http://www.intestinate.com/pilfs/guide.html I'm currently following their "...
kemicofa ghost's user avatar
0 votes
1 answer
479 views

Issue while compiling gcc-5.2.0

I am trying to build my own lfs system for Raspberry PI 2. As a part of it I am trying to compile gcc on Raspberry PI 2, with raspbian as a base operating system. I could build the binutils using ...
Xinus's user avatar
  • 30k
0 votes
1 answer
820 views

LFS:coreutils compile error

help2man: can't get --help' info from man/cp.td/cp Try--no-discard-stderr' if option outputs to stderr Makefile:14066: recipe for target 'man/cp.1' failed make[2]: * [man/cp.1] Error 127 make[...
Qiansen Yuan's user avatar
0 votes
1 answer
941 views

Understanding LFS environment setup

I have some questions regarding the suggested setup from LFS. Question: what is this command really doing cat > ~/.bash_profile << "EOF" exec env -i HOME=$HOME TERM=$TERM PS1='\u:\...
BluePython's user avatar
  • 1,587
0 votes
1 answer
157 views

Why using mke2fs -j creates ext3 in Ubuntu?

-j Creates the filesystem with an ext3 journal. Why not an ext4?
BluePython's user avatar
  • 1,587
0 votes
0 answers
600 views

java awt text input do not editable in LFS linux

After done a LFS(linuxfromscratch) system, I has 2 problems with input, some applications like google docs (presentations edit in browsers) and some java apps apparently do not recognize the keyboard ...
ton's user avatar
  • 4,147
0 votes
1 answer
3k views

LFS 7.1 in Ubuntu 10.04 chroot: failed to run command `/tools/bin/env': No such file or directory

I create LFS 7.1 in Ubuntu 12.04 but with the problem happened in chapter 6.4:Entering the Chroot Environment. I execute the command: chroot "$LFS" /tools/bin/env -i \ HOME=/root TERM="$TERM" ...
cofol1986's user avatar
0 votes
1 answer
2k views

Why my cross compiler toolchain not static link?

I want to build my cross compile tool chain, I build it successful. It can use normally, but when I move it, it cannot work!! It print error while loading shared libraries: libcloog-isl.so.3, ...
user1559216's user avatar
-1 votes
2 answers
3k views

Boot partition type to use for a GPT partition table [closed]

I am creating a new LFS Linux build for my home Raspberry Pi system. I want to create a separate boot partition for the same. I am using a GPT partition table. While creating the new partition using ...
Xinus's user avatar
  • 30k
-1 votes
1 answer
421 views

Installing VM NIC with Intel diver e1000

I have installed Ubuntu Linux image in a VMware virtual box. Then I added three NIC interfaces. They all have Intel e1000 as the driver when I validated with ethtool command. Then I installed another ...
vijay's user avatar
  • 59
-1 votes
1 answer
511 views

creation of OS image in iso format

I want to create an OS image as an iso, so I can use my LFS system as a guest in a VM. What is the right way to do this? Thanks in advance.
crazyDelight's user avatar
-1 votes
2 answers
2k views

How do I get an initrd made out of a cpio archive loaded as the root device by grub2 in a distro-agnostic way?

I'm building an LFS (Linux From Scratch) system in a VM and so far I've managed to get a workable, desktop system, booting from a known device, /dev/sda1 in my case. I'm now trying to make a live ...
Jamie Ramone's user avatar
-1 votes
1 answer
2k views

How can i change yacc to bison (LFS)

I'm currently working on LFS, and have to change yacc to bison. I have tried to install bison, but it did not change anything. this is what i have : /usr/bin/yacc -> /etc/alternatives/yacc and this ...
Lukas.S's user avatar
  • 41
-1 votes
1 answer
992 views

missing gd.h header error while building iso via LFS 7.5

I am trying to build centos6 based iso via LFS 7.5 technique. While preparing glibc for compilation (page 38) i am getting error( log at link) "fatal error: gd.h no such file ..." , though the header ...
puneet336's user avatar
  • 433
-1 votes
1 answer
135 views

Can we create Custom Operating system that supports any application? [closed]

Can I create a custom operating system that supports both Windows and Linux applications? How can I do that and what knowledge should I have? Is this a good start? Thanks.
gabriel's user avatar
  • 255
-2 votes
1 answer
428 views

Lfs 8.4 ch8. 3 : kernel config fail [closed]

I am currently following the book Linux From Scratch v8.4, i am at the kernel configuration part, part 8.3, and when i run make defconfig or make menuconfig, i have this error: ... YACC scripts/...
Stephane's user avatar
  • 153
-3 votes
2 answers
2k views

Terminal only shows $

I tried building my own linux distribution and I follow the Linux From Scratch book. When I tried entering the following commands in bashrc. set +h umask 022 LFS=/mnt/lfs LC_ALL=POSIX PATH=/tools/...
abinesh s's user avatar

1 2
3