Thread: [rtmk-public] build pb of 0.1.2.0
Brought to you by:
cookin
From: osdevxxx <osd...@si...> - 2000-08-11 07:40:21
|
hi i follow the step as the rtmk install doc to build it in my redhat linux6.2(486dx-100), but it have some build errors,detals as follows(sorry i put it without cutting): [root@jedi build]# ../configure --target=i386-pc-rtmk creating cache ./config.cache checking host system type... i486-pc-linux-gnu checking target system type... i386-pc-rtmk checking build system type... i486-pc-linux-gnu checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes updating cache ./config.cache creating ./config.status creating cpus.h creating platforms.h creating Makefile creating src/Makefile creating lib/Makefile creating lib/elf/Makefile creating lib/system/Makefile creating lib/pthread/Makefile creating lib/malloc/Makefile creating lib/libc/Makefile creating lib/libc/stdio/Makefile creating bootstrap/Makefile creating src/arch/Makefile creating src/libc/Makefile creating src/kern/Makefile creating src/vm/Makefile creating src/ipc/Makefile creating src/arch/i386/Makefile creating src/arch/i386/i386/Makefile creating src/arch/i386/at/Makefile creating lib/system/i386/Makefile linking ../src/arch/i386/include to machine linking ../src/arch/i386/include to i386 linking ../include/rtmk/i386 to rtmk/machine [root@jedi build]# make Making all in lib make[1]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib' Making all in elf make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/elf' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/elf/load.c rm -f libelf.a ar cru libelf.a load.o ranlib libelf.a make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/elf' Making all in system make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/system' Making all in i386 make[3]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/system/i386' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/system/i38 6/vm.S gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/system/i38 6/thread.S gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/system/i38 6/ipc.S gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/system/i38 6/locore.S /usr/bin/ld -r -o i386.o vm.o thread.o ipc.o locore.o make[3]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/system/i386' make[3]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/system' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/system/msg_send.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/system/msg_receive.c rm -f libsystem.a ar cru libsystem.a msg_send.o msg_receive.o i386/i386.o ranlib libsystem.a make[3]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/system' make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/system' Making all in pthread make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/pthread' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/pthread/thread.c rm -f libpthread.a ar cru libpthread.a thread.o ranlib libpthread.a make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/pthread' Making all in malloc make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/malloc' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/malloc/malloc.c rm -f libmalloc.a ar cru libmalloc.a malloc.o ranlib libmalloc.a make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/malloc' Making all in libc make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/libc' Making all in stdio make[3]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/libc/stdio' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/libc/stdio/_doprnt.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../.. -I../../../../include -I../../../../ src -I../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../lib/libc/stdio /printf.c /usr/bin/ld -r -o stdio.o _doprnt.o printf.o make[3]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/libc/stdio' make[3]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib/libc' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../lib/libc/bcopy.c rm -f libc.a ar cru libc.a bcopy.o stdio/stdio.o ranlib libc.a make[3]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/libc' make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib/libc' make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/lib' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib' make[1]: Leaving directory `/home/rtmk-0.1.2.0.1/build/lib' Making all in src make[1]: Entering directory `/home/rtmk-0.1.2.0.1/build/src' Making all in libc make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/src/libc' gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../src/libc/strcpy.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../src/libc/strcmp.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../src/libc/strtoul.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../.. -I../../../include -I../../../src -I../ ../../src/arch -Di386 -DAT386 -g -O2 -c ../../../src/libc/index.c rm -f libc.a ar cru libc.a strcpy.o strcmp.o strtoul.o index.o ranlib libc.a make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src/libc' Making all in arch make[2]: Entering directory `/home/rtmk-0.1.2.0.1/build/src/arch' Making all in i386 make[3]: Entering directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386' Making all in i386 make[4]: Entering directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386/i386' make[4]: Circular symbols.sym <- symbols.sym.o dependency dropped. ../../../../../mksymbols > symbols.symc < ../../../../../src/arch/i386/i386/symb ols.sym gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../../.. -I../../../../../include -I../../ ../../../src -I../../../../../src/arch -Di386 -DAT386 -g -O2 -S -xc -o symbols .sym.o -c symbols.symc sed <symbols.sym.o -e 's/^[^*].*$//' | \ sed -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' >symbols.h cd ../../../.. \ && CONFIG_FILES=./src/arch/i386/i386/Makefile CONFIG_HEADERS= /bin/sh ./config .status creating ./src/arch/i386/i386/Makefile linking ../src/arch/i386/include to machine linking ../src/arch/i386/include to i386 linking ../include/rtmk/i386 to rtmk/machine rm symbols.sym.o symbols.symc make[4]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386/i386' make[4]: Entering directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386/i386' make[4]: Circular symbols.sym <- symbols.sym.o dependency dropped. gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../../.. -I../../../../../include -I../../ ../../../src -I../../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../.. /src/arch/i386/i386/startup.c gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../../.. -I../../../../../include -I../../ ../../../src -I../../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../.. /src/arch/i386/i386/switch.S /tmp/cckevgxK.s: Assembler messages: /tmp/cckevgxK.s:547: Error: Junk `/get thread' after register /tmp/cckevgxK.s:548: Error: Junk `/get kernel stack' after register /tmp/cckevgxK.s:552: Error: Ignoring junk `(,%eax,4)/store stack address' after expression /tmp/cckevgxK.s:553: Error: Ignoring junk `(,%eax,4)/store stack top' after expr ession /tmp/cckevgxK.s:555: Error: Junk `/switch stacks' after register /tmp/cckevgxK.s:556: Error: Junk `/restore registers' after register /tmp/cckevgxK.s:560: Error: Junk `/return zero (no old thread)' after register /tmp/cckevgxK.s:561: Error: Ignoring junk `(%edx)/resume thread' after expressio n /tmp/cckevgxK.s:570: Error: Junk `/get old kernel stack' after register /tmp/cckevgxK.s:574: Error: Ignoring junk `(%edx)/save registers' after expressi on /tmp/cckevgxK.s:578: Error: Ignoring junk `(%edx)/save return PC' after expressi on /tmp/cckevgxK.s:579: Error: Ignoring junk `(%edx)/save SP' after expression /tmp/cckevgxK.s:581: Error: Junk `/get old thread' after register /tmp/cckevgxK.s:582: Error: Ignoring junk `(%eax)/save old stack' after expressi on /tmp/cckevgxK.s:583: Error: Junk `/get continuation' after register /tmp/cckevgxK.s:584: Error: Ignoring junk `(%eax)/save continuation' after expre ssion /tmp/cckevgxK.s:586: Error: Junk `/get new thread' after register /tmp/cckevgxK.s:588: Error: Junk `/get its kernel stack' after register /tmp/cckevgxK.s:593: Error: Ignoring junk `(,%eax,4)/new thread is active' after expression /tmp/cckevgxK.s:594: Error: Ignoring junk `(,%eax,4)/set current stack' after ex pression /tmp/cckevgxK.s:595: Error: Ignoring junk `(,%eax,4)/set stack top' after expres sion /tmp/cckevgxK.s:598: Error: Junk `/switch stacks' after register /tmp/cckevgxK.s:599: Error: Junk `/restore registers' after register /tmp/cckevgxK.s:603: Error: Ignoring junk `(%edx)/return old thread' after expre ssion /tmp/cckevgxK.s:606: Error: Junk `/push the thread argument' after register /tmp/cckevgxK.s:607: Error: Junk `/zero frame pointer' after register /tmp/cckevgxK.s:608: Error: Junk `/call real continuation' after register make[4]: *** [switch.o] Error 1 make[4]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386/i386' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src/arch/i386' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src/arch' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rtmk-0.1.2.0.1/build/src' make: *** [all-recursive] Error 1 ______________________________________ =================================================================== ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ²Î¼ÓÐÂÀË°ÂÔËÇéÂÂÌØʹÆÀÑ¡»î¶¯£¬Ç×ÁÙϤÄáǧìû°ÂÔËÊ¢»á¡£¿ìÀ´²Î¼Ó¡£ http://ad2.sina.com.cn/ads/olympics/ |
From: Johan R. <joh...@ne...> - 2000-08-11 07:56:14
|
osdevxxx wrote: > > hi > i follow the step as the rtmk install doc to build it in my redhat linux6.2(486dx-100), > but it have some build errors,detals as follows(sorry i put it without cutting): > gcc -DPACKAGE=1 -DVERSION=1 -I. -I../../../.. -I../../../../../include -I../../ > ../../../src -I../../../../../src/arch -Di386 -DAT386 -g -O2 -c ../../../../.. > /src/arch/i386/i386/switch.S > /tmp/cckevgxK.s: Assembler messages: > /tmp/cckevgxK.s:547: Error: Junk `/get thread' after register > /tmp/cckevgxK.s:548: Error: Junk `/get kernel stack' after register > /tmp/cckevgxK.s:552: Error: Ignoring junk `(,%eax,4)/store stack address' after > expression I use old format comments in the assembler code. I use binutils 2.9.1 to develop the kernel. What version do you use? -- Johan Rydberg joh...@ne... Net Insight AB, Sweden direct: +46-8-685 04 17 http://www.netinsight.net phone: +46-8-685 04 00 fax: +46-8-685 04 20 |