LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-01-2012, 08:25 AM   #1
esornep
Member
 
Registered: Jun 2012
Posts: 48

Rep: Reputation: Disabled
LFS gcc library


Following LFS 7.1 and performing actions on UBUNTU 12.04 which is running on a virtual box ........ caught up with gcc error in make file

checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make: *** [all] Error 2


Please help!!!
 
Old 07-01-2012, 09:14 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Can you post the output of the version-check here Also what gcc are you upto Chapter number
 
Old 07-01-2012, 09:25 AM   #3
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
version-check.sh: line 8: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK


I am in the 5th chapter ...... thanks for the reply
 
Old 07-01-2012, 09:33 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Ok this is where the problem lies. You must make your os compatible to build.
Quote:
bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash should point to bash
Binutils: (GNU Binutils for Ubuntu) 2.22
version-check.sh: line 8: bison: command not found bison not installed
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found texinfo needs to installed
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
Needs to corrected, if you want when you have done that post back new version-check just to make sure
 
Old 07-01-2012, 09:37 AM   #5
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
But how do we point it to bash done with the rest of the installation .... thanks very much
 
Old 07-01-2012, 09:41 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Code:
sudo rm /bin/sh
Code:
sudo ln -s /bin/bash /bin/sh
 
Old 07-01-2012, 10:07 AM   #7
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Should I start over from first ..... I guess this is giving back the same error ....... any other method .. i checked with the version it is working fine now thanks for that ......
 
Old 07-01-2012, 10:14 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

As long as the version-check is ok now.

Yes start from the very beginning make sure you get rid of all old directories. Start a clean fresh build.

Ps mark this as solved using thread tools
 
Old 07-01-2012, 10:17 AM   #9
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
Thanks .... and yes do it immediately after installing .... dont mind otherwise
 
Old 07-01-2012, 11:52 AM   #10
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make: *** [all] Error 2


Still the same error any more methods ......
 
Old 07-01-2012, 12:02 PM   #11
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
LFS@ubuntu:~/Documents$ bash version-check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK


this was the version check ........

checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/LFS/LFS/sources/gcc-build'
make: *** [all] Error 2

and this is the error .....
 
Old 07-01-2012, 12:20 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

When you issued this command what directory were you in?
Code:
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -Jxf ../gmp-5.0.4.tar.xz
mv -v gmp-5.0.4 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc
You should of been in /home/LFS/LFS/sources/gcc-4.6.2
and the patch shpuld of been in sources dir
 
Old 07-01-2012, 12:25 PM   #13
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
okay the process was

extracting gmp,mpfr and mpc to the sources directory

then extracting gcc and moving to the gcc directory and patching it up

then moving the above directories to gcc

making a gcc-build directory (in sources directory)

finally running the config file in the gcc-build directory with prefix to the tools directory ..........
 
Old 07-01-2012, 12:30 PM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Ok you should untar gcc cd into gcc dir then run the commands as per book here at the end
 
Old 07-01-2012, 12:35 PM   #15
esornep
Member
 
Registered: Jun 2012
Posts: 48

Original Poster
Rep: Reputation: Disabled
I guess i was right with the process of moving the directories gmp,mpfr,mpc into gcc-4.6.2 and then running the compile file

the book says
Unpack each package into the GCC source directory and rename the
resulting directories so the GCC build procedures will automatically use them
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS gcc library esornep Linux - Newbie 1 07-01-2012 08:37 AM
LFS gcc library esornep Linux - Software 2 07-01-2012 08:29 AM
lfs 6.5 gcc problem aahiqmir Linux From Scratch 1 10-25-2009 09:31 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration