Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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
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.
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.
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
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.