All Questions

Filter by
Sorted by
Tagged with
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-...
E-Kami's user avatar
  • 2,559
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?
panzi's user avatar
  • 7,606
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 ...
sdellysse's user avatar
  • 39.4k
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 ...
Monku's user avatar
  • 2,500
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 ...
Rohan Bojja's user avatar
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 ...
AvinashK's user avatar
  • 3,365
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 ...
bobef's user avatar
  • 1,000
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 ...
user3883624's user avatar
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 ...
nwly's user avatar
  • 1,422
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 ...
UndercoverCoder's user avatar
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:...
user avatar
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 ...
AvinashK's user avatar
  • 3,365
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?
user3127534's user avatar
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 ...
Rohan Bojja's user avatar
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. ...
user2163729's user avatar
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 ...
prabhu r's user avatar
  • 273
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 ...
Lukas.S's user avatar
  • 41
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/...
Pablo Saquilán's user avatar
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. ...
0x18h's user avatar
  • 33
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-...
Lokesh Bhat's user avatar
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: ...
David Dombrowsky's user avatar
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 ...
Josh Benson's user avatar
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. ...
Rafnex's user avatar
  • 33
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 ...
user3613475's user avatar
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 ->...
laertis's user avatar
  • 8,327
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... ...
Gradyn Wursten's user avatar
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 ...
user96649's user avatar
  • 491
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, ...
Mahdi's user avatar
  • 9,318
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 ...
aswin's user avatar
  • 165
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 ...
indra's user avatar
  • 19
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@...
Robert Cheetham's user avatar
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 ...
onlinespending's user avatar
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 ...
alexrc's user avatar
  • 59
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 ...
Kazekage Gaara's user avatar
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 ...
umar's user avatar
  • 25
1 vote
1 answer
354 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 ...
Manfred Hinter's user avatar
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
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
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
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
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