I have not heard a reply from my previous post, therefore I decided to
embark onto something new, there I started following the instructions in the
CLFS-Embedded book.

Once again, I am having problems with GCC (this time its version 4.1.2).
I've patched it per the instruction in the book (
http://cross-lfs.org/view/clfs-embedded/x86/index.html) and everything works
fine... up until the point where an attempt is made to compile crtstuff.c.
I get an error indicating that there is an unterminated comment in
auto-host.h.  Then there is another error, from tconfig.h indicating that
the include file ansidecl.h cannot be found.  From there, more chaos.

What am I missing here?  Is it a patch?  For now, I am dead in the water.
Googling produced nothing.  When I attempted to compile a skeleton C program
with auto-host.h included, everything compiled fine.  Therefore I suspect
xgcc is the problem... but is it???

Here is the error output:

/nonraid-storage/clfs/sources/gcc-build/./gcc/xgcc
-B/nonraid-storage/clfs/sources/gcc-build/./gcc/
-B/nonraid-storage/clfs/cross-tools/i686-pc-linux-gnu/bin/
-B/nonraid-storage/clfs/cross-tools/i686-pc-linux-gnu/lib/ -isystem
/nonraid-storage/clfs/cross-tools/i686-pc-linux-gnu/include -isystem
/nonraid-storage/clfs/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.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include
-I../../gcc-4.1.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.1.2/gcc/crtstuff.c -DCRT_BEGIN \
         -o crtbegin.o
In file included from ../../gcc-4.1.2/gcc/crtstuff.c:60:
./auto-host.h:152:1: error: unterminated comment
./auto-host.h:152:57: warning: no newline at end of file
../../gcc-4.1.2/gcc/crtstuff.c:67:21: warning: ./tconfig.h is shorter than
expected
In file included from ./tconfig.h:6,
                from ../../gcc-4.1.2/gcc/crtstuff.c:67:
./auto-host.h:152:1: error: unterminated comment
./auto-host.h:152:57: warning: no newline at end of file
In file included from ../../gcc-4.1.2/gcc/crtstuff.c:67:
./tconfig.h:8:23: error: ansidecl.h: No such file or directory
../../gcc-4.1.2/gcc/crtstuff.c:68:21: warning: ../../gcc-4.1.2/gcc/tsystem.h
is shorter than expected
In file included from ../../gcc-4.1.2/gcc/tsystem.h:47,
                from ../../gcc-4.1.2/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.2/gcc/tsystem.h:48,
                from ../../gcc-4.1.2/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.2/gcc/tsystem.h:87,
                from ../../gcc-4.1.2/gcc/crtstuff.c:68:


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

Reply via email to