Xenomai kernel compile issue
Hello, I’m trying to compile Xenomai by following the Xenomai Quick build guide found on this page: <
http://www.xenomai.org/index.php/Xenomai_quick_build_quide> however I run across a compiling error shown here:
[email protected]$ sudo cp /boot/config-2.6.25.11 .config [email protected]$ sudo make menuconfig scripts/kconfig/mconf arch/x86/Kconfig # # configuration written to .config #
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
[email protected]$ sudo make scripts/kconfig/conf -s arch/x86/Kconfig # # configuration written to .config # CHK include/linux/version.h CHK include/linux/utsrelease.h CC arch/x86/kernel/asm-offsets.s GEN include/asm-x86/asm-offsets.h CALL scripts/checksyscalls.sh CC init/main.o CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o CC init/do_mounts.o CC init/do_mounts_rd.o CC init/do_mounts_initrd.o LD init/mounts.o CC init/initramfs.o CC init/calibrate.o LD init/built-in.o CC arch/x86/kernel/process_32.o CC arch/x86/kernel/signal_32.o AS arch/x86/kernel/entry_32.o CC arch/x86/kernel/traps_32.o CC arch/x86/kernel/irq_32.o CC arch/x86/kernel/time_32.o CC arch/x86/kernel/ioport.o CC arch/x86/kernel/ldt.o CC arch/x86/kernel/setup_32.o CC arch/x86/kernel/i8259_32.o CC arch/x86/kernel/sys_i386_32.o CC arch/x86/kernel/i386_ksyms_32.o CC arch/x86/kernel/pci-dma_32.o CC arch/x86/kernel/bootflag.o CC arch/x86/kernel/e820_32.o CC arch/x86/kernel/quirks.o CC arch/x86/kernel/i8237.o CC arch/x86/kernel/topology.o CC arch/x86/kernel/kdebugfs.o CC arch/x86/kernel/alternative.o CC arch/x86/kernel/i8253.o CC arch/x86/kernel/tsc_32.o CC arch/x86/kernel/io_delay.o CC arch/x86/kernel/rtc.o CC arch/x86/kernel/i387.o CC arch/x86/kernel/ptrace.o CC arch/x86/kernel/ds.o CC arch/x86/kernel/tls.o CC arch/x86/kernel/step.o CC arch/x86/kernel/cpu/intel_cacheinfo.o CC arch/x86/kernel/cpu/addon_cpuid_features.o CC arch/x86/kernel/cpu/feature_names.o CC arch/x86/kernel/cpu/common.o CC arch/x86/kernel/cpu/proc.o CC arch/x86/kernel/cpu/bugs.o CC arch/x86/kernel/cpu/amd.o CC arch/x86/kernel/cpu/cyrix.o CC arch/x86/kernel/cpu/centaur.o CC arch/x86/kernel/cpu/transmeta.o CC arch/x86/kernel/cpu/intel.o CC arch/x86/kernel/cpu/nexgen.o CC arch/x86/kernel/cpu/umc.o CC arch/x86/kernel/cpu/mtrr/main.o CC arch/x86/kernel/cpu/mtrr/if.o CC arch/x86/kernel/cpu/mtrr/generic.o CC arch/x86/kernel/cpu/mtrr/stateo CC arch/x86/kernel/cpu/mtrr/amd.o CC arch/x86/kernel/cpu/mtrr/cyrixo CC arch/x86/kernel/cpu/mtrr/centaur.o LD arch/x86/kernel/cpu/mtrr/built-in.o CC arch/x86/kernel/cpu/perfctr-watchdog.o LD arch/x86/kernel/cpu/built-in.o CC arch/x86/kernel/reboot.o CC arch/x86/kernel/mca_32.o CC arch/x86/kernel/early-quirks.o CC arch/x86/kernel/mpparse_32.o CC arch/x86/kernel/apic_32.o CC arch/x86/kernel/nmi_32.o CC arch/x86/kernel/reboot_fixups_32.o CC arch/x86/kernel/machine_kexec_32.o CC arch/x86/kernel/crash.o CC arch/x86/kernel/crash_dump_32.o CC arch/x86/kernel/kprobes.o CC arch/x86/kernel/module_32.o CC arch/x86/kernel/doublefault_32o CC arch/x86/kernel/vm86_32.o CC arch/x86/kernel/early_printk.o CC arch/x86/kernel/k8.o CC arch/x86/kernel/vmi_32.o CC arch/x86/kernel/vmiclock_32.o CC arch/x86/kernel/paravirt.o CC arch/x86/kernel/paravirt_patch_32.o CC arch/x86/kernel/pcspeaker.o LD arch/x86/kernel/built-in.o AS arch/x86/kernel/head_32.o CC arch/x86/kernel/init_task.o LDS arch/x86/kernel/vmlinux.lds CC [M] arch/x86/kernel/msr.o CC [M] arch/x86/kernel/cpuid.o CC [M] arch/x86/kernel/microcode.o CC [M] arch/x86/kernel/scx200_32.o LD [M] arch/x86/kernel/scx200.o CC arch/x86/mm/init_32.o CC arch/x86/mm/pgtable_32.o CC arch/x86/mm/fault.o CC arch/x86/mm/ioremap.o CC arch/x86/mm/extable.o CC arch/x86/mm/pageattr.o CC arch/x86/mm/mmap.o CC arch/x86/mm/highmem_32.o LD arch/x86/mm/built-in.o CC arch/x86/mach-default/setup.o LD arch/x86/mach-default/built-ino AS [M] arch/x86/crypto/aes-i586-asm_32.o CC [M] arch/x86/crypto/aes_glue.o AS [M] arch/x86/crypto/twofish-i586-asm_32.o CC [M] arch/x86/crypto/twofish_glue.o LD [M] arch/x86/crypto/aes-i586.o LD [M] arch/x86/crypto/twofish-i586.o AS arch/x86/vdso/vdso32/int80.o VDSO arch/x86/vdso/vdso32-int80.so.dbg OBJCOPY arch/x86/vdso/vdso32-int80.so AS arch/x86/vdso/vdso32/sysenter.o VDSO arch/x86/vdso/vdso32-sysenter.so.dbg OBJCOPY arch/x86/vdso/vdso32-sysenter.so AS arch/x86/vdso/vdso32.o CC arch/x86/vdso/vdso32-setup.o VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds VDSOSYM arch/x86/vdso/vdso32-syms.lds LD arch/x86/vdso/built-in.o CC kernel/sched.o kernel/sched.c:1027: warning: ‘init_hrtick’ defined but not used CC kernel/fork.o CC kernel/exec_domain.o CC kernel/panic.o CC kernel/printk.o CC kernel/profile.o CC kernel/exit.o CC kernel/itimer.o CC kernel/time.o CC kernel/softirq.o CC kernel/resource.o CC kernel/sysctl.o CC kernel/capability.o CC kernel/ptrace.o CC kernel/timer.o CC kernel/user.o CC kernel/signal.o CC kernel/sys.o CC kernel/kmod.o CC kernel/workqueue.o CC kernel/pid.o CC kernel/rcupdate.o CC kernel/extable.o CC kernel/params.o CC kernel/posix-timers.o CC kernel/kthread.o CC kernel/wait.o CC kernel/kfifo.o CC kernel/posix-cpu-timers.o CC kernel/mutex.o CC kernel/hrtimer.o CC kernel/rwsem.o CC kernel/nsproxy.o CC kernel/srcu.o CC kernel/notifier.o CC kernel/ksysfs.o CC kernel/pm_qos_params.o CC kernel/sysctl_check.o CC kernel/irq/handle.o CC kernel/irq/manage.o CC kernel/irq/spurious.o CC kernel/irq/resend.o CC kernel/irq/chip.o CC kernel/irq/devres.o CC kernel/irq/autoprobe.o CC kernel/irq/proc.o LD kernel/irq/built-in.o CC kernel/time/timekeeping.o CC kernel/time/ntp.o CC kernel/time/clocksource.o CC kernel/time/jiffies.o CC kernel/time/timer_list.o CC kernel/time/clockevents.o CC kernel/time/tick-common.o CC kernel/time/tick-broadcast.o CC kernel/time/tick-oneshot.o CC kernel/time/tick-sched.o CC kernel/time/timer_stats.o LD kernel/time/built-in.o CC kernel/xenomai/arch/generic/hal.o In file included from kernel/xenomai/arch/generic/hal.c:47: include/asm/xenomai/hal.h:65: warning: ‘struct ipipe_tick_device’ declared inside parameter list include/asm/xenomai/hal.h:65: warning: its scope is only this definition or declaration, which is probably not what you want include/asm/xenomai/hal.h:65: warning: ‘enum clock_event_mode’ declared inside parameter list include/asm/xenomai/hal.h:67: warning: ‘struct ipipe_tick_device’ declared inside parameter list In file included from include/asm/xenomai/hal_32.h:54, from include/asm/xenomai/hal.h:73, from kernel/xenomai/arch/generic/hal.c:47: include/asm-generic/xenomai/hal.h: In function ‘rthal_get_cpufreq’: include/asm-generic/xenomai/hal.h:166: error: storage size of ‘sysinfo’ isn’t known include/asm-generic/xenomai/hal.h:167: error: implicit declaration of function ‘ipipe_get_sysinfo’ include/asm-generic/xenomai/hal.h:166: warning: unused variable ‘sysinfo’ include/asm-generic/xenomai/hal.h: In function ‘rthal_get_timerfreq’: include/asm-generic/xenomai/hal.h:173: error: storage size of ‘sysinfo’ isn’t known include/asm-generic/xenomai/hal.h:173: warning: unused variable ‘sysinfo’ include/asm-generic/xenomai/hal.h: In function ‘set_task_nowakeup’: include/asm-generic/xenomai/hal.h:240: error: ‘TASK_NOWAKEUP’ undeclared (first use in this function) include/asm-generic/xenomai/hal.h:240: error: (Each undeclared identifier is reported only once include/asm-generic/xenomai/hal.h:240: error: for each function it appears in.) include/asm-generic/xenomai/hal.h: In function ‘clear_task_nowakeup’: include/asm-generic/xenomai/hal.h:245: error: ‘TASK_NOWAKEUP’ undeclared (first use in this function) include/asm-generic/xenomai/hal.h: At top level: include/asm-generic/xenomai/hal.h:328: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rthal_irq_handler_t’ include/asm-generic/xenomai/hal.h:329: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rthal_irq_ackfn_t’ include/asm-generic/xenomai/hal.h:353: error: ‘IPIPE_NR_CPUS’ undeclared here (not in a function) include/asm-generic/xenomai/hal.h:353: error: ‘IPIPE_NR_FAULTS’ undeclared here (not in a function) include/asm-generic/xenomai/hal.h:403: error: expected declaration specifiers or ‘...’ before ‘rthal_irq_handler_t’ include/asm-generic/xenomai/hal.h:404: error: expected declaration specifiers or ‘...’ before ‘rthal_irq_ackfn_t’ include/asm-generic/xenomai/hal.h:443: warning: ‘enum clock_event_mode’ declared inside parameter list include/asm-generic/xenomai/hal.h:448: warning: ‘enum clock_event_mode’ declared inside parameter list In file included from include/asm/xenomai/hal.h:73, from kernel/xenomai/arch/generic/hal.c:47: include/asm/xenomai/hal_32.h: In function ‘rthal_rdtsc’: include/asm/xenomai/hal_32.h:128: error: implicit declaration of function ‘ipipe_read_tsc’ include/asm/xenomai/hal_32.h: In function ‘rthal_timer_program_shot’: include/asm/xenomai/hal_32.h:150: error: implicit declaration of function ‘ipipe_trigger_irq’ include/asm/xenomai/hal_32.h:150: error: ‘IPIPE_SERVICE_IPI3’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c: In function ‘rthal_critical_enter’: kernel/xenomai/arch/generic/hal.c:94: error: implicit declaration of function ‘ipipe_critical_enter’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_critical_exit’: kernel/xenomai/arch/generic/hal.c:107: error: implicit declaration of function ‘ipipe_critical_exit’ kernel/xenomai/arch/generic/hal.c: At top level: kernel/xenomai/arch/generic/hal.c:159: error: expected declaration specifiers or ‘...’ before ‘rthal_irq_handler_t’ kernel/xenomai/arch/generic/hal.c:160: error: expected declaration specifiers or ‘...’ before ‘rthal_irq_ackfn_t’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_irq_request’: kernel/xenomai/arch/generic/hal.c:162: error: ‘handler’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:162: error: ‘IPIPE_NR_IRQS’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:165: error: implicit declaration of function ‘ipipe_virtualize_irq’ kernel/xenomai/arch/generic/hal.c:165: error: ‘ackfn’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:165: error: ‘IPIPE_HANDLE_MASK’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:165: error: ‘IPIPE_WIRED_MASK’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:165: error: ‘IPIPE_EXCLUSIVE_MASK’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c: In function ‘rthal_irq_release’: kernel/xenomai/arch/generic/hal.c:202: error: ‘IPIPE_NR_IRQS’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:205: error: ‘IPIPE_PASS_MASK’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c: In function ‘rthal_irq_host_pend’: kernel/xenomai/arch/generic/hal.c:302: error: implicit declaration of function ‘ipipe_propagate_irq’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_handler’: kernel/xenomai/arch/generic/hal.c:401: error: implicit declaration of function ‘ipipe_processor_id’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_alloc’: kernel/xenomai/arch/generic/hal.c:525: error: implicit declaration of function ‘ipipe_test_and_stall_pipeline_head’ kernel/xenomai/arch/generic/hal.c:536: error: implicit declaration of function ‘ipipe_restore_pipeline_head’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_apc_schedule’: kernel/xenomai/arch/generic/hal.c:610: error: implicit declaration of function ‘ipipe_schedule_irq’ kernel/xenomai/arch/generic/hal.c: In function ‘hal_read_proc’: kernel/xenomai/arch/generic/hal.c:627: error: ‘IPIPE_MAJOR_NUMBER’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:628: error: ‘IPIPE_MINOR_NUMBER’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:629: error: ‘IPIPE_PATCH_NUMBER’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c: In function ‘rthal_init’: kernel/xenomai/arch/generic/hal.c:798: error: implicit declaration of function ‘ipipe_alloc_virq’ kernel/xenomai/arch/generic/hal.c:806: error: ‘ipipe_current_domain’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:806: error: ‘IPIPE_HANDLE_MASK’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:832: error: storage size of ‘attr’ isn’t known kernel/xenomai/arch/generic/hal.c:832: error: implicit declaration of function ‘ipipe_init_attr’ kernel/xenomai/arch/generic/hal.c:832: error: ‘IPIPE_HEAD_PRIORITY’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:832: error: implicit declaration of function ‘ipipe_register_domain’ kernel/xenomai/arch/generic/hal.c:832: warning: unused variable ‘attr’ kernel/xenomai/arch/generic/hal.c:873: error: implicit declaration of function ‘ipipe_free_virq’ kernel/xenomai/arch/generic/hal.c: In function ‘rthal_exit’: kernel/xenomai/arch/generic/hal.c:889: error: ‘ipipe_current_domain’ undeclared (first use in this function) kernel/xenomai/arch/generic/hal.c:903: error: implicit declaration of function ‘ipipe_unregister_domain’ make[4]: *** [kernel/xenomai/arch/generic/hal.o] Error 1 make[3]: *** [kernel/xenomai/arch/generic] Error 2 make[2]: *** [kernel/xenomai/arch] Error 2 make[1]: *** [kernel/xenomai] Error 2 make: *** [kernel] Error 2 [email protected]$
Quoted 13 lines · Sam Ferguson
Hello, I’m trying to compile Xenomai by following the Xenomai Quick build guide found on this page: <
http://www.xenomai.org/index.php/Xenomai_quick_build_quide> however I run across a compiling error shown here:[email protected]$ sudo cp /boot/config-2.6.25.11 .config [email protected]$ sudo make menuconfig scripts/kconfig/mconf arch/x86/Kconfig # # configuration written to .config #
Quoted 4 lines
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.[email protected]$ sudo make
You do not need to compile as root. It is actually safer to compile as a simple user. Could you post your .config ?
Signature · 1 line
Gilles.