Installing Binutils (5.3.1)

Melvin Poindexter melvinpoindexter at
Fri Oct 14 07:26:32 PDT 2005

Thank You for your prompt response. I will follow your
suggestion because it makes the most sense. This is
what I originally thought was supposed to be the way
to do it. But, the reason I untarred the Binutils
package outside the $LFS/source directory is because
of the statement in Ch5, "The Binutils documentation
recommends building Binutils outside the source
directory in a dedicated directory:".

Perhaps I read it wrong. Thank You.

--- Seth Turner <sethturner at> wrote:

> On Thu, 13 Oct 2005, Melvin Poindexter wrote:
> >1) What is the current working directory when
> >executing 'mkdir ../binutils-build'?
> >
> For each package you install, you must unpack the
> archive. This will 
> create a source directory. You must then cd into the
> newly created 
> source directory. In your case. You would have the
> archive in 
> $LFS/sources. When you unpack it, you will get a
> directory called 
> $LFS/sources/binutils-
> You need to be in this directory when you execute
> the mkdir 
> ../binutils-build command. This will place the build
> directory right 
> along side binutils- under
> $LFS/sources.
> >2) Which user should I be logged in as when
> executing
> >these commands? lfs or root?
> >  
> >
> At this point in the game, you need to be logged in
> as lfs. If you 
> recall, lfs has ownership of only two directories:
> $LFS/tools and 
> $LFS/sources. If you are $LFS/sources when you try
> the mkdir 
> ../binutils-build from question 1, it would be
> trying to make the 
> binutils-build directory in / (where lfs does not
> have ownership) this 
> is why you were getting a permission denied.
> >Chapter 5.3.1 is unclear to me. Ch. 4 left off
> >sourcing the newly created .bash_profile while
> logged
> >in as LFS (current dir: '/home/lfs'). If I continue
> >logged in as LFS in Ch.5, then I cannot create the 
> >'../binutils-build' directory. Permission Denied.
> >  
> >
> See above. I got ahead of myself ;)
> >I am able to follow the commands in 5.3.1 while
> logged
> >in a root, however. But doesn't the environment
> >interfere with Binutils installation while logged
> in
> >as root?
> >  
> >
> Again, being in the right directory will solve your
> problem. You will be 
> able to do everything you need to as user lfs.
> >Also simply using the command 'configure' (as in
> >'../binultils-') does not
> >work. I must cd into the '/binutils-'
> as
> >root and type it as './configure'. Again, doing
> this
> >as user lfs yields the error './configure: line
> 436:
> >./config.log: Permission Denied'.
> >  
> >
> This part I am not 100% sure on. Try it over again
> with the suggestions 
> above and perhaps this error will be solved in the
> process, if not, let 
> us know!
> I hope some or all of this has been useful. Enjoy
> your build.
> -Seth
> -- 
> FAQ:
> Unsubscribe: See the above information page

Start your day with Yahoo! - Make it your home page!

More information about the lfs-support mailing list