Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439516 - sys-kernel/openvz-sources-2.6.32.53.5 - In function 'setup_boot_APIC_clock': arch/x86/kernel/apic/apic.c:819: erreur: 'nmi_watchdog' undeclared (first use in this function)
Summary: sys-kernel/openvz-sources-2.6.32.53.5 - In function 'setup_boot_APIC_clock': ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo VPS Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 15:36 UTC by Christophe PEREZ
Modified: 2013-04-24 07:18 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff between my config made with make oldconfig from my actual running openvz-sources-2.6.32.11.1, and my new config (apport_noyau_qui_compile.diff,3.16 KB, text/plain)
2013-02-28 05:05 UTC, Christophe PEREZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2012-10-24 15:36:23 UTC
As I always reported for another version, actual openvz-sources-2.6.32.53.5 doesn't compile.
I first tried to compile after a make oldconfig, but as I had errors, I tried with a fresh install, just make menuconfig to create .config, and make :
arch/x86/kernel/apic/apic.c: In function 'setup_boot_APIC_clock':
arch/x86/kernel/apic/apic.c:819: erreur: 'nmi_watchdog' undeclared (first use in this function)
arch/x86/kernel/apic/apic.c:819: erreur: (Each undeclared identifier is reported only once
arch/x86/kernel/apic/apic.c:819: erreur: for each function it appears in.)
arch/x86/kernel/apic/apic.c:819: erreur: 'NMI_IO_APIC' undeclared (first use in this function)
arch/x86/kernel/apic/apic.c: In function 'end_local_APIC_setup':
arch/x86/kernel/apic/apic.c:1407: erreur: implicit declaration of function 'nmi_watchdog_default'
arch/x86/kernel/apic/apic.c:1408: erreur: implicit declaration of function 'setup_apic_nmi_watchdog'
arch/x86/kernel/apic/apic.c: In function 'APIC_init_uniprocessor':
arch/x86/kernel/apic/apic.c:1784: erreur: implicit declaration of function 'localise_nmi_watchdog'
arch/x86/kernel/apic/apic.c:1792: erreur: implicit declaration of function 'check_nmi_watchdog'
make[3]: *** [arch/x86/kernel/apic/apic.o] Erreur 1

Exactly the same error I had with my make oldconfig.
(sorry for my bad english, but I'm sure you can understand)

# emerge --info
Portage 2.1.11.9 (default/linux/amd64/10.0/server, gcc-4.4.4, glibc-2.15-r3, 2.6.32-openvz-feoktistov.1 x86_64)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Tue, 23 Oct 2012 11:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.4-r2, 4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/other/download/Linux/gentoo/portage"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.jamit.de/gentoo/ http://pinguin.ittelkom.ac.id/mirror/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://serveur1.novazur.fr/gentoo-portage"
USE="a52 aac acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bmp bzip2 caps cdb cdparanoia cdr cli cracklib crypt ctype cups cxx dedicated dvd dvdr dvdread encode exif fam ffmpeg flac foomaticdb ftp gd geoip gif iconv icq idn imagemagick imap imlib innodb iodbc jabber jbig jpeg lcms ldap lm_sensors mad maildir matroska mbox mcal mime mmx mng modules mp3 mpeg msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly odbc ogg openmp oscar pam pcre php png posix ppds pppd readline samba sasl scanner sdl session sharedext simplexml slang slp snmp speex spell spl sse sse2 ssl svg tcpd theora tiff truetype unicode usb v4l vhosts vorbis wmf x264 xml xsl xvid yahoo zlib" ALSA_CARDS="snd-intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Christophe PEREZ 2012-10-24 20:30:43 UTC
after reading http://bugzilla.openvz.org/show_bug.cgi?id=2273 I tried with HARDLOCKUP_DETECTOR = y.
But now, I have another error :
fs/nfs/dns_resolve.c:12:32: erreur: linux/dns_resolver.h : Aucun fichier ou dossier de ce type
fs/nfs/dns_resolve.c: In function 'nfs_dns_resolve_name':
fs/nfs/dns_resolve.c:21: erreur: implicit declaration of function 'dns_query'
Comment 2 Christophe PEREZ 2012-10-24 22:29:10 UTC
I tried to activate each option by hand like my actuel openvz-sources-2.6.32.11.1 (instead of use make oldconfig), adding HARDLOCKUP_DETECTOR = y, but I have another error now :
In file included from arch/x86/mm/fault.c:14:
include/linux/hugetlb.h: In function 'hstate_inode':
include/linux/hugetlb.h:255: erreur: implicit declaration of function 'HUGETLBFS_SB'
include/linux/hugetlb.h:255: attention : assignment makes pointer from integer without a cast
include/linux/hugetlb.h:256: erreur: déréférencement d'un pointeur de type incomplet


I don't know what to do to upgrade my openvz kernel at all.

My last config try http://pastebin.com/NLTD6x8h
Comment 3 Michael T. Schmidt 2012-12-04 23:06:04 UTC
I can confirm this issue. I have a identical setup.
Comment 4 Andreis Vinogradovs ( slepnoga ) 2013-01-09 09:20:17 UTC
Which version of the compiler used to build the kernel?
gcc:4.4 have the exact same error ?
Comment 5 Christophe PEREZ 2013-02-18 02:39:23 UTC
(In reply to comment #4)
> Which version of the compiler used to build the kernel?
> gcc:4.4 have the exact same error ?

It was indicated in my emerge --info :
sys-devel/gcc:            4.4.4-r2, 4.5.4

Actually :
sys-devel/gcc:            4.4.7, 4.6.3
and same error with them.
Comment 6 Christophe PEREZ 2013-02-28 05:05:11 UTC
Created attachment 340448 [details]
diff between my config made with make oldconfig from my actual running openvz-sources-2.6.32.11.1, and my new config
Comment 7 Christophe PEREZ 2013-02-28 05:22:29 UTC
I finaly compiled a new openvz kernel (sys-kernel/openvz-sources-2.6.32.53.5)

For that, I took the original .config from openvz site, and I added options one by one to mine. Each option, I tried to compile.
I haven't boot on it yet.

I don't know if that will help, but I join the diff between my config made with make oldconfig from my actual running openvz-sources-2.6.32.11.1, and my new config.

It only compiles with gcc 4.4.7, not gcc 4.6.3.
Comment 8 John Westermann 2013-03-28 19:44:31 UTC
(In reply to comment #0)
> As I always reported for another version, actual openvz-sources-2.6.32.53.5
> doesn't compile.
> I first tried to compile after a make oldconfig, but as I had errors, I
> tried with a fresh install, just make menuconfig to create .config, and make
> :
> arch/x86/kernel/apic/apic.c: In function 'setup_boot_APIC_clock':
> arch/x86/kernel/apic/apic.c:819: erreur: 'nmi_watchdog' undeclared (first
> use in this function)
> arch/x86/kernel/apic/apic.c:819: erreur: (Each undeclared identifier is
> reported only once
> arch/x86/kernel/apic/apic.c:819: erreur: for each function it appears in.)
> arch/x86/kernel/apic/apic.c:819: erreur: 'NMI_IO_APIC' undeclared (first use
> in this function)
> arch/x86/kernel/apic/apic.c: In function 'end_local_APIC_setup':
> arch/x86/kernel/apic/apic.c:1407: erreur: implicit declaration of function
> 'nmi_watchdog_default'
> arch/x86/kernel/apic/apic.c:1408: erreur: implicit declaration of function
> 'setup_apic_nmi_watchdog'
> arch/x86/kernel/apic/apic.c: In function 'APIC_init_uniprocessor':
> arch/x86/kernel/apic/apic.c:1784: erreur: implicit declaration of function
> 'localise_nmi_watchdog'
> arch/x86/kernel/apic/apic.c:1792: erreur: implicit declaration of function
> 'check_nmi_watchdog'
> make[3]: *** [arch/x86/kernel/apic/apic.o] Erreur 1

I had exactly the same error with openvz-sources-2.6.32.49.6 openvz-sources-2.6.32.53.5 and openvz-sources-2.6.32.68.8 (unstable) with and without kernel configs from <http://wiki.openvz.org/Download/kernel/>. After two days of googeling and trying, especially the mentioned ways in this thread (and related), I got it. 

I havent touched Kernel Hacking->Detect Hard Lockups (deactivated by default) as Christophe Perez mentioned, because that leads to other strange error (also described by Christophe Perez).

I just deactivated the Processor type and features->ACPI NUMA detection in my kernel config.

I downgraded gcc before (while trying some other ways of fixing this), so I used now x86_64-pc-linux-gnu-4.4.7 (the 4.4. tree, which is known as the best one for openvz-sources, according to many opinions in bug threads) and I use the =sys-kernel/openvz-sources-2.6.32.49.6 version.

This now works fine for me.

Just posting this for others who have the same problem.
Comment 9 Richard H. 2013-03-31 09:57:51 UTC
So there baiscally is no "easy" method of baking a kernel for OpenVZ? That's... hard.
Comment 10 Richard H. 2013-04-03 17:41:46 UTC
(In reply to comment #9)
> So there baiscally is no "easy" method of baking a kernel for OpenVZ?
> That's... hard.

I completely fail upon 053.5 using gcc 4.4.7 and the config from OpenVZ.
( http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab053.5/configs/config-2.6.32-042stab053.5.i686 )

kernel/sched.c:664: Warnung: »struct cfs_bandwidth« innerhalb Parameterliste deklariert
kernel/sched.c:664: Warnung: sein Gültigkeitsbereich umfasst nur diese Definition bzw. Deklaration, was Sie wahrscheinlich nicht wollten
kernel/sched.c:665: Warnung: »struct cfs_bandwidth« innerhalb Parameterliste deklariert
In file included from kernel/sched.c:2063:
kernel/sched_fair.c: In Funktion »stop_cfs_idle_time_accounting«:
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:986: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched_fair.c:986: Fehler: »task_groups« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched_fair.c:986: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
kernel/sched_fair.c:986: Fehler: für jede Funktion in der er auftritt.)
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:986: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:986: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:986: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:986: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:987: Fehler: »root_task_group« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched_fair.c:988: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:989: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c: In Funktion »start_cfs_idle_time_accounting«:
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1000: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched_fair.c:1000: Fehler: »task_groups« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1000: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1000: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1000: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched_fair.c:1000: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched_fair.c:1001: Fehler: »root_task_group« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched_fair.c:1002: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched_fair.c:1003: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c: In Funktion »nr_running_ve«:
kernel/sched.c:3287: Warnung: Variable »tg« wird nicht verwendet
kernel/sched.c: In Funktion »get_avenrun_ve«:
kernel/sched.c:3329: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3330: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3331: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c: In Funktion »calc_load_ve«:
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched.c:3352: Fehler: »task_groups« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »_________p1«
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Warnung: Initialisierung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »__mptr«
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »_________p1«
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Warnung: Initialisierung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3352: Fehler: Anfrage nach Element »list« in etwas, was keine Struktur oder Variante ist
kernel/sched.c:3352: Warnung: »int« ist Standardtyp in Deklaration von »type name«
kernel/sched.c:3365: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3365: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3366: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3366: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3367: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c:3367: Fehler: Dereferenzierung eines Zeigers auf unvollständigen Typen
kernel/sched.c: In Funktion »sched_init«:
kernel/sched.c:10352: Fehler: »root_task_group« nicht deklariert (erste Benutzung in dieser Funktion)
kernel/sched.c: In Funktion »cpuacct_stats_show«:
kernel/sched.c:12354: Fehler: »cpuacct_stat_desc« nicht deklariert (erste Benutzung in dieser Funktion)
make[1]: *** [kernel/sched.o] Fehler 1
make: *** [kernel] Fehler 2

what basically makes my server unusable now. I cannot upgrade udev, I cannot upgrade udev in my containers, I am simply stuck at feoktistov, for which there aren't even sources anymore *sighs*
Comment 11 John Westermann 2013-04-03 19:00:00 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > So there baiscally is no "easy" method of baking a kernel for OpenVZ?
> > That's... hard.
> 
> I completely fail upon 053.5 using gcc 4.4.7 and the config from OpenVZ.
> (
> http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab053.5/configs/
> config-2.6.32-042stab053.5.i686 )
> 
...
> 
> what basically makes my server unusable now. I cannot upgrade udev, I cannot
> upgrade udev in my containers, I am simply stuck at feoktistov, for which
> there aren't even sources anymore *sighs*

In contrast to that what I've said, i finally used the 2.6.32-openvz-feoktistov.1 kernel which is not covered in the portage tree anymore. This is the only kernel which works for me. (Tested on several machines amd and intel whith several gcc versions)
If you need DEVTMPFS - as the current udev needs - then you can edit the file drivers/base/Kconfig, since that kernel doesn't show options regarding DEVTMPFS in the `make menuconfig`. Search for the line with DEVTMPFS and make it look like this

config DEVTMPFS
        bool "Create a kernel maintained /dev tmpfs (EXPERIMENTAL)"
        depends on HOTPLUG && SHMEM && TMPFS

Now you can select to use DEVTMPFS in your `make menuconfig` and compile it.
Comment 12 Richard H. 2013-04-04 18:01:57 UTC
I was able to create the 049.6 kernel using 4.4.7.

However, you have to take GREAT care - everything is build as modules with the config from RHEL, and if you don't happen to use an initrd/initramfs (like me) prepare to take off to your data center because of a nice kernel panic. I had at least to set sd, mpt and ext3 to yes. Right now compiling it.

As of feoktistov, I would really like to have the ebuild for it and would even host it in my overlay - it is already gone from portage unfortunately.
Comment 13 Andreis Vinogradovs ( slepnoga ) 2013-04-07 17:09:04 UTC
No reports, please, if you compile with the unsupported compiler or unsupported config. You can enable additional drivers or classes of devices, but do not turn off that any of the recommended config. This is not a requirement openvz - it's RHEL crap.

P.S 
nmi_watchdog() is reqired to RHEL patchset


IMHO, this bug WONTFIX or INVALID
Comment 14 Sergey Popov gentoo-dev 2013-04-24 07:18:52 UTC
phantom linux-2.6.32-openvz-053.5 # wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab053.5/configs/config-2.6.32-042stab053.5.x86_64 -O .config

phantom linux-2.6.32-openvz-053.5 # LANG=C gcc -v 2>&1 | tail -1
gcc version 4.4.7 (Gentoo 4.4.7 p1.1, pie-0.4.5)

make -j8 && echo success
(snip)
success


Can not reproduce in stable system. So, closed as WONTFIX. Please use recommended compiler version and config, as suggested by upstream.