The first question in buildrom is solved,thanks for ward.But i encount a new question during the make processing.The following is the wrong message: ---------------------------------------------------- make[1]:Leaving directory "/bios/buildrom/buildrom-devel/work/nrv2b/svn" Unpacking filo... patching filo... /bios/buildrom/buildrom-devel/doquilt.sh:line 39:quilt:command not found make:***[/bios/buildrom-devel/work/filo/stamps/.patched] 错误127
------------------------------------------------------
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: 警告:覆盖关于目标“clean”的命令 makerules:46: 警告:忽略关于目标“clean”的旧命令 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 -I安装:/usr/local/gcc-4.2.2/lib/gcc/i386-redhat-linux/4.2.2/include -MD -c filo.c -o filo.o 在包含自 filo.c:1 的文件中: ../include/lib.h:4:20: 错误:stddef.h:没有那个文件或目录 In file included from filo.c:1: ../include/lib.h:36: 错误:expected ‘)’ before ‘size’ ../include/lib.h:38: 错误:expected ‘)’ before ‘nmemb’ ../include/lib.h:39: 错误:expected declaration specifiers or ‘...’ before ‘size_t’ ../include/lib.h:42: 错误:expected ‘)’ before ‘size’ ../include/lib.h:46: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strnlen’ ../include/lib.h:47: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’ ../include/lib.h:49: 错误:expected declaration specifiers or ‘...’ before ‘size_t’ ../include/lib.h:50: 错误:expected declaration specifiers or ‘...’ before ‘size_t’ ../include/lib.h:51: 错误:expected declaration specifiers or ‘...’ before ‘size_t’ ../include/lib.h:52: 错误:expected declaration specifiers or ‘...’ before ‘size_t’ make[2]: *** [filo.o] 错误 1 make[2]: Leaving directory `/bios/buildrom/buildrom-devel/work/filo/svn/main' make[1]: *** [main/builtin.o] 错误 2 make[1]: Leaving directory `/bios/buildrom/buildrom-devel/work/filo/svn' make: *** [/bios/buildrom/buildrom-devel/work/filo/svn/filo.elf] 错误 2 [root@localhost buildrom-devel]#
-----------------------------------------------------
the "make distclean"is used before the make.How can i clear this fault.
thanks, chenghu qing
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.