LinuxQuestions.org
Help answer threads with 0 replies.
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 01-29-2011, 11:22 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Made it to Binutils building


I,m confused, I have unpacked lfs packages 6.7 to sources directory, I have untar binutils ok. It created it's own directory as stated in book, opened the README Do I run ./confiure from within sources/binutils folder, OR as The book sayes outside sources folder
Code:
It is important that Binutils be the first package compiled because both Glibc and GCC perform various tests on the
available linker and assembler to determine which of their own features to enable.
The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build
directory:
Code:
mkdir -v ../binutils-build
cd ../binutils-build
 
Old 01-29-2011, 11:33 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The book always assumes that you are standing in the unpacked directory ($LFS/sources/binutils-2.20.1 in the above case).

The following is executed from that directory:
Code:
mkdir -v ../binutils-build
cd ../binutils-build
And the reason why is this:
Code:
The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory
The actual binutils sources are stored here: $LFS/sources/binutils-2.20.1 and all the work is done from here: $LFS/sources/binutils-build

Hope this helps.
 
Old 01-29-2011, 11:48 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
HaHA I see my mistake it was the ../ that I missed I am not 100% in terminal can you tell, but i.m finding this very interesting.
 
Old 01-29-2011, 02:32 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
1 Question is it safe to shutdown at any time whilst not building? Then do you log back in to user and just carry on building where you left off
 
Old 01-29-2011, 02:42 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Yes, you can shut-down and continue later on.

You do have to remount $LFS and become user lfs first before you continue (talking about chapter 5). Once you arrive at chapter 6 other things need to be done, but lets get there first

Hope this helps.
 
Old 01-29-2011, 02:56 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I,m having problems with 5.5.1 I,ve come up with errors so I deleted gcc-build and started again
 
Old 01-29-2011, 03:31 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Make sure that the source-dir and build-dir are clean before you start again.

Easiest way to do this: Remove them and restart with unpacking the tar file(s).
 
Old 01-29-2011, 03:48 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The error i get is
Code:
errors in '/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc
this is during Make process.
Code:
configure-target-libgcc
error1
 
Old 01-29-2011, 06:06 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Ok if I shutdown I remount lfs ok but I cant login as user lfs unless I carry out section 4.3 again? Also I have 2 colouered prompts as lfs a "green 1" or a "white 1 it changes to white when
Code:
source ~/.bash_profile
 
Old 01-30-2011, 01:02 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
The error i get is
Code:
errors in '/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc
this is during Make process.
Code:
configure-target-libgcc
error1
You need to post more information, the above won't tell us what went possibly wrong.

If an error occurs that you cannot fix yourself post at least the last 10 lines (Have a look at this chapter, especially 1.5.3).

Quote:
Ok if I shutdown I remount lfs ok but I cant login as user lfs unless I carry out section 4.3 again? Also I have 2 colouered prompts as lfs a "green 1" or a "white 1 it changes to white when....
Are you using the LFS liveCD as hosts? If so you need to recreate the lfs user (I.e: chap. 4.3 and 4.4). If you use another distro as host (which I do suspect): The lfs user should already exist...

The change in colouring isn't important, although it does show you that the .bash_profile file is parsed.

Hope this helps.
 
Old 01-30-2011, 05:19 AM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
This is the error I get from make gcc-4.5.1 pass1
Code:
-TLS _o bid_decimal_globals.o -MT bid_decimal_globals.o -MD -MP -MF bid decimal_globals.dep -c ../ ../gcc-4.5.1/libgcc/config/libbid/bid_decimal_globals.c ../ ../gcc-4.5.1/libgcc/config/libbid_decimal_globals.c:47:18 fatal error: fenv.h No such file or directory
compilation terminated.
make[2]: ***[bid_decimal_globals.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc '

make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving direcyory '/mnt/lfs/sources/gcc-build'
make[2]: *** [all] Error 2
I did start again from a fresh install, I am using lfs live cd 6.3 as host with book 6.7 and sources 6.7.
I hope this is enough information
 
Old 01-30-2011, 06:46 AM   #12
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

what was the exact configure command that you issued? I am just taking a guess here, but did you use the '--disable-decimal-float' switch? The header 'fenv.h' stands for floating point environment. So I would start checking the corresponding switch. Also double check if mpfr etc. was extracted in the correct directory, i.e. inside gcc's source directory, not the build directory.
 
Old 01-30-2011, 09:34 AM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Thks crts You pointed me in the right direction it was as simple as a spelling mistake, I have ran make & make install all good. I,m at 5.6. Linux-2.6.35.4 API Headers. The first code
Code:
make mrproper
as it sayes will clean up but in which directory I take it I dont want to run that at lfs:/mnt/sources/gcc-build$ or do I untar the linux-2.6.35.4.tar first? The book dosn,t tell you to go anywhere
 
Old 01-30-2011, 10:34 AM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Have done last part with no errors thks to google,
 
Old 01-30-2011, 11:41 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Just in case (and for other searchers):
Quote:
Originally Posted by spiky0011 View Post
Thks crts You pointed me in the right direction it was as simple as a spelling mistake, I have ran make & make install all good. I,m at 5.6. Linux-2.6.35.4 API Headers. The first code
Code:
make mrproper
as it sayes will clean up but in which directory I take it I dont want to run that at lfs:/mnt/sources/gcc-build$ or do I untar the linux-2.6.35.4.tar first? The book dosn,t tell you to go anywhere
This is a bit unclear in the book, although there is a hint in the title of that chapter.

You indeed need to unpack the linux kernel package and enter that directory, all the header commands are executed from here.
 
  


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
[SOLVED] stuck in building binutils pass1 gibin Linux From Scratch 7 12-23-2010 07:42 AM
ld (binutils) issues when building enigmail on Fedora 7 x86_64 ordealbyfire83 Linux - Software 2 02-05-2008 05:38 PM
Troubles in building cross compiler (error @ binutils) saistain Linux - Software 3 10-15-2007 06:37 AM
Problem on building Binutils bitrux Linux From Scratch 8 10-05-2006 10:04 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM

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

All times are GMT -5. The time now is 01:42 AM.

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