An error is being generated during the compilation of the GCC 4.1.1 Cross
Compiler.  I believe I understand what the problem is, however I was
wondering how to fix it (i.e. is there a patch?).  The problem as I see is
that the include paths are (possibly) not set properly and hence neither
auto-host.h nor tconfig.h can be found.  These files are located in the
gcc-build/gcc directory, not in the gcc-4.1.1/gcc directory.

Can anyone explain how to correct this issue or offer any info where I can
get a patch?

Below is some relevant information that might help in diagnosing this
problem.  Please let me know if anything additional is required.

Thank you in advance.

Dave

--------------------------------------------------------------------------

SITUATION
----------
Installation of Cross GCC Compiler with Static libgcc and no
Threads (CLFS-1.0.0-x86 Section 5.6.1) fails.


SOURCE PACKAGE and PATCHES APPLIED
-----------------------------------
gcc-4.1.1.tar.bz2
gcc-4.1.1-cross-search-paths-1.patch
gcc-4.1.1-posix-1.patch
gcc-4.1.1-specs-1.patch


ENVIRONMENT SETTINGS
---------------------
CLFS_HOST=x86_64-cross-linux-gnu
TERM=xterm
CLFS_TARGET=i686-pc-linux-gnu
OLDPWD=/nonraid-storage/clfs/sources/gcc-4.1.1
LC_ALL=POSIX
CLFS=/nonraid-storage/clfs
PATH=/cross-tools/bin:/bin:/usr/bin
PWD=/nonraid-storage/clfs/sources/gcc-build
PS1=\u:\w\$
SHLVL=1
HOME=/home/clfs
_=/bin/env


ERROR OUTPUT
-------------
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh ../../gcc-4.1.1/gcc/mkconfig.sh tconfig.h
/nonraid-storage/clfs/sources/gcc-build/./gcc/xgcc
-B/nonraid-storage/clfs/sources/gcc-build/./gcc/
-B/cross-tools/i686-pc-linux-gnu/bin/ -B/cross-tools/i686-pc-linux-gnu/lib/
-isystem /cross-tools/i686-pc-linux-gnu/include -isystem
/cross-tools/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
-I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -Dinhibit_libc -fno-omit-frame-pointer \
 -c ../../gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
 -o crtbegin.o
../../gcc-4.1.1/gcc/crtstuff.c:60:23: error: auto-host.h: No such file or
directory
../../gcc-4.1.1/gcc/crtstuff.c:67:21: error: tconfig.h: No such file or
directory
../../gcc-4.1.1/gcc/crtstuff.c:68:21: warning: ../../gcc-4.1.1/gcc/tsystem.h
is shorter than expected
In file included from ../../gcc-4.1.1/gcc/tsystem.h:47,
                from ../../gcc-4.1.1/gcc/crtstuff.c:68:
/nonraid-storage/clfs/sources/gcc-build/./gcc/include/stddef.h:103:1: error:
unterminated comment
/nonraid-storage/clfs/sources/gcc-build/./gcc/include/stddef.h:51:1: error:
unterminated #ifndef
/nonraid-storage/clfs/sources/gcc-build/./gcc/include/stddef.h:31:1: error:
unterminated #if
In file included from ../../gcc-4.1.1/gcc/tsystem.h:48,
                from ../../gcc-4.1.1/gcc/crtstuff.c:68:
/nonraid-storage/clfs/sources/gcc-build/./gcc/include/float.h:31:1: error:
unterminated #ifndef
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:68:
../../gcc-4.1.1/gcc/tsystem.h:53: warning: parameter names (without types)
in function declaration
../../gcc-4.1.1/gcc/tsystem.h:69: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strlen'
../../gcc-4.1.1/gcc/tsystem.h:73: error: expected declaration specifiers or
'...' before 'size_t'
../../gcc-4.1.1/gcc/tsystem.h:73: warning: conflicting types for built-in
function 'memcpy'
../../gcc-4.1.1/gcc/tsystem.h:77: error: expected declaration specifiers or
'...' before 'size_t'
../../gcc-4.1.1/gcc/tsystem.h:77: warning: conflicting types for built-in
function 'memset'
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:68:
../../gcc-4.1.1/gcc/tsystem.h:135:23: error: filenames.h: No such file or
directory
../../gcc-4.1.1/gcc/crtstuff.c:69:23: warning: ../../gcc-4.1.1/gcc/coretypes.h
is shorter than expected
../../gcc-4.1.1/gcc/crtstuff.c:70:16: error: tm.h: No such file or directory
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:71:
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:42: error: expected
specifier-qualifier-list before 'size_t'
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:67: error: expected
specifier-qualifier-list before 'size_t'
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:87: error: expected
specifier-qualifier-list before 'size_t'
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:71:
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:118:1: error: unterminated comment
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:130:62: warning: no newline at end of
file
../../gcc-4.1.1/gcc/unwind-dw2-fde.h:32:1: error: unterminated #ifndef
../../gcc-4.1.1/gcc/crtstuff.c:107:1: error: unterminated comment
../../gcc-4.1.1/gcc/crtstuff.c:109:18: warning: no newline at end of file
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/nonraid-storage/clfs/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2

--------------------------------------------------------------------------
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to