On Wed, May 21, 2008 at 03:33:19PM +0800, qchwu wrote:
Ithink the fault is caused by lake of command "quilt". I download the quilt-0.46.tar.gz and install it.Then, I make it ,the following messages appear.
Unpacking filo... Patching filo... Applying patch make.patch Now at patch make.patch make[1]: Entering directory `/bios/buildrom/buildrom-devel/work/filo/svn' rm -f include/arch ln -s ../i386/include include/arch test -f Config && mv Config Config.bak || true cat defconfig i386/defconfig >>Config *** Default Config file is created *** *** Now you examine this file and edit it as you like *** make[1]: Leaving directory `/bios/buildrom/buildrom-devel/work/filo/svn' Building filo... make[1]: Entering directory `/bios/buildrom/buildrom-devel/work/filo/svn' Makefile:63: 3/4-,ae-L--o,^2,C,^1O/OUA:?+-e!DEGclean!+-uA:Au:Ai makerules:46: 3/4-,ae-L--o-oo:AO^1O/OUA:?+-e!DEGclean!+-uA: 3/4EAu:Ai echo '#define PROGRAM_NAME "FILO"' > main/version.h echo '#define PROGRAM_VERSION "0.5 (root@localhost) Wed May 21 03:25:00 CST 2008"' >> main/version.h make -C main make[2]: Entering directory `/bios/buildrom/buildrom-devel/work/filo/svn/main' /bin/echo -e '/* GENERATED FILE, DO NOT EDIT */\n' >../config.h sed -e 's/#.*//' -e '/=/!d' -e 's/([^[:space:]]*)[[:space:]]*=[[:space:]]*(.*).*/#define \1 \2/' -e 's/^#define ([^ ]*) 0$/#undef \1/' ../Config
../config.h
gcc -m32 -nostdinc -Os -isystem /bios/buildrom/buildrom-devel/staging/include -isystem /include -fno-stack-protector -Wall -Os -fomit-frame-pointer -fno-common -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -Wno-unused -
nostdinc -imacros ../config.h -I../include -IDEG^2 *DEG-L--o/usr/local/gcc-4.2.2/lib/gcc/i386-redhat-linux/4.2.2/include -MD -c filo.c -o filo.o OUDEGu:-oNOT *O filo.c-L--o1 uA:IA: 1/4thO:D-: ../include/lib.h:4:20: 'iIo-L--ostddef.h-L--oA>>OD-A:C,,o:IA: 1/4th>>oA:?A 1/4 In file included from filo.c:1: ../include/lib.h:36: 'iIo-L--oexpected !(R))!- before !(R)size!- ../include/lib.h:38: 'iIo-L--oexpected !(R))!- before !(R)nmemb!- ../include/lib.h:39: 'iIo-L--oexpected declaration specifiers or !(R)...!- before !(R)size_t!- ../include/lib.h:42: 'iIo-L--oexpected !(R))!- before !(R)size!- ../include/lib.h:46: 'iIo-L--oexpected !(R)=!-, !(R),!-, !(R);!-, !(R)asm!- or !(R)__attribute__!- before !(R)strnlen!- ../include/lib.h:47: 'iIo-L--oexpected !(R)=!-, !(R),!-, !(R);!-, !(R)asm!- or !(R)__attribute__!- before !(R)strlen!- ../include/lib.h:49: 'iIo-L--oexpected declaration specifiers or !(R)...!- before !(R)size_t!- ../include/lib.h:50: 'iIo-L--oexpected declaration specifiers or !(R)...!- before !(R)size_t!- ../include/lib.h:51: 'iIo-L--oexpected declaration specifiers or !(R)...!- before !(R)size_t!- ../include/lib.h:52: 'iIo-L--oexpected declaration specifiers or !(R)...!- before !(R)size_t!- make[2]: *** [filo.o] 'iIo 1 make[2]: Leaving directory `/bios/buildrom/buildrom-devel/work/filo/svn/main' make[1]: *** [main/builtin.o] 'iIo 2 make[1]: Leaving directory `/bios/buildrom/buildrom-devel/work/filo/svn' make: *** [/bios/buildrom/buildrom-devel/work/filo/svn/filo.elf] 'iIo 2 [root@localhost buildrom-devel]#
I have no idea what's going on here. My guess is that you've got something else in your toolchain that's rather ancient. Can you tell us please what operating system you are building on?
Thanks, Ward.