LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-28-2010, 07:49 PM   #1
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Rep: Reputation: 0
book 6.7 gcc pass 1 probs


Can someone please explain this command better because when i create that directory as it says to do. Right before it says this command and then typing these commands in it gives me a error saying that file or directory doesnt exist

../gcc-4.5.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --enable-languages=c \
--with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
--without-ppl --without-cloog
 
Old 10-28-2010, 08:41 PM   #2
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
Read my answer in your other post, this should help you.
 
Old 10-28-2010, 09:47 PM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
@OP: Your problem is still the same as in your previous thread. READ the prerequisites. Again, you won't succeed building an lfs without at least some basic knowledge of how to use the cli.
Unless you follow the advice you already have been given in your previous thread there is really no point in creating new threads.
 
Old 10-28-2010, 09:58 PM   #4
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

You know i have been reading through them . And for people to tell me commands that keep spitting out the exact same errors as i had originally isnt going to help a thing either.
 
Old 10-28-2010, 10:37 PM   #5
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
The ../ command means "move up one folder level".

So if you are in /mnt/lfs/gcc-build (you should really be in /mnt/lfs/sources/gcc-build) and you issue a command beginning with "../gcc-4.5.1/configure \", it will look for /mnt/lfs/gcc-4.5.1

Does this folder exist on your system?
 
Old 10-28-2010, 11:02 PM   #6
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

are you sure your on the same spot i am . Im not having the same problem i had previously i made it to 5.5.1 of book 6.7 the prob i had before was on the page before that 1.
 
Old 10-28-2010, 11:12 PM   #7
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

When i try this set of commands it says it already exists

mkdir -v ../gcc-build
cd ../gcc-build

Then when i use these commands it says no such file or directory

../gcc-4.5.1/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-shared --disable-multilib \
> --disable-decimal-float --disable-threads \
> --disable-libmudflap --disable-libssp \
> --disable-libgomp --enable-languages=c \
> --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
> --without-ppl --without-cloog


And thats where im stuck because no matter which directory i try those commands in thats what it says.
 
Old 10-28-2010, 11:16 PM   #8
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
In the first post in this thread, you said "file or directory doesnt exist". What is the output of
$ls /mnt/lfs/
 
Old 10-28-2010, 11:24 PM   #9
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
Once again, the instructions say that for every package, before you follow the instructions on the specific page for that package you must do the following:
1. Begin in /mnt/lfs/sources
2. tar -xvf somepackage.tar.gz (it might be somepackage.tar.bz2. This will create a new folder inside the sources folder)
3. cd somepackage (this will put you in /mnt/lfs/sources/somepackage/ )
4. Follow specific package instructions found on the "somepackage" page
5. cd back to /mnt/lfs/sources
6. delete the extracted directory created in step 2, and any <package>-build directories that were created in step 4
7. Move on to the next package
 
Old 10-28-2010, 11:24 PM   #10
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

right thats the error it gives when i use this command.

../gcc-4.5.1/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-shared --disable-multilib \
> --disable-decimal-float --disable-threads \
> --disable-libmudflap --disable-libssp \
> --disable-libgomp --enable-languages=c \
> --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
> --without-ppl --without-cloog
 
Old 10-28-2010, 11:26 PM   #11
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

I did tar it and configured it and did the make install its the part after that that fails
 
Old 10-29-2010, 12:45 AM   #12
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
I suppose my advice to you now is that you are so close to the beginning and having problems, maybe get a bit more familiar with slackware 13.1, installing programs from source and then try LFS later.

Otherwise, if you are still really keen, delete the LFS partition and start the whole book again, it won't take long at all.

I completed a Linux from scratch build just recently, and I assure you that if you are actually reading each page, and following the instructions then it will work perfectly.
If, however, you are just going from page to page and merely cutting and pasting the commands, it will not work! This is because the commands to extract the packages and change directory into the package folders are not included every time.
 
Old 10-29-2010, 03:58 AM   #13
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bin utils

You know I find it pretty ironic that im basically being called a noob. When im duplicating commands ive been given by the lfs users on this forum and they still dont work. I would think a true lfs person that really cared about how the inner workings of linux really is would be wondering why theyre commands arent working when they are put in exactly as they were given. Instead of just wanting to tell people they dont know what they are doing and to go study. Atleast thats how i thought lfs people were. Who knows maybe theres just to many people out there that were just given a copy of an already made lfs system and decided to claim they are lfs people instead of actually learning it. And taking it seriously

Last edited by kcnewslackuser; 10-29-2010 at 04:00 AM.
 
Old 10-29-2010, 06:31 AM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
LFS, Book 6.7, Prerequisites
Quote:
In particular, as an absolute minimum, you should already have the ability to use the command line (shell) to copy or move files and directories, list directory and file contents, and change the current directory. It is also expected that you have a reasonable knowledge of using and installing Linux software.
If you fulfill this requirements and have read through the first two given links on this page you should be able to follow the book without problems. Even if there occur problems you should most times be able to recognize where the problem is.
There is no way to learn about the inner function of Linux, if you don't know the basics. It is not about copy&paste, it is about knowing what you do and why you do it. This is the purpose of LFS.

Last edited by TobiSGD; 10-29-2010 at 06:33 AM.
 
Old 10-29-2010, 10:15 AM   #15
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
Quote:
Originally Posted by kcnewslackuser View Post
When i try this set of commands it says it already exists

mkdir -v ../gcc-build
cd ../gcc-build

Then when i use these commands it says no such file or directory

../gcc-4.5.1/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-shared --disable-multilib \
> --disable-decimal-float --disable-threads \
> --disable-libmudflap --disable-libssp \
> --disable-libgomp --enable-languages=c \
> --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
> --without-ppl --without-cloog
Go fire up your file browser, browse to your LFS partition, and look at what directory the Terminal is in. You should be able to diagnose such problems before you start with building LFS, as there are MUCH more complicated issues that pop up.

I would play with Linux for a few more days and get familiar with the CLI environment before building Linux. There's no use in building LFS if you don't learn anything from it...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem at 5.12. GCC-4.3.2 - Pass 2 la1nla1n Linux From Scratch 2 01-09-2009 12:40 PM
Stucked at : 5.3. Binutils-2.17 - Pass 1 on LFS-BOOK-SVN-20070304 androme Linux From Scratch 1 03-13-2007 02:49 PM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
GCC Second pass fails thelonewolf Linux From Scratch 1 08-06-2005 11:07 AM
GCC second pass Mystified Linux From Scratch 6 07-28-2005 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration