Error in Make of GCC-4.7.1 - Pass 2 of LFS 7.2
Hi Everyone, hope you all are doing well.
I have got an error while make of GCC pass 2, of LFS 7.2 collect2: error: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 Please guide me on this. my version check results: /bin/sh -> /bin/bash Binutils: (GNU Binutils for Ubuntu) 2.21.0.20110327 bison (GNU Bison) 2.4.1 /usr/bin/yacc -> /usr/bin/bison.yacc bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 8.5 diff (GNU diffutils) 3.0 find (GNU findutils) 4.4.2 GNU Awk 3.1.7 /usr/bin/awk -> /usr/bin/gawk gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 (Ubuntu EGLIBC 2.13-0ubuntu13) 2.13 GNU grep 2.6.3 gzip 1.3.12 Linux version 2.6.38-8-generic (buildd@allspice) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 m4 (GNU M4) 1.4.14 GNU Make 3.81 patch 2.6 Perl version='5.10.1'; GNU sed version 4.2.1 tar (GNU tar) 1.25 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 5.0.0 gcc compilation OK |
Quote:
Not all programs like it and it shows most when doing the tests (chapter 6). Unset MAKEFLAGS or don't use the -jX option. |
Hi
How did chapter 6.10 adjusting toolchain, pan out, did you get all the correct replies? |
Quote:
Thank you. |
Quote:
Thank you for replying. :) |
Sorry misread opps
|
Quote:
|
The problem ain't solved. I removed gcc-build, and this time implemented it with "make" only, with no -j2.. Do i need to start again from Binutils pass 1? I mean start again from very beginning?
|
Quote:
Quote:
BTW: Did you remove the gcc-4.7.1 dir after doing pass 1? You should have, read the second Important box, specifically point 3: 5.3. General Compilation Instructions |
Quote:
collect2: error: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 |
Quote:
Please post the following information: - the generated config.log file - the lines before the collect2: error: ld returned 1 exit status line (have a look here: 1.5.3. Compilation Problems). EDIT: Also have a look here: LFS 7.1 on Ubuntu 12.04. This blog entry is based on LFS7.1 (different package versions), but the steps are the same for 7.2. It might be a good reference to check your steps. |
Quote:
I referred to your link "https://www.linuxquestions.org/questions/blog/druuna-60084/lfs-7-1-on-ubuntu-12-04-34902/" , it seems i have missed 5.8 :( but it seems it isn't in book. "Adjusting the toolchain and specs file"..Is this the cause? If i follow book order its 6.10 adjusting the tool chain part. I am uploading the log file in next comment. |
http://pastebin.com/NsXDXfR2
This is the link to config.log of GCC. Please do guide me further. Thanks :) |
Quote:
Thanks for your patience. |
Quote:
Quote:
Code:
make[2]: *** Waiting for unfinished jobs.... Quote:
Quote:
|
All times are GMT -5. The time now is 12:39 PM. |