Compilation of sys-kernel/openvz-sources-2.6.32.49.6 fails with error: kernel/sched.c:10437:5: error: too many arguments to function ‘init_tg_cfs_entry’ Mentioned function call have 6 arguments and function definition in the same file have 5 arguments. This piece of code gets enabled with CONFIG_FAIR_GROUP_SCHED && !CONFIG_CGROUP_SCHED && CONFIG_USER_SCHED. Enabling CONFIG_CGROUP_SCHED instead of CONFIG_USER_SCHED "fixes" the problem. Reproducible: Always
Here you are using unsupported .config. Also use gcc-4.4 or hardened gcc. Note hardened gcc works here bug is not supported upstream. Also you may try to report build issue upstream: http://bugzilla.openvz.org sometimes they fix bugs :)