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. |
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
|
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
I hope these are typo,s Quote:
Did you also build gcc-build from within the gcc dir |
Hi
gcc contents $LFS/tools/bin Code:
i686-lfs-linux-gnu-addr2line i686-lfs-linux-gnu-ld |
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? |
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 |
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. |
Hi
Can you post the version check output as well |
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. |
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 |
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.
|
Hi
The part Quote:
Also what is your host system? What book are you using |
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.
|
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 |
All times are GMT -5. The time now is 06:04 PM. |