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
30
votes
6 answers

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-nls\ --disable-shared --disable-multilib…
E-Kami
  • 2,529
  • 5
  • 30
  • 50
21
votes
3 answers

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?
panzi
  • 7,517
  • 5
  • 42
  • 54
16
votes
5 answers

Anyone know of any statically-typed scripting languages?

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 scripts, but also I'll be writing a simple set of…
sdellysse
  • 39,108
  • 9
  • 25
  • 24
12
votes
2 answers

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 we build the tools in pass 1 and then use them to…
Monku
  • 2,440
  • 4
  • 33
  • 57
8
votes
1 answer

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 make command. Whenever I run the command it runs for…
Rohan Bojja
  • 655
  • 1
  • 16
  • 35
8
votes
1 answer

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 making lfs using ubuntu but errors cropped up at…
AvinashK
  • 3,309
  • 8
  • 43
  • 94
7
votes
2 answers

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 version 7.3). I ran into the following problem: when I…
bobef
  • 990
  • 1
  • 9
  • 14
6
votes
1 answer

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 longer supported I am…
user3883624
  • 261
  • 1
  • 3
  • 7
5
votes
2 answers

Making an OS using linux kernel

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 operating system development? . I want to make an OS…
4
votes
3 answers

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 don't understand: in which directory should I run…
Rohan Bojja
  • 655
  • 1
  • 16
  • 35
4
votes
1 answer

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 work machine, and I don't have root privileges. …
nwly
  • 1,360
  • 4
  • 16
  • 30
4
votes
1 answer

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 was getting the following error: make[3]: Entering…
UndercoverCoder
  • 953
  • 3
  • 13
  • 28
4
votes
3 answers

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…
user142019
4
votes
1 answer

How make LiveCD install, from Linux From Scratch(LFS)?

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?
user3127534
  • 51
  • 1
  • 2
4
votes
1 answer

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 -z relro support required Now after this if i…
AvinashK
  • 3,309
  • 8
  • 43
  • 94
1
2 3
9 10