LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux From Scratch (http://www.linuxquestions.org/questions/forumdisplay.php?f=13)
-   -   LFS gcc library (http://www.linuxquestions.org/questions/showthread.php?t=4175414268)

esornep 07-01-2012 08:25 AM

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!!!

spiky0011 07-01-2012 09:14 AM

Hi

Can you post the output of the version-check here Also what gcc are you upto Chapter number

esornep 07-01-2012 09:25 AM

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

spiky0011 07-01-2012 09:33 AM

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

esornep 07-01-2012 09:37 AM

But how do we point it to bash done with the rest of the installation .... thanks very much

spiky0011 07-01-2012 09:41 AM

Hi

Code:

sudo rm /bin/sh
Code:

sudo ln -s /bin/bash /bin/sh

esornep 07-01-2012 10:07 AM

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 ......

spiky0011 07-01-2012 10:14 AM

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

esornep 07-01-2012 10:17 AM

Thanks .... and yes do it immediately after installing .... dont mind otherwise :D :D

esornep 07-01-2012 11:52 AM

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 ......

esornep 07-01-2012 12:02 PM

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 .....

spiky0011 07-01-2012 12:20 PM

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

esornep 07-01-2012 12:25 PM

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 ..........

spiky0011 07-01-2012 12:30 PM

Ok you should untar gcc cd into gcc dir then run the commands as per book here at the end

esornep 07-01-2012 12:35 PM

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


All times are GMT -5. The time now is 10:51 PM.