*SOLVED* 2.6.16+026test014 compilation Error
Hello On Debian/Sarge with gcc version 3.3.5 whene i compile i have error: In file included from kernel/sched.c:52: include/linux/vsched.h:24: error: syntax error before '(' token kernel/sched.c:711: error: syntax error before '(' token kernel/sched.c: In function `update_ve_task_info': kernel/sched.c:973: error: structure has no member named `idle' kernel/sched.c: In function `idle_cpu': kernel/sched.c:1547: error: `idle_vsched' undeclared (first use in this function) kernel/sched.c:1547: error: (Each undeclared identifier is reported only once kernel/sched.c:1547: error: for each function it appears in.) kernel/sched.c: In function `find_busiest_queue': kernel/sched.c:3001: warning: unused variable `tmp' kernel/sched.c: In function `wakeup_busy_runqueue': kernel/sched.c:3666: error: structure has no member named `idle' kernel/sched.c:3667: error: structure has no member named `idle' kernel/sched.c: In function `wake_sleeping_dependent': kernel/sched.c:3688: error: `this_rq' undeclared (first use in this function) kernel/sched.c:3693: warning: implicit declaration of function `cpu_rq' kernel/sched.c:3693: error: invalid type argument of `->' kernel/sched.c:3698: warning: passing arg 1 of `__cpu_clear' makes integer from pointer without a cast kernel/sched.c:3701: warning: initialization makes pointer from integer without a cast kernel/sched.c:3707: error: invalid type argument of `->' kernel/sched.c: In function `dependent_sleeper': kernel/sched.c:3743: error: `this_rq' undeclared (first use in this function) kernel/sched.c:3746: error: invalid type argument of `->' kernel/sched.c:3747: warning: passing arg 1 of `__cpu_clear' makes integer from pointer without a cast kernel/sched.c:3764: warning: initialization makes pointer from integer without a cast kernel/sched.c:3794: error: structure has no member named `idle' kernel/sched.c:3821: error: invalid type argument of `->' kernel/sched.c: In function `schedule': kernel/sched.c:3954: error: structure has no member named `start_time' kernel/sched.c:3954: error: `vcpu_timeslice' undeclared (first use in this function) kernel/sched.c: In function `init_boot_vcpus': kernel/sched.c:5365: warning: implicit declaration of function `__add_vcpu' kernel/sched.c:5365: error: `idle_vsched' undeclared (first use in this function) kernel/sched.c:5369: error: `default_vsched' undeclared (first use in this function) kernel/sched.c: In function `init_idle': kernel/sched.c:5393: error: `idle_vsched' undeclared (first use in this function) kernel/sched.c: In function `move_task_off_dead_cpu': kernel/sched.c:5629: warning: unused variable `vsched' kernel/sched.c:5630: warning: unused variable `mask' kernel/sched.c: In function `init_boot_vcpu': kernel/sched.c:7510: warning: implicit declaration of function `init_vcpu' kernel/sched.c:7510: error: `boot_idle_vcpu' undeclared (first use in this function) kernel/sched.c:7512: warning: implicit declaration of function `install_vcpu' kernel/sched.c:7512: error: `idle_vsched' undeclared (first use in this function) kernel/sched.c:7516: error: `boot_vcpu' undeclared (first use in this function) kernel/sched.c:7518: error: `default_vsched' undeclared (first use in this function) kernel/sched.c: At top level: kernel/sched.c:7174: warning: `init_rq' defined but not used kernel/sched.c:7502: warning: `init_boot_vcpu' defined but not used make[2]: *** [kernel/sched.o] Error 1 make[1]: *** [kernel] Error 2 Anyone know why ? Thanks
Do you have patched an Vanilla 2.6.16 Kernel? For me it works perfectly on an Debian Sarge 3.1.
You use wrong config file while compiling OpenVZ kernel. Particulary CONFIG_SCHED_VCPU parameter is off. You can use "official" config-file: http://openvz.org/download/kernel/devel/ "Kernel configs" section.