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
3
votes
1 answer

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 gcc. The command I used to compile…
prabhu r
  • 233
  • 2
  • 10
  • 16
3
votes
1 answer

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 device How can I resolve this?
Lukas.S
  • 41
  • 6
3
votes
1 answer

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/install -c -m 644 ../include/limits.h…
3
votes
2 answers

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/configure --target=$LFS_TGT --prefix=/tools…
user142019
3
votes
1 answer

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:…
Piper McCorkle
  • 1,044
  • 13
  • 27
3
votes
1 answer

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 scripts or Perl, I'm actually interested in extending…
3
votes
2 answers

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…
user2163729
  • 41
  • 1
  • 4
3
votes
3 answers

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. My question is if I can use the prepared…
0x18h
  • 33
  • 1
  • 4
2
votes
1 answer

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] instead of the desired: [Requesting program…
Adrian May
  • 2,127
  • 15
  • 24
2
votes
1 answer

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... x86_64-pc-linux-gnu checking for gcc...…
Gradyn Wursten
  • 118
  • 2
  • 18
2
votes
0 answers

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 or make -jN I get the same error : In file…
user96649
  • 471
  • 1
  • 5
  • 22
2
votes
1 answer

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: socket() failed: Permission denied host: can't find…
David Dombrowsky
  • 1,655
  • 3
  • 20
  • 32
2
votes
1 answer

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 to compile dummy.c …
Josh Benson
  • 236
  • 3
  • 12
2
votes
1 answer

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. Afterwards I started all over again, with CentOS 7.2…
Rafnex
  • 33
  • 1
  • 8
2
votes
5 answers

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-prefix=$LFS/sources" it returns an error "wget-list: No…
Lokesh Bhat
  • 53
  • 1
  • 4
1
2
3
9 10