LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-12-2014, 10:04 PM   #1
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Rep: Reputation: 18
installation of cross gcc, ch 5.5 of book 7.5


i have just started building an lfs system, and am getting the bugs worked out. i have had several issues with missing something here or there and figuring it out, but am having this one issue that seems so basic i can't find any info on it. the book says to unpack the tar into the gcc source directory and rename the directories so the build procedures will use them automatically. i am having trouble finding this directory. i thought they were in the /bin foloder, but can't remember where they were. i haven't messed with linux much for a year or so, and this is my first build. it took me several hours of research to get the first crossbinutils built, and the time was 4 minutes. now, i don't want to mess up and just put them in the wrong place, everything is going relatively smoothly, at least it's working.
 
Old 04-12-2014, 11:18 PM   #2
stefan1959
Member
 
Registered: Feb 2006
Posts: 34

Rep: Reputation: 1
Quote:
Originally Posted by sfzombie13 View Post
i have just started building an lfs system, and am getting the bugs worked out. i have had several issues with missing something here or there and figuring it out, but am having this one issue that seems so basic i can't find any info on it. the book says to unpack the tar into the gcc source directory and rename the directories so the build procedures will use them automatically. i am having trouble finding this directory. i thought they were in the /bin foloder, but can't remember where they were. i haven't messed with linux much for a year or so, and this is my first build. it took me several hours of research to get the first crossbinutils built, and the time was 4 minutes. now, i don't want to mess up and just put them in the wrong place, everything is going relatively smoothly, at least it's working.
the book creates and moves you into the build directory

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

So the directory is sources/gcc-build

Steve

Last edited by stefan1959; 04-13-2014 at 03:21 PM.
 
1 members found this post helpful.
Old 04-13-2014, 09:14 AM   #3
sfzombie13
Member
 
Registered: Dec 2003
Location: wv
Distribution: slackware, lfs, kali, pentoo, centos
Posts: 168

Original Poster
Rep: Reputation: 18
thanx so much. i hope to get this done tonight and start using it tomorrow. one more thing, if i may. why does it make me sudo when making a directory when i am supposed to be the owner of the directory? i am using the user 'lfs' like the book said, and did the chmod and chown to make lfs the owner, but when i try to create a directory or delete the build directory, i have to sudo it. not a big deal, it works, just trying to understand it better. which is one of the reasons i am making this os.

i am getting it, but i have to type in the whole path in order to create the directory without sudo, ex: mkdir -v $LFS/sources/gcc-build instead of mkdir -v ../gcc-build. and when i sudo created it without the full path, it said directory not found when i tried to go into it, but it showed up on the gui in the file list. confusing, but working.

Last edited by sfzombie13; 04-13-2014 at 09:28 AM. Reason: had a question to add, then another thought
 
Old 04-13-2014, 02:33 PM   #4
stefan1959
Member
 
Registered: Feb 2006
Posts: 34

Rep: Reputation: 1
Quote:
Originally Posted by sfzombie13 View Post
thanx so much. i hope to get this done tonight and start using it tomorrow. one more thing, if i may. why does it make me sudo when making a directory when i am supposed to be the owner of the directory? i am using the user 'lfs' like the book said, and did the chmod and chown to make lfs the owner, but when i try to create a directory or delete the build directory, i have to sudo it. not a big deal, it works, just trying to understand it better. which is one of the reasons i am making this os.

i am getting it, but i have to type in the whole path in order to create the directory without sudo, ex: mkdir -v $LFS/sources/gcc-build instead of mkdir -v ../gcc-build. and when i sudo created it without the full path, it said directory not found when i tried to go into it, but it showed up on the gui in the file list. confusing, but working.
I never had those issues, so the lfs user gets a error using tar?
Most important to reread
http://www.linuxfromscratch.org/lfs/...tructions.html

"Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.

Change to the directory created when the package was extracted.

Follow the book's instructions for building the package.

Change back to the sources directory.

Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise."
All that should be done without sudo.

Steve

Last edited by stefan1959; 04-13-2014 at 02:44 PM.
 
  


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
LXer: Sigil, Open Source and Cross Platform WYSIWYG E-Book Editor LXer Syndicated Linux News 0 06-01-2011 11:30 AM
Know of a true cross-platform address book - text prefered? davidengel Linux - Software 2 12-09-2008 10:37 AM
Cross Compiling gcc sci3ntist Programming 3 08-07-2007 08:33 AM
Cross compiling gcc 4.x mks_jangra Linux - Software 1 05-17-2007 08:32 PM
LXer: Book Review: Cross platform GUI programming with wxWidgets LXer Syndicated Linux News 2 12-21-2005 12:52 PM

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

All times are GMT -5. The time now is 09:23 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