LinuxQuestions.org
Visit Jeremy's Blog.
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 03-10-2011, 05:32 AM   #1
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Rep: Reputation: 0
install binultils-lfsbook6.7


hi all
i am building lfs6.7,using lfslivecdx86-r2160(using as a host)
have done till 4.4[lfs6.7] on one terminal
on terminal'lfs$' is appeared(after chapter 4.4)
------------------------------------------------------
i opened another terminal
first i (from pendrive)copied pakgs (tarf file) to /mnt/lfs,
here i untared lfs-packages6.7 ,like
[root[/mntlfs]#tar -xvf lfs-packages 6.7)
its created one dir'sources'(in /mnt/lfs)
-----------------------------------------------------
i have done two methods at root[ ]# only,not lfs$
because i treid installation @lfs$,but i cant

i done two ways but i dont know will it correctly successful installed or not
--------------------------------------------------------
i am giving onlu last 4 stpes of result
-
1 st method:

cd /mnt/lfs
mkdir /tools
mkdir /sources
mkdir /build
cd build
tar..[whichever pkg-now binutils]
mkdir binutils-build

------------------------------------
$LFS=/mnt/lfs
2)method
cd $LFS/sources
tar ..binutils package
cd binutils pkg
mkdir-v ../binutils-build
cd ../binutils-build ,

here (in two methods) i done following
---------------------------------------------
1)../binutils-2.20.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror


checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
--------------------------------------------
2)make [here i dint see any error msgs]

make[3]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
Making all in po
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/ld/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld/po'
make[4]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'

3)make install( i am using/building 32 bit)
make[3]: Entering directory
`/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make[1]: Nothing to be done for `install-target'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
at both methods same result
after 'make install'
make

1q)do i need to start installation process @ lfs$ or root#
2q)how can i come
3q)how to start fresh installation
4q)if something error occurs ,how to remove partially installed pkg,to start fresh installation

thanks
 
Old 03-10-2011, 10:32 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,
Quote:
Originally Posted by janakiramulu View Post
1q)do i need to start installation process @ lfs$ or root#
All of chapter 5 must be done as user lfs and all of chapter 6 as user root (which is mentioned in the book...)

Quote:
2q)how can i come
???? No idea what you are asking.

Quote:
3q)how to start fresh installation
Fresh as in starting from scratch/remove all that you have done so far? If so:
- as root cd into $LFS and remove everything,
- delete the lfs user,
- remove the /tools link.

Quote:
4q)if something error occurs ,how to remove partially installed pkg,to start fresh installation
The configure, make and make test/check steps do not install anything. If you encounter errors and want to start again with a specific packet: Remove the source directory (and possibly the separate build directory). Untar the package and start again.

Once you do a make install the files are copied ("installed") to their appropriate location. Removing those are harder (you need to do this by hand), luckily all the packages that are installed during the LFS build have a section that mentions all the installed files.

Hope this helps.

Last edited by druuna; 03-10-2011 at 11:01 AM. Reason: Fixed minor mistake
 
Old 03-10-2011, 11:55 AM   #3
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
Quote:
2q)how can i come
I presume you mean change to user lfs? that is done at the end of chapter 4.3 / 4.4 you change to user lfs then. You dont need to be root till chapter 6 as mention by druuna. You must login as user lfs each time you restart building the system
 
Old 03-11-2011, 01:07 AM   #4
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
binutils,gcc -lfs6.7

hi druuna
thanks for reply
1)i have done following procedure
$LFS=/mnt/lfs
cd $LFS/sources
tar ..binutils package
cd binutils pkg
mkdir-v ../binutils-build
cd ../binutils-build
----------------------------------binutils pkg------------
2)
here i am giving only binutils
1)lfs:/mnt/lfs/sources/binutils-build$/configure
2)lfs:/mnt/lfs/sources/binutils-build$ make
3)lfs:/mnt/lfs/sources/binutils-build$ make install
after this i havnt seen any error msgs
if u want see i wl upload separate
instead of uploading ,i will check ,will it installed or not

---------------------------------------------------------
3)i dint add following line to binutils configure
"is this required "CC="gcc-B/usr/bin/" add

before this
../binutils-2.20.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror
-------------------------------------------------------------------------------------------------------
4)after ./configure,make,make install,how can i check is it (specific pkg) successfully insttalled or not

5)what is command to scroll up on terminal
i am seeing only half part after 'make',on terminal
i want copy whole after make command

0r
can we do make > filename
by doing this will it copy into file ,whole after make command

---------------------------------following is gcc pkg--------------------------------------------------
6)while doing 5.5. GCC-4.5.1 - Pass 1

at the end of configure msg was like this
"if you obtained GMP, MPFR and MPC from vendor distrubution package,makesure that you have installed both the libraries and header files,they may be located in separate packages"

---------------------------------------------------------------
7)lfs:/mnt/lfs/sources/gcc-build$ make

make: *** No targets specified and no makefile found. Stop.
-------------------------------------------------------------------------------
DO I NEED TO DOWNALOAD ,AND DO THE REST PART(means untar this pkgs,configure,make,make install)
mpfr-3.0.0.tar.bz2
gmp-5.0.1.tar.bz2
mpc-0.8.2.tar.gz
will it not built in GCC-4.5.1 pkg
-----------------------------------------------------------------------------
 
Old 03-11-2011, 02:21 AM   #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
Quote:
Originally Posted by janakiramulu View Post
i dint add following line to binutils configure
"is this required "CC="gcc-B/usr/bin/" add
Why would you add that? That is part op binutils pass 2, not binutils pass 1.

Follow the book to the letter, don't mix and match!

Quote:
after ./configure,make,make install,how can i check is it (specific pkg) successfully insttalled or not
See post#2, answer to question 4. But if you did not get any errors during the build: Trust the installation process and go to the next step or chapter.

Quote:
what is command to scroll up on terminal
Shift-PageUp/Shift-PageDown and mouse scroll both work on my side.

Quote:
can we do make > filename
by doing this will it copy into file ,whole after make command
You could, but there is no real need to do so. If the make step fails, the error is shown in the last lines of the output, which should still be visible in the terminal.

make .... ..... 2>& 1>make.log

Quote:
while doing 5.5. GCC-4.5.1 - Pass 1

at the end of configure msg was like this
"if you obtained GMP, MPFR and MPC from vendor distrubution package,makesure that you have installed both the libraries and header files,they may be located in separate packages"
If that is shown you did not follow the book. The first step in chapter 5.5 gcc pass 1 deals with this issue.

Quote:
lfs:/mnt/lfs/sources/gcc-build$ make

make: *** No targets specified and no makefile found. Stop.
Only continue when the previous command finished successfully. If the ./configure ... step fails it needs to be resolved first, continuing with the make step is otherwise pointless.

Quote:
DO I NEED TO DOWNALOAD ,AND DO THE REST PART(means untar this pkgs,configure,make,make install)
mpfr-3.0.0.tar.bz2
gmp-5.0.1.tar.bz2
mpc-0.8.2.tar.gz
will it not built in GCC-4.5.1 pkg
You need to follow all the steps in the book, in the order they are given (see my previous remark about the beginning of chapter 5.5).

Hope this helps.
 
Old 03-11-2011, 05:04 AM   #6
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Original Poster
Rep: Reputation: 0
binutils,gcc -lfs6.7

--i didnot/did't add following line to binutils configure
"is this required "CC="gcc-B/usr/bin/" add---
i think i miss typed as dint-sorry for this

1)here i checked with make test/check following result
here error was showing means not installed?

------------binutils-----------------------------------
lfs:/mnt/lfs/sources/binutils-build$ make check
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/bfd'
make[2]: *** No rule to make target `check'. Stop.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/bfd'
make[1]: *** [check-bfd] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [do-check] Error 2



2)------------------------------gcc----------------------------------------------------------------------------

lfs:/mnt/lfs/sources/gcc-build$ ../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

""configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.""

Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.
-------------------------------------------------------------------------------------

3)in /mnt/lfs/sources ,gmp-5.0.1.tar.bz2,mpfr-3.0.0.tar.bz2,mpc-0.8.2.tar.bz2 was there prevoiusly
the following message was after gcc configure,u can see top also

""configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.""

then i downloaded from google following pkgs
gmp-4.2.1.tar.gz,mpfr 2.3.1.tar.gz,mpc 0.8.0.tar.gz
i untared it ,moved to what they mentioned in book
again same error

i think this is not a case( error),see result of gcc configure at last lines ie

""if you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.""

i think i need to check libraries,headers of gmp-5.0.1.tar.bz2,mpfr-3.0.0.tar.bz2,mpc-0.8.2.tar.bz2 packages in /mnt/lfs/sources right
 
Old 03-11-2011, 07:27 AM   #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,
Quote:
Originally Posted by janakiramulu View Post
1)here i checked with make test/check following result
here error was showing means not installed?

------------binutils-----------------------------------
lfs:/mnt/lfs/sources/binutils-build$ make check
Again: READ THE BOOK, THEN READ AND FOLLOW THE BOOK!!!!

The reason why the above doesn't work is mentioned in the binutils pass 1 chapter!!!!!

Quote:
2)------------------------------gcc----------------------------------------------------------------------------

lfs:/mnt/lfs/sources/gcc-build$ ../gcc-4.5.1/configure \
Again: DON'T CONTINUE UNTIL THE PREVIOUS CHAPTER IS SUCCESSFULLY DONE!!!!

Quote:
gmp-4.2.1.tar.gz,mpfr 2.3.1.tar.gz,mpc 0.8.0.tar.gz
These are the wrong versions (have a look at chapter 3.2).

Again: Follow the book!
Quote:
i think i need to check libraries,headers of gmp-5.0.1.tar.bz2,mpfr-3.0.0.tar.bz2,mpc-0.8.2.tar.bz2 packages in /mnt/lfs/sources right
No, you need to follow the book!
 
  


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
Open Office will not install on factory install of Ubuntu 8.04 LTS on Dell Mini 10 trekgirl Linux - Laptop and Netbook 6 08-01-2009 11:37 PM
Uncertain how to configure/install packages & compiler before install VMware on FC8. Azazwa Linux - Newbie 1 03-28-2009 07:27 PM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 05:49 AM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 04:52 AM

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

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