Problems building Xenomai 2.4-rc4 and linux2.6.23
Robert Gubler wrote:
[...]
Quoted 9 lines
AS arch/i386/boot/compressed/head.o CC arch/i386/boot/compressed/misc.o In file included from
include/linux/ipipe_base.h:29, frominclude/linux/kernel.h:17, frominclude/asm/system.h:4, frominclude/asm/processor.h:18, frominclude/asm/thread_info.h:16, frominclude/linux/thread_info.h:21, frominclude/linux/preempt.h:9,
Quoted 8 lines
from
include/linux/spinlock.h:49,
frominclude/linux/vmalloc.h:4,
fromarch/i386/boot/compressed/misc.c:14:include/asm/ipipe_base.h:26:25: error:irq_vectors.h: No such file or directory
make[2]: *** [arch/i386/boot/compressed/misc.o] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2
I had the same issue with this setup(*). It went away when I switched the subarch from CONFIG_X86_GENERICARCH (default with FC) to CONFIG_X86_PC.
setup:
linux-2.6.23.1.tar.bz2
xenomai-2.4-rc4.tar.bz2
adeos-ipipe-2.6.23-i386-1.10-10.patch
If you do need GENERICARCH, you can tweak arch/i386/boot/compressed/Makefile and add -I${yourlinuxabsolutepath}/include/asm-i386/mach-default to CFLAGS.
BTW, I had also to patch include/asm-i386/mach-default/mach_time.h, adding a missing #include <linux/bcd.h> for BCD macros.
Signature · 1 line
Stephane
Quoted 23 lines · Fillod Stephane
Robert Gubler wrote:
[...]Quoted 12 lines
AS
arch/i386/boot/compressed/head.o
CCarch/i386/boot/compressed/misc.o
In file included frominclude/linux/ipipe_base.h:29,from include/linux/kernel.h:17, from include/asm/system.h:4, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/vmalloc.h:4, from arch/i386/boot/compressed/misc.c:14:Quoted 5 lines
include/asm/ipipe_base.h:26:25: error:irq_vectors.h: No such file or directory
make[2]: *** [arch/i386/boot/compressed/misc.o] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2I had the same issue with this
setup(*). It went away when I switched the subarch fromCONFIG_X86_GENERICARCH(default with FC) toCONFIG_X86_PC.
Quoted 7 lines
setup:
linux-2.6.23.1.tar.bz2
xenomai-2.4-rc4.tar.bz2
adeos-ipipe-2.6.23-i386-1.10-10.patchIf you do need GENERICARCH, you can tweak
arch/i386/boot/compressed/Makefileand add -I${yourlinuxabsolutepath}/include/asm-i386/mach-default to CFLAGS.
The attached patch fixes it (failed to find the time for posting it earlier, sorry). Philippe, we do need my original version here, mflags-y is not enough (actually, it is not needed now).
Quoted 4 lines
BTW, I had also to patch
include/asm-i386/mach-default/mach_time.h, adding a missing #include <linux/bcd.h> for BCD macros.
That doesn't tell me anything. Also with the default .config and X86_GENERIC? Otherwise, please provide the involved .config.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
arch/i386/boot/compressed/Makefile +1 -1
@@ -11,7 +11,7 @@ EXTRA_AFLAGS := -traditional LDFLAGS_vmlinux := -T hostprogs-y := relocs -CFLAGS := -m32 -D__KERNEL__ $(LINUXINCLUDE) $(mflags-y) -O2 \ +CFLAGS := -m32 -D__KERNEL__ $(LINUXINCLUDE) -Iinclude/asm-i386/mach-default -O2 \ -fno-strict-aliasing -fPIC \ $(call cc-option,-ffreestanding) \ $(call cc-option,-fno-stack-protector)
Quoted 28 lines · Jan Kiszka
Quoted 27 lines · Fillod Stephane
Robert Gubler wrote:
[...]Quoted 12 lines
AS
arch/i386/boot/compressed/head.o
CCarch/i386/boot/compressed/misc.o
In file included frominclude/linux/ipipe_base.h:29,from include/linux/kernel.h:17, from include/asm/system.h:4, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/vmalloc.h:4, from arch/i386/boot/compressed/misc.c:14:Quoted 5 lines
include/asm/ipipe_base.h:26:25: error:irq_vectors.h: No such file or directory
make[2]: *** [arch/i386/boot/compressed/misc.o] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2I had the same issue with this
setup(*). It went away when I switched the subarch fromCONFIG_X86_GENERICARCH(default with FC) toCONFIG_X86_PC.setup:
linux-2.6.23.1.tar.bz2
xenomai-2.4-rc4.tar.bz2
adeos-ipipe-2.6.23-i386-1.10-10.patch
Quoted 6 lines
Quoted 2 lines
If you do need GENERICARCH, you can tweak
arch/i386/boot/compressed/Makefileand add -I${yourlinuxabsolutepath}/include/asm-i386/mach-default to CFLAGS.The attached patch fixes it (failed to find the time for posting it earlier, sorry). Philippe, we do need my original version here, mflags-y is not enough (actually, it is not needed now).
The proper fix is the one below. Forcing mach-default as your patch does would prevent the per-platform overrides to happen for some headers, like irq_vectors.h. We do need the contents of mflags-y to be passed to the leaf Makefile, verbatim. It's only a matter of proper quoting of theisvariable when running make recursively, actually.
arch/i386/boot/Makefile +0 -1
@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)
IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"
IMAGE_OFFSET=$(IMAGE_OFFSET) $@
# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =
{[email protected]} git diff arch/i386
arch/i386/Makefile +1 -1
@@ -128,7 +128,7 @@ all: bzImage zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage zImage bzImage: vmlinux - $(Q)$(MAKE) $(build)=$(boot) mflags-y=$(mflags-y) $(KBUILD_IMAGE) + $(Q)$(MAKE) $(build)=$(boot) mflags-y="$(mflags-y)" $(KBUILD_IMAGE) compressed: zImage
arch/i386/boot/Makefile +0 -1
@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)
IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"
IMAGE_OFFSET=$(IMAGE_OFFSET) $@
# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =
Signature · 1 line
Philippe.
Quoted 84 lines · Philippe Gerum
Quoted 28 lines · Jan Kiszka
Quoted 27 lines · Fillod Stephane
Robert Gubler wrote:
[...]Quoted 12 lines
AS
arch/i386/boot/compressed/head.o
CCarch/i386/boot/compressed/misc.o
In file included frominclude/linux/ipipe_base.h:29,from include/linux/kernel.h:17, from include/asm/system.h:4, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/vmalloc.h:4, from arch/i386/boot/compressed/misc.c:14:Quoted 5 lines
include/asm/ipipe_base.h:26:25: error:irq_vectors.h: No such file or directory
make[2]: *** [arch/i386/boot/compressed/misc.o] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2I had the same issue with this
setup(*). It went away when I switched the subarch fromCONFIG_X86_GENERICARCH(default with FC) toCONFIG_X86_PC.setup:
linux-2.6.23.1.tar.bz2
xenomai-2.4-rc4.tar.bz2
adeos-ipipe-2.6.23-i386-1.10-10.patchQuoted 5 lines
Quoted 2 lines
If you do need GENERICARCH, you can tweak
arch/i386/boot/compressed/Makefileand add -I${yourlinuxabsolutepath}/include/asm-i386/mach-default to CFLAGS.The attached patch fixes it (failed to find the time for posting it earlier, sorry). Philippe, we do need my original version here, mflags-y is not enough (actually, it is not needed now).
The proper fix is the one below. Forcing mach-default as your patch does would prevent the per-platform overrides to happen for some headers, like
irq_vectors.h. We do need the contents of mflags-y to be passed to the leafMakefile, verbatim. It's only a matter of proper quoting of theisvariable when running make recursively, actually.arch/i386/boot/Makefile +0
-1@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)IMAGE_OFFSET=$(IMAGE_OFFSET) $@
arch/i386/boot/Makefile +1
-0+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"IMAGE_OFFSET=$(IMAGE_OFFSET) $@
# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =
{[email protected]} git diffarch/i386arch/i386/Makefile +1
-1@@ -128,7 +128,7 @@ all: bzImage zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage zImage bzImage: vmlinux - $(Q)$(MAKE) $(build)=$(boot) mflags-y=$(mflags-y) $(KBUILD_IMAGE) + $(Q)$(MAKE) $(build)=$(boot) mflags-y="$(mflags-y)" $(KBUILD_IMAGE) compressed: zImagearch/i386/boot/Makefile +0
-1@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)IMAGE_OFFSET=$(IMAGE_OFFSET) $@
arch/i386/boot/Makefile +1
-0+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"IMAGE_OFFSET=$(IMAGE_OFFSET) $@
Quoted 4 lines
# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =
Ack, it's cleaner. Still, the actual problem is the for boot/compressed/ unneeded, but probably unavoidable indirect inclusion of ipipe_base.h.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
I got it working. Thanks for the help everyone.
-Rob
Quoted 106 lines · Jan Kiszka
Quoted 18 lines · Philippe Gerum
Quoted 16 lines · Jan Kiszka
Quoted 15 lines · Fillod Stephane
Robert Gubler wrote:
[...]Quoted 13 lines
AS
arch/i386/boot/compressed/head.o
CCarch/i386/boot/compressed/misc.o
In file included frominclude/linux/ipipe_base.h:29,from include/linux/kernel.h:17, from include/asm/system.h:4, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/vmalloc.h:4, from arch/i386/boot/compressed/misc.c:14:
include/asm/ipipe_base.h:26:25: error:irq_vectors.h: No such file orQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
directory
make[2]: *** [arch/i386/boot/compressed/misc.o] Error 1 make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2I had the same issue with this
setup(*). It went away when I switched the subarch fromCONFIG_X86_GENERICARCH(default with FC) to
CONFIG_X86_PC.Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
setup:
linux-2.6.23.1.tar.bz2
xenomai-2.4-rc4.tar.bz2
adeos-ipipe-2.6.23-i386-1.10-10.patchIf you do need GENERICARCH, you can tweak
arch/i386/boot/compressed/MakefileQuoted 1 line
Quoted 1 line
Quoted 1 line
and add -I${yourlinuxabsolutepath}/include/asm-i386/mach-default to
CFLAGS.
Quoted 2 lines
Quoted 2 lines
The attached patch fixes it (failed to find the time for posting it earlier, sorry). Philippe, we do need my original version here,
mflags-y
Quoted 30 lines
Quoted 1 line
is not enough (actually, it is not needed now).
The proper fix is the one below. Forcing mach-default as your patch does would prevent the per-platform overrides to happen for some headers, like
irq_vectors.h. We do need the contents of mflags-y to be passed to the leafMakefile, verbatim. It's only a matter of proper quoting of theisvariable when running make recursively, actually.arch/i386/boot/Makefile +0
-1@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"
IMAGE_OFFSET=$(IMAGE_OFFSET) $@# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =
{[email protected]} git diffarch/i386arch/i386/Makefile +0
-0arch/i386/Makefile all: bzImage · line 131
Quoted 5 lines
arch/i386/Makefile +1
-1@@ -128,7 +128,7 @@ all: bzImage zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage zImage bzImage: vmlinux - $(Q)$(MAKE) $(build)=$(boot) mflags-y=$(mflags-y) $(KBUILD_IMAGE) + $(Q)$(MAKE) $(build)=$(boot) mflags-y="$(mflags-y)"$(KBUILD_IMAGE)
Quoted 16 lines
arch/i386/Makefile +0
-0compressed: zImagearch/i386/boot/Makefile +0
-1@@ -94,7 +94,7 @@ $(obj)/setup.bin: $(obj)/setup.elf FORCE $(call if_changed,objcopy) $(obj)/compressed/vmlinux: FORCE - $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y=$(mflags-y)IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed mflags-y="$(mflags-y)"
IMAGE_OFFSET=$(IMAGE_OFFSET) $@Quoted 4 lines
# Set this if you want to pass append arguments to the
zdisk/fdimage/isoimage kernel
FDARGS =Ack, it's cleaner. Still, the actual problem is the for boot/compressed/ unneeded, but probably unavoidable indirect inclusion of
ipipe_base.h.Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux