Please help me

Vladimir A. Pavlov pv4 at bk.ru
Thu Jan 11 13:03:06 PST 2007


On Thursday 11 January 2007 10:24, Debasree Mallick wrote:
> 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 .

You're speaking about gcc installed in 6.12, right?

If so, then

1. Check whether your path contains "/usr/bin:/tools/bin" in the shown
   order, not the reverse one "/tools/bin:/usr/bin" used in the ch.5.

2. Check whether you pass the correct --prefix when building gcc in
   6.12.

3. Check whether gcc was actually installed in 6.12 since if an error
   occurs while running "make install" then the installation stops and
   "gcc" will invoke the temporary gcc, not the one compiled in 6.12.

> In file included from ../../sources/gcc-4.0.3/gcc/crtstuff.c:64:
> ../../sources/gcc-4.0.3/gcc/tsystem.h:111:18: error: time.h: No such
> file or directory
> make[1]: *** [crtbegin.o] Error 1
> make[1]: Leaving directory `/gcc-build4/gcc'

Do you actually have this file? Run the following in chroot

$ ls -l /usr/include/time.h /tools/include/time.h

-- 
Nothing but perfection
pv



More information about the lfs-support mailing list