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 (LFS) provides step-by-step instructions for building a custom Linux system from source. Use this tag for build problems, alternative compile time options and system integration questions.

141 questions
2
votes
1 answer

IPC::Open3 run snmpwalk with different behavior than standalone snmwalk command

I have made a custom sub to run various terminal-command in perl using Open3. I encounter a strange problem with snmpwalk, when i run the command in terminal it work, but with Open3 it won't. The sub is this: sub run_cmd { my ( $cmd, @args ) =…
2
votes
2 answers

How to compile ld with custom linker scripts?

i am trying to build a custom version of the linux kernel 3.8 and i want my linker to behave a bit different so i changed its ldscripts. Specifically I configure binutils -> make -> change ldscripts -> make install. However when i try to compile…
laertis
  • 8,229
  • 4
  • 21
  • 17
1
vote
0 answers

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 -fasynchronous-unwind-tables -W -Wall -Wno-narrowing…
Definity
  • 691
  • 2
  • 11
  • 31
1
vote
1 answer

log installed files when compiling

im currently building LFS and looking for a package management solution specifically a program that keeps track of what files got installed when you compiled something from source also has a method for removing those files in case make uninstall…
umar
  • 25
  • 5
1
vote
1 answer

Beyond Linux From Scratch: avrdude was compiled without usb support

Out of interest and learning purposes I have built Linux from scratch (LFS+BLFS, both version 10.0) according to the descriptions on www.linuxfromscratch.org. In general the OS can boot and I can basically work with it. There are a few things which…
1
vote
1 answer

cannot find -lncursesw error in section 7.13 Util-linux-2.36 LFS v10.0

I am using Ubuntu 16 vm for building LFS 10.0 version. A present I am section in 7.13 Util-linux-2.36 after doing chroot. When I try to install Util-linux-2.36 I get the following error. make[2] Leaving directory…
vijay
  • 59
  • 2
  • 12
1
vote
0 answers

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:…
1
vote
0 answers

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... but. `/sources/gcc-10.1.0/build/./gcc/xgcc…
1
vote
2 answers

Why can't I read a joblib file from my github repo?

I've built a simple app in Python, with a front-end UI in Dash. It relies on three files, small dataframe, in pickle format ,95KB large scipy sparse matrix, in NPZ format, 12MB large scikit KNN-model, in job lib format, 65MB I have read in the…
AxW
  • 582
  • 1
  • 6
  • 20
1
vote
0 answers

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, in the hopes that they weren't actually…
ioi-xd
  • 173
  • 8
1
vote
2 answers

Need to change the directory inside the shell script

I need to change the directory inside the shellscript.i have tried below #!/bin/bash sudo -u rv bash cd /opt/test source /opt/rv/van.env ./rv.sh |grep "STATUS" When I tried it didn't cd to that path and not executed th rv.sh.guide me with some…
indra
  • 19
  • 6
1
vote
1 answer

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 su - lfs Executing fg resumes lfs' user…
Christian Teijon
  • 456
  • 4
  • 12
1
vote
1 answer

Obtaining device drivers from ROMs

I would like to clean install embedded linux in ARM based smartphone. Inorder to do so i would need the device drivers such as flash memory, display etc. I was wondering if its is possible to extract the device drivers from the ROM'S supplied by…
gfdsal
  • 651
  • 1
  • 8
  • 25
1
vote
3 answers

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 2.7, gcc 4.8.5, gmake 3.82). In this setting I…
gregoruar
  • 345
  • 3
  • 14
1
vote
4 answers

LFS CoreUtils-8.30 fails with aclocal-1.15 missing

I have a standard core i5 laptop and I'm trying to make LFS (Linux From Scratch) it has all worked fine (after a couple of retries) until I try and make Coreutils-8.30 when I do the Make I…
1 2
3
9 10