last problem is fixed.
but something is still wrong. it shows many warning messages in progress but
terminates with an error ( i can't find what is it ).
how to fix it?
following is part of the error message:
CC arch/l4/l4lxlib/l4env/memory.o CC arch/l4/l4lxlib/l4env/misc.o CC arch/l4/l4lxlib/l4env/task.o CC arch/l4/l4lxlib/l4env/thread.o AR arch/l4/l4lxlib/l4env/lib.a GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map MODPOST vmlinux WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'rest_init' (at offset 0x4002a6) and 'try_name' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x40180f) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x401827) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x401891) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x4018b3) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x4018f4) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x40192c) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:new_cpu_data from .text between 'main' (at offset 0x401b86) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text:l4env_v2p_init from .text between 'main' (at offset 0x401b9c) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'main' (at offset 0x401ca3) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'main' (at offset 0x40225d) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0x456c9f) and 's_start' WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'l4fb_shutdown' (at offset 0x504b82) and 'l4fb_con_update_rect' WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'virtual_eisa_root_init' (at offset 0x54ac7c) and 'adjust_jiffies' WARNING: vmlinux - Section mismatch: reference to .init:.dyn from (offset 0x66a010) WARNING: vmlinux - Section mismatch: reference to .init.data:.dyn from (offset 0x66a04c) WARNING: vmlinux - Section mismatch: reference to .init.setup:.dyn from (offset 0x66a050) WARNING: vmlinux - Section mismatch: reference to .init.ramfs:.dyn from (offset 0x66a05c) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from no_halt (offset 0x66a0c4) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from mca_pentium (offset 0x66a0c8) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from no_387 (offset 0x66a0cc) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from nosmp (offset 0x66a0d0) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from (offset 0x756004) COMPR vmlinux to vmlinuz26 LOCINST vmlinuz26 Building modules, stage 2. MODPOST 1774 modules WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'rest_init' (at offset 0x4002a6) and 'try_name' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x40180f) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x401827) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x401891) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x4018b3) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x4018f4) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:boot_command_line from .text between 'main' (at offset 0x40192c) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:new_cpu_data from .text between 'main' (at offset 0x401b86) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text:l4env_v2p_init from .text between 'main' (at offset 0x401b9c) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'main' (at offset 0x401ca3) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'main' (at offset 0x40225d) and 'thread_create_user' WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0x456c9f) and 's_start' WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'l4fb_shutdown' (at offset 0x504b82) and 'l4fb_con_update_rect' WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'virtual_eisa_root_init' (at offset 0x54ac7c) and 'adjust_jiffies' WARNING: vmlinux - Section mismatch: reference to .init:.dyn from (offset 0x66a010) WARNING: vmlinux - Section mismatch: reference to .init.data:.dyn from (offset 0x66a04c) WARNING: vmlinux - Section mismatch: reference to .init.setup:.dyn from (offset 0x66a050) WARNING: vmlinux - Section mismatch: reference to .init.ramfs:.dyn from (offset 0x66a05c) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from no_halt (offset 0x66a0c4) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from mca_pentium (offset 0x66a0c8) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from no_387 (offset 0x66a0cc) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from nosmp (offset 0x66a0d0) WARNING: vmlinux - Section mismatch: reference to .init.text:.dyn from (offset 0x756004) WARNING: "scx200_cb_base" [drivers/mtd/maps/scx200_docflash.ko] undefined! WARNING: "scx200_gpio_shadow" [drivers/leds/leds-wrap.ko] undefined! WARNING: "scx200_gpio_base" [drivers/leds/leds-wrap.ko] undefined! WARNING: "scx200_gpio_configure" [drivers/i2c/busses/scx200_i2c.ko] undefined! WARNING: "scx200_gpio_shadow" [drivers/i2c/busses/scx200_i2c.ko] undefined! WARNING: "scx200_gpio_base" [drivers/i2c/busses/scx200_i2c.ko] undefined! WARNING: "scx200_cb_base" [drivers/clocksource/scx200_hrt.ko] undefined! WARNING: "scx200_cb_base" [drivers/char/watchdog/scx200_wdt.ko] undefined! WARNING: "scx200_gpio_shadow" [drivers/char/scx200_gpio.ko] undefined! WARNING: "scx200_gpio_configure" [drivers/char/scx200_gpio.ko] undefined! WARNING: "scx200_gpio_base" [drivers/char/scx200_gpio.ko] undefined! WARNING: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2
在 2007/7/19,Adam Lackorzynski adam@os.inf.tu-dresden.de 撰寫:
On Wed Jul 18, 2007 at 11:45:41 +0800, kashin Lin wrote:
在 2007/7/18,Adam Lackorzynski adam@os.inf.tu-dresden.de 撰寫:
On Tue Jul 17, 2007 at 23:07:13 +0800, kashin Lin wrote:
2007/7/16, Adam Lackorzynski adam@os.inf.tu-dresden.de:
On Sun Jul 15, 2007 at 19:48:04 +0800, kashin Lin wrote:
2007/7/15, Adam Lackorzynski adam@os.inf.tu-dresden.de: > > >On Sun Jul 15, 2007 at 18:20:35 +0800, kashin Lin wrote: >> when i issue make to build l4linux in directory l4linux-2.6/, >> i got some error message: > >Is this a clean tree?
sorry, what does "clean tree" mean?
I mean a freshly checked out tree.
i just make menuconfig in l4linux-2.6/ and then make it.
by the way, i want to ask : the "L4 tree build directory" option in l4linux menuconfig should
be
pointed to "the output directory of l4env" or "the output directory of fiasco" or both?
To the output directory of l4env.
>kashin08@kashin08-desktop:~/L4Linux/L4_x86/l4linux-2.6$ make >> CHK include/linux/version.h >> CHK include/linux/utsrelease.h >> CC arch/l4/kernel/asm-offsets.s >> In file included from include/linux/irqflags.h:46, >> from include/asm-l4/l4-arch/asm/system.h:507, >> from include/asm-l4/l4-arch/asm/processor.h:18, >> from include/asm-l4/i386-arch/asm/atomic.h:5, >> from include/linux/crypto.h:20, >> from arch/l4/kernel/asm-offsets.c:8: >> include/asm-l4/l4-arch/asm/irqflags.h: in function >> ╳uraw_irqs_disabled_flags╳v╳G >> include/asm-l4/l4-arch/asm/irqflags.h:168: Error╳G
╳uL4_IRQ_DISABLED╳v
>> not >> declare >> >> In file included from include/asm-l4/l4-arch/asm/suspend.h:7, >> from include/linux/suspend.h:5, >> from arch/l4/kernel/asm-offsets.c:12: >> include/asm-l4/i386-arch/asm/i387.h: in function
╳usave_init_fpu╳v╳G
>> include/asm-l4/i386-arch/asm/i387.h:101: Error╳G
╳ul4lx_fpu_enabled╳v
>not >> declare >> make[1]: *** [arch/l4/kernel/asm-offsets.s] Error 1 >> make: *** [prepare0] Error 2 >> >> my gcc and g++ and make version are: >> gcc 4.1.2 g++ 4.1.2 make 3.81 > >This is ok. > >Is there a file include/asm/generic/irq.h in your tree? That's
where
>L4_IRQ_DISABLED should be defined.
yes there is. i have tried to test the code (
include/asm-l4/l4-arch/asm/irqflags.h
),
and find the first #ifndef __ASSAMBLY__ is NOT fulfill, so it doesn't include the file file include/asm/generic/irq.h, but the second #ifndef
__ASSAMBLY__ is
fulfill...
Hmm, please do a make V=1 to see the command line how the asm-offset
is
built. Maybe there's a difference.
here is the message when i do a "make V=1", but i don't understand
what
it
says. are there any problems? it seems that the problem still exists.
kashin08@kashin08-desktop:~/L4Linux/L4_x86/l4linux-2.6$ make V=1
rm -f include/config/kernel.release echo 2.6.21-l4 > include/config/kernel.release set -e; echo ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo #define LINUX_VERSION_CODE 132629; echo
'#define
KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /home/kashin08/L4Linux/L4_x86/l4linux-2.6/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp
-s
include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo ' UPD
include/linux/version.h';
mv -f include/linux/version.h.tmp include/linux/version.h; fi CHK include/linux/version.h set -e; echo ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.21-l4" | wc -c ` -gt 64 ]; then
echo
'"
2.6.21-l4" exceeds 64 characters' >&2; exit 1; fi; (echo #define UTS_RELEASE "2.6.21-l4";) < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ]
&&
cmp
-s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm
-f
include/linux/utsrelease.h.tmp; else echo ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi CHK include/linux/utsrelease.h mkdir -p .tmp_versions rm -f .tmp_versions/* make -f scripts/Makefile.build obj=scripts/basic mkdir -p arch/i386/lib make -f scripts/Makefile.build obj=. mkdir -p arch/l4/kernel/ gcc -m32 -Wp,-MD,arch/l4/kernel/.asm-offsets.s.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL__
-Iinclude -include
include/linux/autoconf.h -Iinclude/asm-l4/l4-arch
-Iinclude/asm-l4/i386-arch
-Iinclude/asm-l4/i386-arch/asm/mach-default -I/home/kashin08/L4Linux/L4_x86/build/l4env/include/x86/l4v2 -I/home/kashin08/L4Linux/L4_x86/build/l4env/include/x86 -I/home/kashin08/L4Linux/L4_x86/build/l4env/include/l4v2 -I/home/kashin08/L4Linux/L4_x86/build/l4env/include -I/home/kashin08/L4Linux/L4_x86/l4/../dice/include -DCONFIG_L4_CALL_SYSCALLS -DCONFIG_L4_ABS_SYSCALLS -DL4API_l4v2 -I/home/kashin08/L4Linux/L4_x86/l4linux-2.6/arch/l4/idl -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-O2
-gstabs+ -pipe -msoft-float -DARCH_x86 -mpreferred-stack-boundary=2 -march=k8 -mtune=generic -ffreestanding -maccumulate-outgoing-args -fomit-frame-pointer -g -fno-stack-protector
-Wdeclaration-after-statement
-Wno-pointer-sign -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o arch/l4/kernel/asm-offsets.s arch/l4/kernel/asm-offsets.c In file included from include/linux/irqflags.h:46, from include/asm-l4/l4-arch/asm/system.h:507, from include/asm-l4/l4-arch/asm/processor.h:18, from include/asm-l4/i386-arch/asm/atomic.h:5, from include/linux/crypto.h:20, from arch/l4/kernel/asm-offsets.c:8: include/asm-l4/l4-arch/asm/irqflags.h: in function ☆raw_irqs_disabled_flags★ㄩ include/asm-l4/l4-arch/asm/irqflags.h:168: Errorㄩ ☆L4_IRQ_DISABLED★ not declare
In file included from include/asm-l4/l4-arch/asm/suspend.h:7, from include/linux/suspend.h:5, from arch/l4/kernel/asm- offsets.c:12: include/asm-l4/i386-arch/asm/i387.h: in function
☆save_init_fpu★ㄩ
include/asm-l4/i386-arch/asm/i387.h:101: Errorㄩ
☆l4lx_fpu_enabled★
not declare make[1]: *** [arch/l4/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2
I still cannot see why it breaks for you. Works fine for me. Can you please do a 'make arch/l4/kernel/asm-offsets.i' and send me this asm-offsets.i file along with the .config file? Thanks.
after i do a "make arch/l4/kernel/asm-offsets.i", there is no file named
"
asm-offsets.i" been created. (why?)
Because it breaks when preprocessing. I should not have asked for the file, sorry.
the attached file is .config file.
Please disable the PARAVIRT, KEXEC, HPET_TIMER and MCA options. Then it should compile.
Adam
Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers