Hi ,
Thankyou for responding .But i am sucessfully completed pass1 , pass2
and now i am in the phase of building the LFS system(6.12. GCC-4.0.3
,6.12.1. Installation of GCC) .I followed all the steps in pass1 and
pass2 strictly (creating seperate dir for gcc and entering to that
directory (build dir.)and configuring the gcc make and make install
..... till no problem, but when i entered into the phase to build the
LFS and install gcc , then the problem arised .
Here is the problem that gcc finds the header in the wrong
location(tools/include) instead of '/usr/include' .I am sure about
that by running the following program segment .
1.
echo 'main(){}' > dummy.c
2.
cc -v dummy.c | grep include
3.The results(some section) comes
#include "..." search starts here:
#include <...> search starts here:
/tools/include
/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include
End of search list.
Instead of
#include <...> search starts here:
> /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include
> /usr/include
> End of search list
4. The problem is picks up the headers from wrong location.
When i run the following program then the o/p is
cat > dummy.c << "EOF"
> #include <stdio.h>
> main(){}
> EOF
cc -H dummy.c
o/p----
. /tools/include/stdio.h
.. /tools/include/features.h
... /tools/include/sys/cdefs.h
... /tools/include/gnu/stubs.h
.. /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
.. /tools/include/bits/types.h
... /tools/include/bits/wordsize.h
... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
... /tools/include/bits/typesizes.h
.. /tools/include/libio.h
... /tools/include/_G_config.h
.... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
.... /tools/include/wchar.h
..... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
..... /tools/include/bits/wchar.h
.... /tools/include/gconv.h
..... /tools/include/wchar.h
...... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
..... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
... /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stdarg.h
.. /tools/include/bits/stdio_lim.h
.. /tools/include/bits/sys_errlist.h
What should i do ..Please help me...
On 1/11/07, Randy McMurchy <[EMAIL PROTECTED]> wrote:
> Debasree Mallick wrote these words on 01/10/07 19:27 CST:
> > Hello
> > I am facing the following problem in building GCC 4.0.3 . If
> > any body know the solution, then please help me.
>
> A brief look at the error messages make me think that perhaps you
> didn't create and enter the 'build' directory as the book outlines.
>
> You should:
>
> 1. unpack the tarball
> 2. change into the newly created directory and apply any necessary patches
> 3. create and change into a 'build' directory (mkdir ../gccbuild; cd
> ../gccbuild)
> 4. run configure and make from within the build directory as the book shows
> (../gcc-4.0.3/configure --stuff)
>
> HTH
>
> --
> Randy
>
> rmlscsi: [bogomips 1003.26] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
> [GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
> 19:55:00 up 20:09, 1 user, load average: 0.53, 0.18, 0.06
> --
> 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