Chpt 6.14 GCC no such file (Repost of question)

Michael creznedmick at gmail.com
Mon May 15 19:56:56 PDT 2006


On Mon, 2006-05-15 at 06:06 -0700, Dan Nicholson wrote:
> On 5/14/06, Michael <creznedmick at gmail.com> wrote:
> > On Sun, 2006-05-14 at 19:42 -0700, Dan Nicholson wrote:
> > > On 5/14/06, Michael <creznedmick at gmail.com> wrote:
> > > >
> > > > In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> > > > ../../gcc-3.4.3/gcc/tsystem.h:79:19: stdio.h: No such file or directory
> > >
> > > Could you show the command that was run by make leading to this
> > > failure?
> >
> > I copy and pasted the command into the terminal
> >
> > root:/sources/gcc-build# ../gcc-3.4.3/configure --prefix=/usr     --
> > libexecdir=/usr/lib --enable-shared     --enable-threads=posix --enable-
> > __cxa_atexit     --enable-clocale=gnu --enable-languages=c,c++
> 
> I wasn't explicit enough here.  I don't mean the command that you ran,
> but the command that was in the Makefile leading to this.  Correct me
> if I'm wrong, but I think it's something like this:
> 
> /tools/src/build/gcc-build/gcc/xgcc -B/tools/src/build/gcc-build/gcc/
> -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
> /usr/i686-pc-linux-gnu/include -isystem
> /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include  -I. -I.
> -I../../gcc-4.0.2/gcc -I../../gcc-4.0.2/gcc/.
> -I../../gcc-4.0.2/gcc/../include
> -I../../gcc-4.0.2/gcc/../libcpp/include   -g0 -finhibit-size-directive
> -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
> -fno-unit-at-a-time -fno-omit-frame-pointer \
>    -c ../../gcc-4.0.2/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> 
> except that the paths you have are different (/sources/gcc-build/...
> instead of /tools/src/build/gcc-build/...) since this was from my
> build log.  The important thing is that xgcc is being run, not the gcc
> in /tools.  Is that right?  Just paste the lines before the "no such
> file" error from the build log.  If you don't have a build log, then
> rerun the gcc build until the error since we'll be testing xgcc
> anyway.
> 
> --
> Dan

Greetings
I saw the other thread with similar problem you have been helping with.
I carried out the suggested commands and the only thing I noticed is at
one stage I get an error

root:/sources/gcc-build/gcc# /sources/gcc-build/gcc/xgcc -v dummy.c |
grep include
xgcc: installation problem, cannot exec `cc1': No such file or directory

but later this works:
root:/sources/gcc-build/gcc# /sources/gcc-build/gcc/xgcc -v dummy.c |
grep include

root:/# echo 'main(){}' > dummy.c
root:/# cc -v dummy.c | grep include
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools --
libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --
enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-
languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/cc1 -quiet -v dummy.c -quiet -
dumpbasedummy.c -mtune=pentiumpro -auxbase dummy -version -
o /tmp/ccUi2nRF.s
ignoring nonexistent directory "/tools/lib/gcc/i686-pc-linux-
gnu/3.4.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /tools/include
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include
End of search list.
GNU C version 3.4.3 (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64476
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-
gnu/bin/as -V -Qy -o /tmp/ccgvKIsA.o /tmp/ccUi2nRF.s
GNU assembler version 2.15.94.0.2.2 (i686-pc-linux-gnu) using BFD
version 2.15.94.0.2.2 20041220
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-
linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /tools/lib/gcc/i686-pc-linux-
gnu/3.4.3/crtbegin.o -L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3 -
L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-
gnu/lib /tmp/ccgvKIsA.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -
lgcc --as-needed -lgcc_s --no-as-needed /tools/lib/gcc/i686-pc-linux-
gnu/3.4.3/crtend.o /usr/lib/crtn.o

root:/# cat > dummy.c << "EOF"
> #include <stdio.h>
> main(){}
> EOF
root:/#
root:/# cc -H dummy.c
. /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/3.4.3/include/stddef.h
.. /tools/include/bits/types.h
... /tools/include/bits/wordsize.h
... /tools/lib/gcc/i686-pc-linux-gnu/3.4.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/3.4.3/include/stddef.h
.... /tools/include/wchar.h
..... /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include/stddef.h
..... /tools/include/bits/wchar.h
.... /tools/include/gconv.h
..... /tools/include/wchar.h
...... /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include/stddef.h
..... /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include/stddef.h
... /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include/stdarg.h
.. /tools/include/bits/stdio_lim.h
.. /tools/include/bits/sys_errlist.h

root:/# cd /sources//gcc-build/gcc/
root:/sources/gcc-build/gcc# $ cat > dummy.c << "EOF"
> #include <stdio.h>
> main(){}
> EOF
bash: $: command not found

root:/sources/gcc-build/gcc# /sources/gcc-build/gcc/xgcc -v dummy.c |
grep include
Using built-in specs.
Configured with: ../gcc-3.4.3/configure --prefix=/tools --
libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --
enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-
languages=c,c++ --disable-libstdcxx-pch :
(reconfigured) ../gcc-3.4.3/configure --prefix=/usr --
libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-
__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 3.4.3
 cc1 -quiet -v -iprefix /sources/gcc-build/gcc/../lib/gcc/i686-pc-linux-
gnu/3.4.3/ dummy.c -quiet -dumpbase dummy.c -mtune=pentiumpro -auxbase
dummy -version-o /tmp/ccJWu0a9.s
xgcc: installation problem, cannot exec `cc1': No such file or directory

root:/sources/gcc-build/gcc# echo | /sources/gcc-build/gcc/cc1 -v
ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-
gnu/3.4.3/include"
ignoring nonexistent directory "/usr/lib/../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
End of search list.

Execution times (seconds)
 parser                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 6%)
wall
 TOTAL                 :   0.01             0.01             0.17
root:/sources/gcc-build/gcc#








More information about the lfs-support mailing list