LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-10-2011, 02:26 PM   #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
6.7 section 5.10 gcc 2nd pass


I,m building using 6.7 and lfs live disc. I have got an error on section 5.10 gcc 2nd pass on the make section,
Code:
./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/tools/i686-pc-linux-gnu/bin/ld: values-Xa.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
make[1]: ***[all-target-libgcc] Error 2
make[1] Leaving directory '/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
I would like to know if I can repair this or if not do I delete gcc-4.5.1 and gcc-build and just redo this section again.
I would like to know what happens to what has already been done so far?
This is the 1st error I have received since starting again from begining
I am trying to google, but dont understanding what to do
I hope some one can help me
 
Old 02-10-2011, 03:57 PM   #2
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 have been looking through the gcc config.log. I have found a lot or fatal errors regarding libelf.h / libelf/gelf No such file or directory. configure failed program was: /*confdefs.h*/

Am I on the right track that this part failed
Code:
for file in \
 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
  cp -uv $file{,.orig}
  sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
  -e 's@/usr@/tools@g' $file.orig > $file
  echo '
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0
#define STANDARD_STARTFILE_PREFIX_1 ""
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
  touch $file.orig
done
If so is it safe to go back and just start again the 5.10 section?

Last edited by spiky0011; 02-10-2011 at 03:59 PM.
 
Old 02-11-2011, 02:09 PM   #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
I went back and deleted gcc-build and started again, I did copy and paste the commands, this time no errors. I would like to know if redoing the section was the correct thing to do or could it of been repaired?
 
  


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
[SOLVED] GCC 4.3.2 2nd pass Out of memory cc1plus yaplej Linux From Scratch 5 04-13-2009 06:51 PM
Section 5.12 Pass 2 of installing gcc zzypty Linux From Scratch 4 03-10-2009 12:43 PM
GCC 2nd pass make error - xgcc cannot find -lc cogitocumimpune Linux From Scratch 1 01-11-2009 07:13 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
glibc error on 2nd pass buffed317 Linux From Scratch 3 09-05-2004 07:33 AM

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

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