All Questions
Tagged with linux-from-scratch gcc
28
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-...
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 ...
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 ...
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
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
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 ...
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
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
1
answer
92
views
libsysstat 0.3.3 fails to compile
Problem
Following the description at Beyond Linux From Scratch libsysstat 0.3.3 fails to compile.
Output
Scanning dependencies of target sysstat-qt5_automoc
[ 12%] Automatic moc for target sysstat-...
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 -...
1
vote
0
answers
350
views
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.....
1
vote
0
answers
786
views
Linux from scratch Installation of Cross GCC (recipe for target 'configure-target-libstdc++-v3' failed)
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Makefile:10457: recipe for target 'configure-target-libstdc++-v3' failed
make[1]: *** [...
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: ./...
0
votes
2
answers
928
views
Linux from Scratch 10.2.0 gcc fails [closed]
Hey guys i tried building gcc with Linux from Scratch 10.2.0.
I followed the instructions exactly, but the make command throws following Error:
checking whether gcc understands -c and -o together... ...
0
votes
1
answer
213
views
gcc compiles ELF file with wrong search list
After compiling gcc and using it to compile a simple c program:
echo 'int main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
grep -B4 '^ /usr/include' dummy.log
the result is:
...
0
votes
0
answers
18
views
Trying to compile GCC returns a bunch of errors [closed]
For the last hours I'm trying to compile GCC for LFS.
But it returns me this:
configure: error: in `/mnt/lfs/sources/gcc-13.2.0/build/intl':
configure: error: C compiler cannot create executables
...
0
votes
0
answers
298
views
I'm curious about the directory layout in LFS. Why can't we use lib64 as the default directory in LFS if LFS is a pure 64 bit system?
In Linux From Scratch during the 1st pass of GCC we have a case command that changes -m64 to ../lib instead of lib64. I am aware that this patch is to eliminate a compile time error but why can't we ...
0
votes
0
answers
173
views
LFS 9.1, step 6.9 (glibc-2.31) , breaks gcc
I'm stuck os step 6.9 of LFS.
After launching make, the following command breaks gcc functionality
case $(uname -m) in
i?86)
ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;;
x86_64) ln -sfnv $PWD/elf/ld-...
0
votes
0
answers
625
views
LFS: 9.1 - 6.10 readelf missing libdebuginfod.so.1
First time building LFS, I managed to get to the 6th chapter, but am stuck on the check for the second toolchain, after running
gcc -dumpspecs | sed -e 's@/tools@@g' \
-e '/\*...
0
votes
0
answers
204
views
`go run: cannot run non-main package` as Unprivileged User
I'm encountering an error with a recently-compiled golang compiler, but only as an unprivileged user. I'm hoping someone could provide advice on further troubleshooting ideas.
As root:
$ cd $HOME &...
0
votes
0
answers
138
views
Strange error when compiling lightdm-gtk-greeter-2.0.3.tar.gz
I got the error when compiling lightdm-gtk-greeter-2.0.3.tar.gz as below
make[2]: Leaving directory '/sources/lightdm-1.24.0/lightdm-gtk-greeter-2.0.3/po'
Making all in src
make[2]: Entering ...
0
votes
0
answers
454
views
Why am I receiving make errors when trying to compile GCC?
I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I ...
0
votes
0
answers
84
views
gcc 8.2.0 build fails on LFS v8.3
While building all packages in order every single one of them has succeeded but gcc 8.2.0 build fails.
Below is the build error on executing make:
msgfmt: error while loading shared libraries: ...
0
votes
1
answer
479
views
Issue while compiling gcc-5.2.0
I am trying to build my own lfs system for Raspberry PI 2.
As a part of it I am trying to compile gcc on Raspberry PI 2, with raspbian as a base operating system.
I could build the binutils using ...
0
votes
1
answer
2k
views
Why my cross compiler toolchain not static link?
I want to build my cross compile tool chain, I build it successful.
It can use normally, but when I move it, it cannot work!!
It print error while loading shared libraries: libcloog-isl.so.3, ...
-1
votes
1
answer
992
views
missing gd.h header error while building iso via LFS 7.5
I am trying to build centos6 based iso via LFS 7.5 technique.
While preparing glibc for compilation (page 38) i am getting error( log at link)
"fatal error: gd.h no such file ..." , though the header ...