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
1 vote
1 answer
492 views

building glibc-2.25 error : FAIL: nptl/tst-cond17

I've been reading through LFS while following the instructions till I got to the point where I needed to compile glibc-2.25 for the actual system. After running make check, have encountered the ...
Samy's user avatar
  • 639
1 vote
1 answer
92 views

libsysstat 0.3.3 fails to compile

Problem Following the description at Beyond Linux From Scratch libsysstat 0.3.3 fails to compile. Output Scanning dependencies of target sysstat-qt5_automoc [ 12%] Automatic moc for target sysstat-...
Jan Kruse's user avatar
  • 2,675
1 vote
1 answer
179 views

Building textlive source in BLFS

I am trying to build texlive source in BLFS (Beyond Linux From Scratch). export TEXARCH=$(uname -m | sed -e s/i.86/i386/ -e s/$/-linux/) && mkdir texlive-build && cd texlive-build &...
Techpreneur's user avatar
1 vote
1 answer
315 views

Bash - Linux from scratch, cheching library script

I reading LSF and saw some operation, description one i am not found. Please tell me what this means: lib{gmp,mpfr,mpc}.la Full code listing: cat > library-check.sh << "EOF" #!/bin/bash ...
Abradox's user avatar
  • 117
1 vote
1 answer
1k views

Linux from scratch, Glibc-2.16 make error

I've been closely following commands from 'Linux from scratch' book version 7.2, and as usual everything was fine until i've reached chapter 6.9, and the problem is when I try to install glibc by '...
5m0k3's user avatar
  • 65
1 vote
3 answers
148 views

Compilation issue with Sed 4.2.1

When I try to launch the ./configure command of Sed I get: gawk: ./conf1dkaC9/subs.awk:3: fatal error: internal error ./config.status: line 1409: 7676 Done eval sed \"\$...
E-Kami's user avatar
  • 2,559
1 vote
0 answers
207 views

LFS Fails on step 6.18 with x86_64-lfs-linux-gnu-gcc -dumpspecs > tmp-specs

I'm on 6.18 of LFS. https://linuxfromscratch.org/lfs/view/stable-systemd/chapter06/gcc-pass2.html But I keep getting the error below. g++ -fno-PIE -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -...
Definity's user avatar
  • 722
1 vote
0 answers
3k views

QtWebEngine failed to compile

I'm building Linux From Scratch 10 current stable 64bit. I've gcc-10.2.0. I've successfully installed everything, including Qt5-15.0. I've installed all recommended packages. I followed the guide: ...
Giorgio Napolitano's user avatar
1 vote
0 answers
350 views

GCC Version 10.1.0 failing on compilation of a BUILT IN function call in LFS "Illegal Instruction Internal Compiler Error"

My build is frozen this is figured out. I'm using jhalfs to get started but the issue is most certainly gcc-10.1.0 I get the following error in the make log. The error outwardly says this a gcc thing.....
Loki the great's user avatar
1 vote
0 answers
212 views

Do I really need Python on my Linux system (specifically my LFS one)?

I'm building an LFS system and I'm hoping to deploy the Linux distro I build for a very specific purpose. I won't say what the purpose is, but I purposefully left out Python, among some other packages,...
ioi-xd's user avatar
  • 172
1 vote
1 answer
416 views

Using 'exec' in bash_profile stops login shell

I'm creating the following .bash_profile (from linuxfromscratch guide) for lfs user: exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash When executing su - lfs I get: [1]+ Stopped ...
Christian Teijon's user avatar
1 vote
1 answer
292 views

Tests for libffi fail on LFS

I am working on a Linux From Scratch project and I've run into some (potential) issues. In chapter 6.49: Libffi-3.2.1, I executed the "sed", "configure" and "make" commands successfully but when I ...
BRz's user avatar
  • 85
1 vote
1 answer
392 views

Error when trying to make QTWebKit following Linux From Scratch

I'm trying to install the Plasma 5 KDE desktop and one of the required dependencies is QtWebkit, when I was trying to compile it I got this error. /sources/kde/qtwebkit-opensource-src-5.9.0-...
user avatar
1 vote
0 answers
786 views

Linux from scratch Installation of Cross GCC (recipe for target 'configure-target-libstdc++-v3' failed)

checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. Makefile:10457: recipe for target 'configure-target-libstdc++-v3' failed make[1]: *** [...
ameer sohail's user avatar
1 vote
1 answer
459 views

efivar: cannot find -lpopt

I'm attempting to compile efivars on LFS for UEFI when I get the following output, even after I've compiled libpopt (attempted with and without sed -i -e "s/@MARK64@//" Makefile.am as noted in http://...
cellsheet's user avatar
  • 476
1 vote
1 answer
858 views

LFS custom Linux kernel panics on boot

So I recently finished my own Linux From Scratch build (7.9-SYSTEMD), following the book character for character (did not strip the libraries nor have I removed the unneeded static libraries) and am ...
Caleb Huggins's user avatar
1 vote
0 answers
229 views

how to get Linux kernel 3.18 rc4 main line to use oom_score_adj lib

Not sure if this is two question, but I wanted to start with both here in case they are related. I use a Linux PXE and grub for dos boot in various ways. I have used the same file system adding a few ...
penright's user avatar
  • 163
1 vote
3 answers
229 views

How to use a certain ruby version?

I try to run a script on a LFS Batchsystem. The cluster offers an older version of ruby, so I had to install my gems and rvm locally on my account. Is there a way to run my local installed ruby ...
gadreel's user avatar
  • 207
1 vote
1 answer
2k views

gcc make install error

I try to compile gcc with make install and it gives me this: make[1]: Entering directory `/media/BOSS/sources/gcc-build' /bin/bash ../gcc-4.8.1/mkinstalldirs /tools /tools /bin/bash: line 3: cd: ./...
mymindstorm's user avatar
1 vote
1 answer
1k views

Building LFS - Error at 5.7: Need linker with .init_array/.fini_array support

I am about to build my first Linux from scratch.... I've done everything exactly as it's written in the book - at least i think i did. Now, building the glibc results to the following problem: ...
user2307908's user avatar
1 vote
1 answer
854 views

LFS 7.2 glibc-2.16.0 make error

I'm building an LFS system ( refering to LFS 7.2 ) I got this make error while building glibc-2.16.0: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: ...
AniketGM's user avatar
  • 911
1 vote
0 answers
117 views

LFS v7.2 libc-2.16 error while make

While glibc-2.16 make following error occurred: glibc-build/math/s_modff.os.dt -MT /media/vaibhav/sources/glibc-build/math/s_modff.os ../sysdeps/ieee754/flt-32/s_isnanf.c:37:1: error: 'EI_isnanf' ...
user avatar
1 vote
1 answer
1k views

Permission error in Binutil while "make install"

I'm working on LFS7.2. I'm getting permission error while "make install" the binutil package, but I could successfully able to create folder in all the 3 dir (source,tools,usr) with the user lfs. I ...
Prabhu Are's user avatar
1 vote
0 answers
688 views

Mesa3D Without X

I've spent the past 2 days searching this topic and I haven't found any up-to-date answers. I have a test project that is being based on the latest development LFS (based on Kernel 3.4.1) but without ...
Numsgil's user avatar
  • 11
1 vote
2 answers
1k views

Building Python 3.6.4 on Linux from scratch

I'm trying to build Python 3.6.4 from LFS 8.2-systemd so I run the configure command: ./configure --prefix=/usr \ --enable-shared \ --with-system-expat \ ...
Chr0nos's user avatar
  • 67
1 vote
2 answers
495 views

Linux from scratch error v7.1 ch6.9 Glibc

So i'm trying to configure glibc2.14.1 on a lfs build (step 6.9). i get as far as configuring it when i get the following error: root:/home/glibc-build# ../glibc-2.14.1/configure --prefix=/usr --...
nwnoga's user avatar
  • 575
0 votes
2 answers
928 views

Linux from Scratch 10.2.0 gcc fails [closed]

Hey guys i tried building gcc with Linux from Scratch 10.2.0. I followed the instructions exactly, but the make command throws following Error: checking whether gcc understands -c and -o together... ...
Yonggan's user avatar
  • 140
0 votes
2 answers
248 views

Why Using "< /dev/null" with a program like "bzip2"?

bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,7- I saw this code in the LFS book, what is the purpose of the < /dev/null there? I know < /dev/null is used to prevent ...
PLSmA1's user avatar
  • 23
0 votes
2 answers
4k views

Getting error while compiling Glibc-2.28 on LFS fifth module

Im following LFS 8.3 and at 5th module when i run the configure script of Glibc-2.28 before running make im getting the below error checking for gnumake... no checking for gmake... gmake checking ...
Lijo's user avatar
  • 103
0 votes
2 answers
1k views

How to install wget on LFS system

I am pretty newbie to Linux and started LFS because I needed it for school. So my system is now perfectly running with an internet connection, but I still don't have any packet manager or something. ...
Coco's user avatar
  • 77
0 votes
2 answers
1k views

glibc make fails inside of chroot enviroment

So today I was working on my LFS system using version 7.7 of the stable book. I got to the point where you build the glibc package after doing a chroot into the LFS directory. The package configures ...
Caleb Huggins's user avatar
0 votes
1 answer
614 views

Building glibc from source not compiling ldconfig

I've downloaded, built and installed glibc many times before and all was ok, this time ldconfig binary is not created and hence I am unable to update the /etc/ld.so.cache file correctly leading to a ...
Iharob Al Asimi's user avatar
0 votes
1 answer
6k views

configure error for mpfr-3.1.2 missing libgmp but is is in the /usr/lib

I am on step 6.15.1 on linux from scratch. When I am trying to configure the mpfr I am getting an error ... checking for __gmpz_init in -lgmp... no configure: error: libgmp not found or uses a ...
penright's user avatar
  • 163
0 votes
1 answer
432 views

error in make check of pkg-config of lfs 6.5

I am building LFS based on LFS 6.5 book,in my ubuntu 11.10. I got test suite failed message when installing pkg-config in chapter 6.17. The error is in file pkg-config-0.23/check/common line number 20,...
Raji A C's user avatar
  • 2,331
0 votes
1 answer
1k views

linuxfromscratch: Can't do make menuconfig for linux installing

On this chapter http://www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html root@host# chroot "$LFS" /usr/bin/env -i \ > HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ > PATH=/bin:/...
cola's user avatar
  • 12.3k
0 votes
1 answer
1k views

should we delete the build directories created in LFS for installing binutils-2.20? [closed]

I am in the part ( http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/binutils-pass2.html) ( http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/binutils-pass1.html) they ask ...
Rohan Bojja's user avatar
0 votes
1 answer
26 views

Git lfs already saved file as text - how to change it to binary?

I've already pushed file 'New Terrain.asset' for Unity as text with previous commits. But I've noticed that it is downloaded with error on every project cloning. I've changed manually .gitattribute ...
 homelleon 's user avatar
0 votes
1 answer
213 views

gcc compiles ELF file with wrong search list

After compiling gcc and using it to compile a simple c program: echo 'int main(){}' > dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log grep -B4 '^ /usr/include' dummy.log the result is: ...
wieselchen's user avatar
0 votes
1 answer
1k views

Linux from scratch Segmentation fault error

I am on Section 6.7 trying to install the linux API headers. I cd into the folder /sources/linux-4.12 in my chroot environment. However when I try to run the make mrproper command, I get the error: ...
user2883071's user avatar
0 votes
1 answer
347 views

System crashed during glibc compile, refuses to compile again even after remaking build directory

I am chrooted into the temporary system (/tools). During the compile of glibc (step 6.9 of LFS), my computer unexpectedly shut down. After booting back up, remaking the build directory, running ...
Gradyn Wursten's user avatar
0 votes
1 answer
291 views

Stuck on LFS @ 5.7.1 "Glibc Installation"

I'm trying to build my own LFS system so I can better understand how linux works, but I'm stuck at 5.7.1 where you have to build Glibc. I've already un-tarred it into Sources, and logged into lfs ...
k1tt3hk4t Destroyer of Fish's user avatar
0 votes
1 answer
2k views

shell script - redirect all data from stdout to /dev/null [duplicate]

i use travis-ci to build linux from scratch version 7.8. during build, travis-ci throw error because log file large than 4 mega bytes. you can see at lfs-auto, build #15 now, i want to redirect all ...
Kevin Leptons's user avatar
0 votes
1 answer
997 views

Cross compiling "grub2" for live CD. How to use the "--prefix" option?

I make a live CD with custom linux and "grub2" on board. I compile the "grub2" from source code: HOST=x86_64-linux-gnu TARGET=x86_64-unknown-linux-uclibc CPPFLAGS="-I${INST_CROSS_TOOLS}/usr/include"...
Abradox's user avatar
  • 117
0 votes
1 answer
1k views

LFS 7.2: Hundreds of errors in glibc make check

I am on Section 6.9 of the LFS book. Everything before this section seemed fine. When I ran make check I got a huge number of errors. A longer transcript of my make check run can be found here on ...
twink_ml's user avatar
  • 512
0 votes
1 answer
951 views

LFS Chapter 6.20 Ncurses install error

I've been going step by step until midnight, then I turned off the Laptop (Standby) - i've Ubuntu 14.04 LTS as OS. When I woke up I wanted to continue, so I started my laptop again, but the screen ...
D3strukt0r's user avatar
0 votes
1 answer
605 views

Apache 2.4.4 - compiled from source, a2ensite is missing?

I've set up a Linux machine for web development and learning some administration skills. It's running with LFS, so everything is compiled from source and I have the latest versions for all software ...
Julio María Meca Hansen's user avatar
0 votes
0 answers
3 views

After git lfs migration, "refusing to merge unrelated histories" happens when pull

I applied git LFS to my repository. The commands I used were: ( There are no branches in this repository. ) git lfs migrate import --include="*.uasset" git push --force origin master There ...
passion053's user avatar
0 votes
0 answers
18 views

Trying to compile GCC returns a bunch of errors [closed]

For the last hours I'm trying to compile GCC for LFS. But it returns me this: configure: error: in `/mnt/lfs/sources/gcc-13.2.0/build/intl': configure: error: C compiler cannot create executables ...
Thiper the Lover's user avatar
0 votes
0 answers
26 views

Error while executing make check on glibc build for LFS

I try to build my own Linux from scratch -yeah yeah from https://www.fr.linuxfromscratch.org/ . (Warning here : it's the french page I show you here) I am at this page https://www.fr.linuxfromscratch....
Steve L's user avatar
0 votes
0 answers
61 views

Error with ECS container connecting to Service discovery endpoint

I have a dockerfile that is build in alpine and the image built in alpine and the runner is on scratchthe image runs on AWS ECS and has to connect the an endpoint hosted by AWS service discovery to ...
Jit's user avatar
  • 1