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
146
questions
30
votes
6
answers
59k
views
Gcc compilation "cannot compute suffix of object files: cannot compile"
I'm actually reading the LFS book (version 7.1) and I'm blocked at page 53. Trying to compile gcc, I tried the following command:
./configure --target=$LFS_TGT --prefix=$LFS/build/gcc-build --disable-...
21
votes
3
answers
14k
views
What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?
I understand that -D_FILE_OFFSET_BITS=64 causes off_t to be 64bits. So what does -D_LARGEFILE_SOURCE do that isn't already done by -D_FILE_OFFSET_BITS=64? What do these definitions do exactly?
16
votes
5
answers
9k
views
Anyone know of any statically-typed scripting languages? [closed]
I'm about to start an LFS-based linux distro just for a hobby project. I plan on doing some very non-standard tasks, and most of it will involve change almost all scripts in the distro. (mainly init ...
12
votes
2
answers
3k
views
why multiple passes for building Linux From Scratch (LFS)?
I am trying to understand the concept of Linux From Scratch and would like to know why there are multiple passes for building binutils, gcc etc.
Why do we need pass1 and pass2 separately? Why can't ...
8
votes
1
answer
6k
views
error while using make to compile Glibc-2.11.1 for Linux From Scratch
I am building LFS and I am in the part where we need to install Glibc-2.11.1
http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/glibc.html
I have successfully configured it but I cant run the ...
8
votes
1
answer
8k
views
Best linux distribution to do Kernel Module programming
I want to do kernel module programming. But, all sources tell that linux distributions patch the original kernel and that module codes might not run on them. If this is true, what should i do.I tried ...
7
votes
2
answers
10k
views
How to build the elf interpreter (ld-linux.so.2/ld-2.17.so) as static library?
I apologize if my question is not precise because I don't have a lot
of Linux related experience. I'm currently building a Linux from
scratch (mostly following the guide at linuxfromscratch.org ...
6
votes
1
answer
991
views
Glibc Configuration Error
I am working though the Linux from scratch book when I encountered an error configuring Glibc (step 5.7):
checking for sysdeps preconfigure fragments... aarch64 alpha arm configure: error: Old ABI no ...
5
votes
2
answers
3k
views
Making an OS using linux kernel [closed]
I have been searching for a past few weeks about how to making an OS.
I have also read may questions regarding how to make an OS like this one, What are some resources for getting started in ...
5
votes
1
answer
22k
views
glibc configure error: yacc/bison missing
I'm following the instructions from LFS but with a twist: I'm only following parts of Section 5 - Constructing a Temporary System to the extent that I can build my own GCC, reason being that this is a ...
4
votes
1
answer
2k
views
Linux From Scratch error in Bison-3.0.4 'make check'
So I'm following the Linux From Scratch book and am in chapter 5.17 Bison-3.0.4.
The book instructs us to do a make check after make to test the result of the compiled Bison package.
Initially, I ...
4
votes
4
answers
4k
views
How to use OpenGL without a window manager in Linux?
I've just finished the LFS book and my Linux system is working right now. I want to use OpenGL to display graphics on the screen, while the only installed package right now are those described on http:...
4
votes
1
answer
1k
views
lfs 7.2 compilation of glibc 2.16.0
I am making an linux system following the procedure in lfs. But while i was following the fifth step(i.e. the one before make) on this page, i get an error at the last.
configure: error: linker with ...
4
votes
1
answer
4k
views
How make LiveCD install, from Linux From Scratch(LFS)? [closed]
I Build linux, LFS, and I want to build LFS to ISO and can run as live CD and can install LFS GUI to hardisk. can everybody help me?
4
votes
3
answers
6k
views
how to use "make mrproper " command? i am working on Linux From Scratch
I am trying to build Linux From Scratch and I have reached till this part : linux headers
Make sure there are no stale files and dependencies lying around from previous activity:
make mrproper
I ...
3
votes
1
answer
3k
views
LFS: `bash: /tools/bin/gcc: No such file or directory`
I type
root:/# gcc
and somehow this happens:
bash: /tools/bin/gcc: No such file or directory
Obviously, the $PATH works and is finding /tools/bin/gcc. I am chroot'd into $LFS and am on this step: ...
3
votes
2
answers
3k
views
lfs glibc compilation ld error
My host system is Linux debian 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64 GNU/Linux.
I want to build a LFS and the glibc compilation stop me now.
Here are the error prompts, thank you.
...
3
votes
1
answer
210
views
GNU+Linux Build Framework in Emacs Lisp?
I'm working on a Linux-libre version of "Linux from Scratch" based upon Christophe Jarry's "GNU/Linux-libre from source code" build book. However, rather than write a build framework with shell ...
3
votes
2
answers
5k
views
C compiler cannot create executables when trying to build Binutils
I am trying to build Linux From Scratch, and now I am at chapter 5.4, which tells me how to build Binutils. I have binutils 2.20's source code, but when I try to build it:
time { ./binutils-2.20/...
3
votes
1
answer
5k
views
uint64_t or int64_t not found error when compiling gcc-7.3.0
I am building my own linux system from scratch.
As I am a beginner I don't know much about the error, and I've tried some ways, but still I am unable to solve this. I came across a step to compile ...
3
votes
1
answer
2k
views
mesg: ttyname failed: no such device
Im working on LFS, and I finished the process of compiling, and came to the part of entering the cheroot Environment, with the code provide.
But I’m getting this error:mesg: ttyname failed: no such ...
3
votes
1
answer
783
views
Glibc-2.22 make (infitite loop) error [LFS 7.8 - 6.9]
This error appears when i try to compile glibc package in make pass of Chapter 6.9 - Linux from Scratch 7.8.
When make is running, it enters in an infinite loop which repeats the follow:
/usr/bin/...
3
votes
3
answers
3k
views
chroot into other arch's environment
Following the Linux from Scratch book I have managed to build a toolchain for an ARM on
an ARM. This is till chapter 6 of the book, and on the ARM board itself I could go on further with no problems.
...
2
votes
5
answers
2k
views
LFS version 7.8, wget is not working
I was trying to build the LFS project and following the book version 7.8. But I'm stuck as wget is not working.
when I execute the command -
"wget --input-file=wget-list --continue --directory-...
2
votes
1
answer
530
views
LFS: GCC links wrong
I'm stuck on chapter 6.20 of the current LFS book. I get:
$ readelf -l a.out | grep Requesting
[Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so....
2
votes
1
answer
2k
views
Permission denied when opening socket or using resolver
I've set up an LFS system and I must have missed a step somewhere. I can only resolve hostnames if I am root:
$ host 6thstreetradio.org
net.c:150: socket() failed: Permission denied
net.c:150: ...
2
votes
1
answer
726
views
Linux From Scratch (7.9) Chapter 6.10 linking fails
Here is the step I'm on. Everything has gone fine up to this point, but after replacing the old linker with the new one and making the changes to the specs file, I get the following error when trying ...
2
votes
1
answer
1k
views
Linux from Scratch 5.7.2 Toolchain sanity check
I started the Project "Linux from Scratch" some time ago. First I started with Ubuntu 15.10 64bit and did everything according to the PDF-File. By the Check in paragraph 5.7.2, it didn't worked. ...
2
votes
1
answer
675
views
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 ...
2
votes
2
answers
3k
views
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 ->...
2
votes
1
answer
963
views
glibc-2.24 fails to compile on LFS system, log says -V argument is not recognised, but i'm not passing -V
I am stuck on step 5.7 of Linux From Scratch 7.10. I'm trying to compile glibc, but its returning the following error:
checking build system type... x86_64-pc-linux-gnu
checking host system type... ...
2
votes
0
answers
666
views
LFS 7.10 Stable 2nd pass of GCC fatal error: algorithm: No such file or directory
I am trying to setup a LFS system, however I get an error while compiling GCC for the 2nd pass. I am sure I did all step before (I redid them multiple time), but each time, no matter if I write make ...
1
vote
2
answers
520
views
Changing the default directory structure
If I start a new distro (e.g. LFS):
How can I change the directory structure?
What should I expect after it's ready? (probably can't install most of the packages without modification, right?
But, ...
1
vote
2
answers
2k
views
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-...
1
vote
2
answers
4k
views
Error while configuring glibc: Need linker with .init_array/.fini_array support
I am new to linux or LFS. I am building LFS 7.3 on virtual machine. I use Ubuntu 12.10.
For unknown reason, I can't partition the hard drive using cfdisk, so I create partition while installing the ...
1
vote
1
answer
55
views
Linux From Scratch Version 12.0 meson-1.2.1 Build Fails
While building meson-1.2.1 in Linux From Scratch Version 12.0 at chapter 8.55, I get the following error:
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing ...
1
vote
1
answer
291
views
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] ...
1
vote
2
answers
88
views
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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
3
answers
458
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 ...
1
vote
4
answers
3k
views
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 get:
lfs@...
1
vote
1
answer
1k
views
Python 3.6 fails to install to non-standard directory under Linux
I have a completely insulated boostrapped toolchain+binaries setup (located under /home/tools) that has been able to build everything that I throw at it. That includes Python 2.7.14, which built ...
1
vote
1
answer
432
views
Building LFS: Segmentation fault with make on a graphical shell
I'm building a LFS system following the steps from the book (version 7.6, though I think the problem is not related to a specific version). After building the toolchain (chapter 5) now I'm into ...
1
vote
1
answer
723
views
What is the purpose of mounting a partition and giving it a directory (i.e. mount point)?
From LFS instructions:
http://www.linuxfromscratch.org/lfs/view/stable/chapter02/mounting.html
If using multiple partitions for LFS (e.g., one for / and another for /usr), mount them using:
mkdir -...
1
vote
1
answer
3k
views
How to know the keymap,font,etc. variables' values used by my current linux system?
I'm using Linux Mint. I'm unable to find the /etc/sysconfig/console file that would tell me the values of the keymap,font,utf-8 mode support,etc. values for my system. Is there a way I could do it? I ...
1
vote
1
answer
132
views
Git LFS doesn't work anymore with Yocto: git doesn't fetch "large files" since we upgraded our tools
Git LFS doesn't work anymore with Yocto: git doesn't fetch "large files" since we upgraded our tools to these versions:
Yocto kirkstone
gitlab 16.7.3 and gitlab 16.8
git version 2.34.1
git-...
1
vote
1
answer
69
views
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 ...
1
vote
1
answer
353
views
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 ...
1
vote
1
answer
760
views
LFS 8.3 Glibc-2.28 make check fail 'stdlib/test-bz22786'
I am on Section 6.9 of the LFS book, My host OS is Ubuntu 18.04, When I ran make check I got errors as follow:
UNSUPPORTED: elf/tst-audit10
UNSUPPORTED: elf/tst-avx512
XPASS: elf/tst-...
1
vote
1
answer
450
views
trying to understand LD_PRELOAD and SUID/SGID with checkinstall or porg
I want to use porg in my LFS distro. It's similar to checkinstall, it uses LD_PRELOAD.
1. If you read the README:
CheckInstall currently is unable to track any file system changes made
by ...