the elf file when logged in as root says my interpreter is /lib/ld-linux.so.2
but when i 'su - lfs' its /tools/lib/ld-linux.so.2
is that how it is supposed to be or should i try readjusting the tool
chain again?

On 5/29/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> On 5/29/07, Peter Santimauro <[EMAIL PROTECTED]> wrote:
> > ...
> > configure:2631: checking for C compiler version
> > configure:2634: gcc --version </dev/null > &5
> > ../glibc-2.3.6/configure: line 2635: /bin/gcc: No such file or directory
> > configure:2637: $? =127
>
> This is in the chroot, right? First, I'm not sure why it says /bin/gcc
> there? Do you have /bin/gcc? You should have only have /tools/bin/gcc
> at this point.
>
> My guess is that your gcc is referring to the wrong program
> interpreter and that results in it saying there's no such file or
> directory. What actually happened is that it tried to execute but
> failed very early because the dynamic linker it wants to use doesn't
> exist in the chroot.
>
> What's the output of "readelf -l /tools/bin/gcc | grep interpreter"?
> (you probably want to leave the chroot to perform this test)
>
> It should say /tools/lib/ld-linux.so.2, but my guess is that it say
> /lib/ld-linux.so.2, which doesn't exist in the chroot. That would mean
> that the Ch. 5 toolchain adjustment didn't go correctly.
>
> http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html
>
> --
> Dan
>
> > configure:2639: gcc -v </dev/null > &5
> > ../glibc-2.3.6/configure: line 2640: /bin/gcc: No such file or directory
> > configure:2642: $? =127
> > configure:2644: gcc -V </dev/null > &5
> > ../glibc-2.3.6/configure: line 2645: /bin/gcc: No such file or directory
> > configure:2647: $? =127
> > configure:2651: checking for suffix of object files
> > configure:2672: ggc -c conftest.c >&5
> > ../glibc-2.3.6/configure: line 2673: /bin/gcc: No such file or directory
> > configure:2675: $? =127
> > configure: failed program was:
> > | /* confdefs.h.  */
> > |
> > | ...confdefs contents ...
> > |
> > |
> > configure: 2689: error: cannot compute suffix of object files: cannot 
> > compile
> >
> > ....
> >
> > any ideas why this is happening?
> > i tryed to run gcc but it isnt there.  this is the second time around
> > for me trying to get this to work. Last time I got this error and
> > restarted, I really don't want to have to do that again :(
> >
> > thank
> > pete
> > --
> > http://linuxfromscratch.org/mailman/listinfo/lfs-support
> > FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> > Unsubscribe: See the above information page
> >
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to