Hello, I have tried to compile the linux-2.6.18-xen kernel (the unstable version from the Mercurial repositories - http://xenbits.xensource.com/linux-2.6.18-xen.hg). I use Debian Lenny and GCC 4.3.2. However, the compilation stops with the following errors: * drivers/hwmon/coretemp.c:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__refdata’ drivers/hwmon/coretemp.c: In function ‘coretemp_init’: drivers/hwmon/coretemp.c:523: error: ‘coretemp_cpu_notifier’ undeclared (first use in this function) drivers/hwmon/coretemp.c:523: error: (Each undeclared identifier is reported only once drivers/hwmon/coretemp.c:523: error: for each function it appears in.) drivers/hwmon/coretemp.c: In function ‘coretemp_exit’: drivers/hwmon/coretemp.c:545: error: ‘coretemp_cpu_notifier’ undeclared (first use in this function) make[2]: *** [drivers/hwmon/coretemp.o] Error 1 make[1]: *** [drivers/hwmon] Error 2 make: *** [drivers] Error 2* Any suggestions? Is there any other xen-kernel known to work with unstable Xen 4.0.0? Thanks in advance! Darko _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
From: darko.b.petrovic@gmail.com Date: Wed, 10 Feb 2010 16:32:41 +0100 To: xen-users@lists.xensource.com Subject: [Xen-users] Cannot compile Xen kernel Hello, I have tried to compile the linux-2.6.18-xen kernel (the unstable version from the Mercurial repositories - http://xenbits.xensource.com/linux-2.6.18-xen.hg). I use Debian Lenny and GCC 4.3.2. However, the compilation stops with the following errors: drivers/hwmon/coretemp.c:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__refdata’ drivers/hwmon/coretemp.c: In function ‘coretemp_init’: drivers/hwmon/coretemp.c:523: error: ‘coretemp_cpu_notifier’ undeclared (first use in this function) drivers/hwmon/coretemp.c:523: error: (Each undeclared identifier is reported only once drivers/hwmon/coretemp.c:523: error: for each function it appears in.) drivers/hwmon/coretemp.c: In function ‘coretemp_exit’: drivers/hwmon/coretemp.c:545: error: ‘coretemp_cpu_notifier’ undeclared (first use in this function) make[2]: *** [drivers/hwmon/coretemp.o] Error 1 make[1]: *** [drivers/hwmon] Error 2 make: *** [drivers] Error 2 Any suggestions? Is there any other xen-kernel known to work with unstable Xen 4.0.0? -- I had that exact same error message at compile time with my Intel i7 860 & P55 chipset. Is your hardware similar? I know the kernel can still be compiled if you remove the support for coretemp from your .config lkddb platform "coretemp" :: CONFIG_HWMON CONFIG_SENSORS_CORETEMP :: drivers/hwmon/coretemp.c [0] [0] - http://cateee.net/lkddb/web-lkddb/HWMON.html -M _________________________________________________________________ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mike, Thanks for your help! I am running a Q45 Express chipset, but your proposal solves the problem, now everything compiles fine. However, there are some new issues but I will open a new topic. Best regards, Darko 2010/2/10 Mike Viau <viaum@sheridanc.on.ca>> From: darko.b.petrovic@gmail.com > Date: Wed, 10 Feb 2010 16:32:41 +0100 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Cannot compile Xen kernel > > > Hello, > > I have tried to compile the linux-2.6.18-xen kernel (the unstable version > from the Mercurial repositories - > http://xenbits.xensource.com/linux-2.6.18-xen.hg). > I use Debian Lenny and GCC 4.3.2. > However, the compilation stops with the following errors: > * > drivers/hwmon/coretemp.c:478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or > ‘__attribute__’ before ‘__refdata’ > drivers/hwmon/coretemp.c: In function ‘coretemp_init’: > drivers/hwmon/coretemp.c:523: error: ‘coretemp_cpu_notifier’ undeclared > (first use in this function) > drivers/hwmon/coretemp.c:523: error: (Each undeclared identifier is > reported only once > drivers/hwmon/coretemp.c:523: error: for each function it appears in.) > drivers/hwmon/coretemp.c: In function ‘coretemp_exit’: > drivers/hwmon/coretemp.c:545: error: ‘coretemp_cpu_notifier’ undeclared > (first use in this function) > make[2]: *** [drivers/hwmon/coretemp.o] Error 1 > make[1]: *** [drivers/hwmon] Error 2 > make: *** [drivers] Error 2* > > Any suggestions? Is there any other xen-kernel known to work with unstable > Xen 4.0.0? > > -- > > I had that exact same error message at compile time with my Intel i7 860 & > P55 chipset. Is your hardware similar? > > I know the kernel can still be compiled if you remove the support for > coretemp from your .config > > lkddb platform "coretemp" :: CONFIG_HWMON<http://cateee.net/lkddb/web-lkddb/HWMON.html> > CONFIG_SENSORS_CORETEMP<http://cateee.net/lkddb/web-lkddb/SENSORS_CORETEMP.html>:: > drivers/hwmon/coretemp.c<http://lxr.linux.no/source/drivers/hwmon/coretemp.c>[0] > > [0] - http://cateee.net/lkddb/web-lkddb/HWMON.html > > -M > > ------------------------------ >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users