LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-4-6-1-cant-find-in-mnt-lfs-tools-on-lfs-verison-7-0-using-lfs_tgt-4175415770/)

xerofoify 07-09-2012 04:27 PM

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.

spiky0011 07-10-2012 03:19 AM

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

xerofoify 07-11-2012 10:50 AM

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.

spiky0011 07-11-2012 12:07 PM

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

spiky0011 07-11-2012 03:32 PM

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

xerofoify 07-12-2012 02:23 PM

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?

spiky0011 07-12-2012 02:51 PM

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

xerofoify 07-12-2012 05:38 PM

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.

spiky0011 07-13-2012 02:47 AM

Hi

Can you post the version check output as well

xerofoify 07-14-2012 12:00 AM

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.

spiky0011 07-14-2012 01:35 AM

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

xerofoify 07-28-2012 01:17 PM

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.

spiky0011 07-28-2012 02:06 PM

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

xerofoify 07-28-2012 02:34 PM

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.

spiky0011 07-28-2012 04:53 PM

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.