6.7 Linux headers `make mrproper` fails in lfs 7.5 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionLFS 7.4 chapter 6.7: make: gcc: Command not foundLinux From Scratch: make no such file or directory, bad interpreterCannot create root jailLFS 7.4 chapter 6.7: make: gcc: Command not foundLFS-7.5 chapter 6.9 `make check` failsLFS-7.5 util-linux `make check` failsLFS 7.6 GCC make errorE2fsprogs undefined reference to symbol - LFSLFS Troubles - Applying Patch in Section 5.7.1Why LFS and CLFS change the path used to find the dynamic linker?Zlib 1.2.11 Make Check Fails (LFS 8.2, Chapter 6, Section 6.11)
Can a monk deflect thrown melee weapons?
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Cold is to Refrigerator as warm is to?
Did the new image of black hole confirm the general theory of relativity?
Windows 10: How to Lock (not sleep) laptop on lid close?
What is the largest species of polychaete?
Why does this iterative way of solving of equation work?
Unexpected result with right shift after bitwise negation
Does a C shift expression have unsigned type? Why would Splint warn about a right-shift?
I'm having difficulty getting my players to do stuff in a sandbox campaign
Is it possible to ask for a hotel room without minibar/extra services?
How can players take actions together that are impossible otherwise?
What LEGO pieces have "real-world" functionality?
Who can trigger ship-wide alerts in Star Trek?
What do you call the holes in a flute?
How are presidential pardons supposed to be used?
Blender game recording at the wrong time
Stars Make Stars
What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?
Can I throw a longsword at someone?
Using "nakedly" instead of "with nothing on"
6.7 Linux headers `make mrproper` fails in lfs 7.5
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionLFS 7.4 chapter 6.7: make: gcc: Command not foundLinux From Scratch: make no such file or directory, bad interpreterCannot create root jailLFS 7.4 chapter 6.7: make: gcc: Command not foundLFS-7.5 chapter 6.9 `make check` failsLFS-7.5 util-linux `make check` failsLFS 7.6 GCC make errorE2fsprogs undefined reference to symbol - LFSLFS Troubles - Applying Patch in Section 5.7.1Why LFS and CLFS change the path used to find the dynamic linker?Zlib 1.2.11 Make Check Fails (LFS 8.2, Chapter 6, Section 6.11)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm building lfs-7.5.
When I run make mrproper
in chapter 6.7, it says:
make: gcc: command not found
and on running bash /tools/bin/gcc
, it says:
bash: /tools/bin/gcc: no such file or directory
This is the same problem as here. Even the information given by the person who asked the question in the comments is same as mine.
He says that he did "third pass" of gcc
in chapter 5. If this was the case then the author of LFS would have clearly indicated to us to perform 3 passes. I'm guessing that I'm making a subtle mistake somewhere, but I can't seem to find out where.
According to the support provided by LFS authors, they ask us to redo the whole thing from the beginning. I agree with them, but without knowing where the mistake might have happened we are bound to make the same mistake again (as I did). The output provided by the person who asked the question in the LFS support question matches mine. This is the link.
Another question about the same topic here did not yield any answers.
Please help.
BTW, when I found out that gcc
was not linked to the libraries in /tools/lib
of LFS, I manually created a simlink from libc.so.6
to /lib
and /lib64
under /mnt/lfs
where I mounted the LFS partition. But when I was executing make headers_check
in 6.7 (after make mrproper
), it complained that it didn't find libz.so
and when I searched in /tools/lib
, I couldn't find it.
linux gcc lfs
add a comment |
I'm building lfs-7.5.
When I run make mrproper
in chapter 6.7, it says:
make: gcc: command not found
and on running bash /tools/bin/gcc
, it says:
bash: /tools/bin/gcc: no such file or directory
This is the same problem as here. Even the information given by the person who asked the question in the comments is same as mine.
He says that he did "third pass" of gcc
in chapter 5. If this was the case then the author of LFS would have clearly indicated to us to perform 3 passes. I'm guessing that I'm making a subtle mistake somewhere, but I can't seem to find out where.
According to the support provided by LFS authors, they ask us to redo the whole thing from the beginning. I agree with them, but without knowing where the mistake might have happened we are bound to make the same mistake again (as I did). The output provided by the person who asked the question in the LFS support question matches mine. This is the link.
Another question about the same topic here did not yield any answers.
Please help.
BTW, when I found out that gcc
was not linked to the libraries in /tools/lib
of LFS, I manually created a simlink from libc.so.6
to /lib
and /lib64
under /mnt/lfs
where I mounted the LFS partition. But when I was executing make headers_check
in 6.7 (after make mrproper
), it complained that it didn't find libz.so
and when I searched in /tools/lib
, I couldn't find it.
linux gcc lfs
add a comment |
I'm building lfs-7.5.
When I run make mrproper
in chapter 6.7, it says:
make: gcc: command not found
and on running bash /tools/bin/gcc
, it says:
bash: /tools/bin/gcc: no such file or directory
This is the same problem as here. Even the information given by the person who asked the question in the comments is same as mine.
He says that he did "third pass" of gcc
in chapter 5. If this was the case then the author of LFS would have clearly indicated to us to perform 3 passes. I'm guessing that I'm making a subtle mistake somewhere, but I can't seem to find out where.
According to the support provided by LFS authors, they ask us to redo the whole thing from the beginning. I agree with them, but without knowing where the mistake might have happened we are bound to make the same mistake again (as I did). The output provided by the person who asked the question in the LFS support question matches mine. This is the link.
Another question about the same topic here did not yield any answers.
Please help.
BTW, when I found out that gcc
was not linked to the libraries in /tools/lib
of LFS, I manually created a simlink from libc.so.6
to /lib
and /lib64
under /mnt/lfs
where I mounted the LFS partition. But when I was executing make headers_check
in 6.7 (after make mrproper
), it complained that it didn't find libz.so
and when I searched in /tools/lib
, I couldn't find it.
linux gcc lfs
I'm building lfs-7.5.
When I run make mrproper
in chapter 6.7, it says:
make: gcc: command not found
and on running bash /tools/bin/gcc
, it says:
bash: /tools/bin/gcc: no such file or directory
This is the same problem as here. Even the information given by the person who asked the question in the comments is same as mine.
He says that he did "third pass" of gcc
in chapter 5. If this was the case then the author of LFS would have clearly indicated to us to perform 3 passes. I'm guessing that I'm making a subtle mistake somewhere, but I can't seem to find out where.
According to the support provided by LFS authors, they ask us to redo the whole thing from the beginning. I agree with them, but without knowing where the mistake might have happened we are bound to make the same mistake again (as I did). The output provided by the person who asked the question in the LFS support question matches mine. This is the link.
Another question about the same topic here did not yield any answers.
Please help.
BTW, when I found out that gcc
was not linked to the libraries in /tools/lib
of LFS, I manually created a simlink from libc.so.6
to /lib
and /lib64
under /mnt/lfs
where I mounted the LFS partition. But when I was executing make headers_check
in 6.7 (after make mrproper
), it complained that it didn't find libz.so
and when I searched in /tools/lib
, I couldn't find it.
linux gcc lfs
linux gcc lfs
edited May 23 '17 at 12:39
Community♦
1
1
asked Jun 17 '14 at 11:17
user2555595user2555595
598826
598826
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I don't know whether the previous answer I submitted is correct or not.
I decided to continue doing LFS-7.5
in Linux Mint
, where user lfs
was present in the sudoers
file. After finishing Chapter 5, I again got an error at Chapter 6.7 make mrproper
. So, I deleted all folder under $LFS
except $LFS/sources
and started from the beginning.
After finishing the 2nd pass of gcc
, I checked whether the libraries of gcc
pointed to the ones under $LFS/tools
or not. But I found out that they were still pointed at /usr
of host system.
So, I re-built from 1st pass of gcc
and then everything was fine.
So, after 2nd pass of gcc
, do:
ldd
$LFS/tools/bin/$LFS_TGT-gcc
and if the resulting output points to /usr
, redo from 1st pass of gcc
.
At least, this the method I used and immediately after redoing the 1st pass of gcc
the 2nd time, the output of the above command was pointing to $LFS/tools/lib
.
add a comment |
I was able to successfully execute make mrproper
and the following commands. I don't really know whether this is really the solution to the above problem. Anyway here it is:
I was using Ubuntu 14.04 and I created lfs user as suggested by the LFS-7.5 book. But the problem was that I didn't realize until later, much later, when chroot
ing into the LFS partition that, lfs user was not in the sudoers file.
Ubuntu did (does?) not automatically add the user to the sudoers file, probably by design by the Ubuntu people. This might be the reason, I did not try it again on Ubuntu.
I got disheartened and started trying LFS-7.5 in Linux Mint 16 and it automatically added the user to the sudoers file and everything went fine at Chapter 6.7 while building and installing linux headers.
add a comment |
I had exactly the same problem. I checked the dynamic linker used by gcc : readelf -l /tools/bin/gcc | grep interpreter
and it was not /tools/lib64/ld-linux-x86-64.so.2 but /lib64/ld-linux-x86-64.so.2. So, gcc could not run because this file did not exist.
The problem came from the gcc Pass2 building step. I did not put the definition of CC, CXX, AR and RANLIB on the same line than the configure command.
I ran
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Instead of
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Same problem could apply in binutils pass2 build step. I suppose it is a problem of variable focus.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f137593%2f6-7-linux-headers-make-mrproper-fails-in-lfs-7-5%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't know whether the previous answer I submitted is correct or not.
I decided to continue doing LFS-7.5
in Linux Mint
, where user lfs
was present in the sudoers
file. After finishing Chapter 5, I again got an error at Chapter 6.7 make mrproper
. So, I deleted all folder under $LFS
except $LFS/sources
and started from the beginning.
After finishing the 2nd pass of gcc
, I checked whether the libraries of gcc
pointed to the ones under $LFS/tools
or not. But I found out that they were still pointed at /usr
of host system.
So, I re-built from 1st pass of gcc
and then everything was fine.
So, after 2nd pass of gcc
, do:
ldd
$LFS/tools/bin/$LFS_TGT-gcc
and if the resulting output points to /usr
, redo from 1st pass of gcc
.
At least, this the method I used and immediately after redoing the 1st pass of gcc
the 2nd time, the output of the above command was pointing to $LFS/tools/lib
.
add a comment |
I don't know whether the previous answer I submitted is correct or not.
I decided to continue doing LFS-7.5
in Linux Mint
, where user lfs
was present in the sudoers
file. After finishing Chapter 5, I again got an error at Chapter 6.7 make mrproper
. So, I deleted all folder under $LFS
except $LFS/sources
and started from the beginning.
After finishing the 2nd pass of gcc
, I checked whether the libraries of gcc
pointed to the ones under $LFS/tools
or not. But I found out that they were still pointed at /usr
of host system.
So, I re-built from 1st pass of gcc
and then everything was fine.
So, after 2nd pass of gcc
, do:
ldd
$LFS/tools/bin/$LFS_TGT-gcc
and if the resulting output points to /usr
, redo from 1st pass of gcc
.
At least, this the method I used and immediately after redoing the 1st pass of gcc
the 2nd time, the output of the above command was pointing to $LFS/tools/lib
.
add a comment |
I don't know whether the previous answer I submitted is correct or not.
I decided to continue doing LFS-7.5
in Linux Mint
, where user lfs
was present in the sudoers
file. After finishing Chapter 5, I again got an error at Chapter 6.7 make mrproper
. So, I deleted all folder under $LFS
except $LFS/sources
and started from the beginning.
After finishing the 2nd pass of gcc
, I checked whether the libraries of gcc
pointed to the ones under $LFS/tools
or not. But I found out that they were still pointed at /usr
of host system.
So, I re-built from 1st pass of gcc
and then everything was fine.
So, after 2nd pass of gcc
, do:
ldd
$LFS/tools/bin/$LFS_TGT-gcc
and if the resulting output points to /usr
, redo from 1st pass of gcc
.
At least, this the method I used and immediately after redoing the 1st pass of gcc
the 2nd time, the output of the above command was pointing to $LFS/tools/lib
.
I don't know whether the previous answer I submitted is correct or not.
I decided to continue doing LFS-7.5
in Linux Mint
, where user lfs
was present in the sudoers
file. After finishing Chapter 5, I again got an error at Chapter 6.7 make mrproper
. So, I deleted all folder under $LFS
except $LFS/sources
and started from the beginning.
After finishing the 2nd pass of gcc
, I checked whether the libraries of gcc
pointed to the ones under $LFS/tools
or not. But I found out that they were still pointed at /usr
of host system.
So, I re-built from 1st pass of gcc
and then everything was fine.
So, after 2nd pass of gcc
, do:
ldd
$LFS/tools/bin/$LFS_TGT-gcc
and if the resulting output points to /usr
, redo from 1st pass of gcc
.
At least, this the method I used and immediately after redoing the 1st pass of gcc
the 2nd time, the output of the above command was pointing to $LFS/tools/lib
.
answered Jul 16 '14 at 16:24
user2555595user2555595
598826
598826
add a comment |
add a comment |
I was able to successfully execute make mrproper
and the following commands. I don't really know whether this is really the solution to the above problem. Anyway here it is:
I was using Ubuntu 14.04 and I created lfs user as suggested by the LFS-7.5 book. But the problem was that I didn't realize until later, much later, when chroot
ing into the LFS partition that, lfs user was not in the sudoers file.
Ubuntu did (does?) not automatically add the user to the sudoers file, probably by design by the Ubuntu people. This might be the reason, I did not try it again on Ubuntu.
I got disheartened and started trying LFS-7.5 in Linux Mint 16 and it automatically added the user to the sudoers file and everything went fine at Chapter 6.7 while building and installing linux headers.
add a comment |
I was able to successfully execute make mrproper
and the following commands. I don't really know whether this is really the solution to the above problem. Anyway here it is:
I was using Ubuntu 14.04 and I created lfs user as suggested by the LFS-7.5 book. But the problem was that I didn't realize until later, much later, when chroot
ing into the LFS partition that, lfs user was not in the sudoers file.
Ubuntu did (does?) not automatically add the user to the sudoers file, probably by design by the Ubuntu people. This might be the reason, I did not try it again on Ubuntu.
I got disheartened and started trying LFS-7.5 in Linux Mint 16 and it automatically added the user to the sudoers file and everything went fine at Chapter 6.7 while building and installing linux headers.
add a comment |
I was able to successfully execute make mrproper
and the following commands. I don't really know whether this is really the solution to the above problem. Anyway here it is:
I was using Ubuntu 14.04 and I created lfs user as suggested by the LFS-7.5 book. But the problem was that I didn't realize until later, much later, when chroot
ing into the LFS partition that, lfs user was not in the sudoers file.
Ubuntu did (does?) not automatically add the user to the sudoers file, probably by design by the Ubuntu people. This might be the reason, I did not try it again on Ubuntu.
I got disheartened and started trying LFS-7.5 in Linux Mint 16 and it automatically added the user to the sudoers file and everything went fine at Chapter 6.7 while building and installing linux headers.
I was able to successfully execute make mrproper
and the following commands. I don't really know whether this is really the solution to the above problem. Anyway here it is:
I was using Ubuntu 14.04 and I created lfs user as suggested by the LFS-7.5 book. But the problem was that I didn't realize until later, much later, when chroot
ing into the LFS partition that, lfs user was not in the sudoers file.
Ubuntu did (does?) not automatically add the user to the sudoers file, probably by design by the Ubuntu people. This might be the reason, I did not try it again on Ubuntu.
I got disheartened and started trying LFS-7.5 in Linux Mint 16 and it automatically added the user to the sudoers file and everything went fine at Chapter 6.7 while building and installing linux headers.
edited Apr 5 at 23:21
Rui F Ribeiro
42.1k1483142
42.1k1483142
answered Jun 27 '14 at 11:32
user2555595user2555595
598826
598826
add a comment |
add a comment |
I had exactly the same problem. I checked the dynamic linker used by gcc : readelf -l /tools/bin/gcc | grep interpreter
and it was not /tools/lib64/ld-linux-x86-64.so.2 but /lib64/ld-linux-x86-64.so.2. So, gcc could not run because this file did not exist.
The problem came from the gcc Pass2 building step. I did not put the definition of CC, CXX, AR and RANLIB on the same line than the configure command.
I ran
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Instead of
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Same problem could apply in binutils pass2 build step. I suppose it is a problem of variable focus.
add a comment |
I had exactly the same problem. I checked the dynamic linker used by gcc : readelf -l /tools/bin/gcc | grep interpreter
and it was not /tools/lib64/ld-linux-x86-64.so.2 but /lib64/ld-linux-x86-64.so.2. So, gcc could not run because this file did not exist.
The problem came from the gcc Pass2 building step. I did not put the definition of CC, CXX, AR and RANLIB on the same line than the configure command.
I ran
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Instead of
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Same problem could apply in binutils pass2 build step. I suppose it is a problem of variable focus.
add a comment |
I had exactly the same problem. I checked the dynamic linker used by gcc : readelf -l /tools/bin/gcc | grep interpreter
and it was not /tools/lib64/ld-linux-x86-64.so.2 but /lib64/ld-linux-x86-64.so.2. So, gcc could not run because this file did not exist.
The problem came from the gcc Pass2 building step. I did not put the definition of CC, CXX, AR and RANLIB on the same line than the configure command.
I ran
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Instead of
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Same problem could apply in binutils pass2 build step. I suppose it is a problem of variable focus.
I had exactly the same problem. I checked the dynamic linker used by gcc : readelf -l /tools/bin/gcc | grep interpreter
and it was not /tools/lib64/ld-linux-x86-64.so.2 but /lib64/ld-linux-x86-64.so.2. So, gcc could not run because this file did not exist.
The problem came from the gcc Pass2 building step. I did not put the definition of CC, CXX, AR and RANLIB on the same line than the configure command.
I ran
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Instead of
CC=$LFS_TGT-gcc
CXX=$LFS_TGT-g++
AR=$LFS_TGT-ar
RANLIB=$LFS_TGT-ranlib
../configure --prefix=/tools ...
Same problem could apply in binutils pass2 build step. I suppose it is a problem of variable focus.
answered Apr 10 at 22:05
Stef1611Stef1611
1014
1014
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f137593%2f6-7-linux-headers-make-mrproper-fails-in-lfs-7-5%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown