LinuxQuestions.org
Help answer threads with 0 replies.
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-09-2012, 04:27 PM   #1
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Rep: Reputation: Disabled
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT


I have tried compiling gcc three times and I still can't LFT_TGT
to find the new compiled gcc. If anyone knows how to fix this would
be very helpful.Binutils turns out fine ,just Gcc.
 
Old 07-10-2012, 03:19 AM   #2
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
Hi can you post what problems you are having any error msg. Also any commands you have run. Also what host you are using, is it compliant

Last edited by spiky0011; 07-10-2012 at 03:30 AM.
 
Old 07-11-2012, 10:50 AM   #3
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Basically I run the commands for the book and it works out.The issue through is gcc is being installing in a libexec directory in /tools and not /tools/bin.So
when I run the command ln -vs libgccc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&eh/'`, the error I get is it
doesn't find Gcc in/tools/bin. In addition the distro I am using for the host is Fedora 17.
 
Old 07-11-2012, 12:07 PM   #4
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
Hi

I hope these are typo,s
Quote:
ln -vs libgccc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&eh/'`,
it should be libgcc and &_eh and no , on the end

Did you also build gcc-build from within the gcc dir

Last edited by spiky0011; 07-11-2012 at 12:11 PM.
 
Old 07-11-2012, 03:32 PM   #5
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
Hi
gcc contents $LFS/tools/bin

Code:
i686-lfs-linux-gnu-addr2line  i686-lfs-linux-gnu-ld
i686-lfs-linux-gnu-ar         i686-lfs-linux-gnu-ld.bfd
i686-lfs-linux-gnu-as         i686-lfs-linux-gnu-nm
i686-lfs-linux-gnu-c++filt    i686-lfs-linux-gnu-objcopy
i686-lfs-linux-gnu-cpp        i686-lfs-linux-gnu-objdump
i686-lfs-linux-gnu-elfedit    i686-lfs-linux-gnu-ranlib
i686-lfs-linux-gnu-gcc        i686-lfs-linux-gnu-readelf
i686-lfs-linux-gnu-gcc-4.6.1  i686-lfs-linux-gnu-size
i686-lfs-linux-gnu-gcov       i686-lfs-linux-gnu-strings
i686-lfs-linux-gnu-gprof      i686-lfs-linux-gnu-strip
$LFS/tools/libexec contents is gcc/i686-lfs-linux-gnu
 
Old 07-12-2012, 02:23 PM   #6
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi Spikey,
Tried your ideas and they didn't work. I figured out that everything after cpp to lfs-linux aren't installed.I don't known if gcc is failing or is the book
wrong?
 
Old 07-12-2012, 02:51 PM   #7
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
Hi

I did rebuild this yesterday up to gcc and all worked ok here. Did you make sure that the host passed host requirments http://www.linuxfromscratch.org/lfs/.../hostreqs.html post output
Did you check the md5sum of all packages, maybe post the config log
 
Old 07-12-2012, 05:38 PM   #8
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hey Spikey ,
Found the output of verison-check and installed gcc and bison but I have done this before ,I have found out that grepi s verison 2.12 and not 2.51 or newer.I will
md5sum report the output and also trying configuring again and send you the log file.
 
Old 07-13-2012, 02:47 AM   #9
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
Hi

Can you post the version check output as well
 
Old 07-14-2012, 12:00 AM   #10
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
bash, version 4.2.24(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.22.52.0.1-10.fc17 20120131
bison (GNU Bison) 2.5
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.15
diff (GNU diffutils) 3.2
find (GNU findutils) 4.5.10
GNU Awk 4.0.0
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
./verion-check.sh: line 17: /lib/libc.so.6: No such file or directory
grep (GNU grep) 2.12
grep (GNU grep) 2.12
Linux version 3.3.4-5.fc17.x86_64 (mockbuild@x86-14.phx2.fedoraproject.org) (gcc version
4.7.0 20120504 (Red Hat 4.7.0-4) (GCC) ) #1 SMP Mon May 7 17:29:34 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.82
./verion-check.sh: line 23: patch: command not found
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
./verion-check.sh: line 27: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.1alpha
Compilation OK
Here is the output of verison check, see if this helps.
 
Old 07-14-2012, 01:35 AM   #11
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
Hi

Just a couple of things to fix there.
./verion-check.sh: line 23: patch: command not found
./verion-check.sh: line 27: makeinfo: command not found

this 1 they should affect the build so it,s up to you if you want to track it down
./verion-check.sh: line 17: /lib/libc.so.6: No such file or directory.

Also why not build the newer version lfs7.1as alot of your software is newer than required

Last edited by spiky0011; 07-14-2012 at 01:39 AM.
 
Old 07-28-2012, 01:17 PM   #12
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
I installed all the software needed for the build but it doesn't build gcc all the way through and doesn't install in /tools/bin , in addtion the command after can't find libc.so.6 as it is in /lib64. Do you have any ideas on how to fix these problems.
 
Old 07-28-2012, 02:06 PM   #13
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
Hi

The part
Quote:
can't find libc.so.6 as it is in /lib64
when do you get this is it in the version check???

Also what is your host system?

What book are you using

Last edited by spiky0011; 07-28-2012 at 02:12 PM.
 
Old 07-28-2012, 02:34 PM   #14
xerofoify
LQ Newbie
 
Registered: Jul 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
What happens is when I compile Gcc it stops after a few seconds and then quits , in addition when I run the command after compiling gcc it states that it can't find gcc so I am assuring it isn't becoming compiled properly.
 
Old 07-28-2012, 04:53 PM   #15
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
Hi

I dont know how to fix the lib.so.6 on Fedora as I dont use it,
Also some of your host packages are newer than what is required on lfs 7.0 to build, binutils and gcc
 
  


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] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
cannot run command under th path /mnt/lfs/tools alkaff Linux From Scratch 1 05-05-2008 03:59 AM
lfs:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux From Scratch 5 03-19-2008 01:15 PM
lfs:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux - Newbie 2 03-16-2008 11:16 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

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

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