Hi ken,
Thanks for your mail. Sorry for my previous mail. i tried wat
u have said and now the gcc problem has been solved. i have done
sucessfully 'make mrproper'. but when i try 'make headers_check' it
gives the following error:
root:~/linux-2.6.27.4# make headers_check
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/basic/fixdep
gcc: error trying to exec
'/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/as':
execv: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
With regards,
R B
On Wed, Mar 25, 2009 at 8:45 PM, Ken Moffat <[email protected]> wrote:
> On Wed, Mar 25, 2009 at 06:53:04PM +0530, rajesh britto wrote:
>> root:~/linux-2.6.27.4# set | grep PATH
>> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
>>
>> On 3/24/09, Mike McCarty <[email protected]> wrote:
> By top-posting, you are making it hard for people to follow what
> you are replying to. On most linux lists, it is considered bad
> form. In other places, particularly where people use windows, it
> seems to be regarded as normal. On this list, you should also trim
> what you are replying to.
>
> In this case, your original problem was
>> > rajesh britto wrote:
>> > > hi,
>> > > i entered into the chroot environment and then i tried to install the
>> > > packages. but it shows the error:
>> > >
>> > > root:~/linux-2.6.27.4# pwd
>> > > /root/linux-2.6.27.4
>> > > root:~/linux-2.6.27.4# make mrproper
>> > > make: gcc: Command not found
>> > > root:~/linux-2.6.27.4#
>> > >
>> > > dont know how to proceed. help me in this issue.
>> > >
>> > > Note: I am in the chroot environment not in the systems root directory.
>> >
>> > What is your PATH variable?
>
> So, your PATH looks sane. You now have to figure out why gcc is
> not being found in 'make mrproper'. I can think of three likely
> reasons:
>
> 1. For some reason, you didn't build the second pass of gcc in
> chapter 5.
>
> 2. You missed one or more of the essential symlinks.
>
> 3. GCC is linked to the host's libraries.
>
> Some steps to help you solve this:
>
> First, review the essential symlinks (section 6.6). If those are
> all OK (i.e. they exist AND the files they are pointing to also
> exist), in chroot:
>
> type -p gcc
>
> if gcc exists,
> readelf -l $(type -p gcc) | grep Requesting
> and
> ldd -l $(type -p gcc)
>
> If everything those show is in /tools, write a test program to find
> out where it breaks:
> echo 'main(){ puts("hello");}' > hello.c
> gcc -o hello hello.c
>
> if no problems with that
> ./hello
>
> ĸen
> --
> das eine Mal als Tragödie, das andere Mal als Farce
> --
> 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