WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xen-unstable compile error in linux-2.6.18-xen_x86_64 an

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen-unstable compile error in linux-2.6.18-xen_x86_64 and x86
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Mon, 30 Jul 2007 19:16:01 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Jul 2007 16:13:40 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=fmx5cvbEMRXnzqg82h9hkqqPXY9QEMaXMKHW7pNMlVFCetNww8LlYMVlFgiqNFurZqOPz0ufW6I36sd6fBvjId0RMRiBwIUNQHGQsPQbiPU5KBOneyhPtiObsIB4BVZpETAePr6sSMMlZgKKaXPeOEdhA1nsnOZGa4PU1XrkARQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PxcLYQLkGkuN4+2LkIBf9RfFrjUGRuJvZY6EAqjbXCUtApkqaDubZyXSA+z5Fj+elkSUr75oOu3a0GZ1QM7pAjWJmMCBgaY6mlK/ClrjRDZ7QnkM6HPPalAt0NkZjd0v+qiO8DJKAh8pHRzIdA4fRN1rYz6V2BJ5s+pDkOcYksk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2D1FD8F.B9C7%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1e16a9ed0707281332v3add91bhaa689d5c71b33b49@xxxxxxxxxxxxxx> <C2D1FD8F.B9C7%Keir.Fraser@xxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On 7/29/07, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
If you revert changesets 131 and 130 in your linux-2.6.18-xen.hg tree, does the problem go away? Another thing to try is: you'll get more info about exactly what the build system is doing if you set 'V=1' while building Linux.


I reverted 131 and 130, and recompiled with  KBUILD_VERBOSE=1 make verbose=y

Still the same error, but the verbose version is below.

Has there been any changeset that may fix this?

Is anybody else having any similar problems?

Maybe it is something with my setup... I am running a relatively vanilla version of Ubuntu 7.04, with build-essential installed.

Any other suggestions?
 
Thanks,
Todd

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /home/deshantm/devel/xen-unstable.hg/dist/install -r 2.6.18-xen; fi
make[3]: Leaving directory `/home/deshantm/devel/xen- unstable.hg/build-linux-2.6.18-xen_x86_64'
make -C build-linux-2.6.18-xen_x86_64 ARCH=x86_64 INSTALL_PATH=/home/deshantm/devel/xen-unstable.hg/dist/install vmlinuz
make[3]: Entering directory `/home/deshantm/devel/xen- unstable.hg/build-linux-2.6.18-xen_x86_64'
make -C /home/deshantm/devel/linux-2.6.18-xen.hg O=/home/deshantm/devel/xen-unstable.hg/build-linux-2.6.18-xen_x86_64 vmlinuz
make -C /home/deshantm/devel/xen-unstable.hg /build-linux-2.6.18-xen_x86_64 \
        KBUILD_SRC=/home/deshantm/devel/linux-2.6.18-xen.hg \
        KBUILD_EXTMOD="" -f /home/deshantm/devel/linux-2.6.18-xen.hg/Makefile vmlinuz
rm -f include/config/kernel.release
echo 2.6.18-xen > include/config/kernel.release
  Using /home/deshantm/devel/linux-2.6.18-xen.hg as source for kernel
if [ -f /home/deshantm/devel/linux-2.6.18-xen.hg/.config -o -d /home/deshantm/devel/linux- 2.6.18-xen.hg/include/config ]; then \
                echo "  /home/deshantm/devel/linux-2.6.18-xen.hg is not clean, please run 'make mrproper'";\
                echo "  in the '/home/deshantm/devel/linux- 2.6.18-xen.hg' directory.";\
                /bin/false; \
        fi;
if [ ! -d include2 ]; then mkdir -p include2; fi;
ln -fsn /home/deshantm/devel/linux-2.6.18-xen.hg/include/asm-x86_64 include2/asm
/bin/bash /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/mkmakefile \
            /home/deshantm/devel/linux-2.6.18-xen.hg /home/deshantm/devel/xen-unstable.hg/build-linux-2.6.18-xen_x86_64 2 6
  GEN     /home/deshantm/devel/xen- unstable.hg/build-linux-2.6.18-xen_x86_64/Makefile
set -e; echo '  CHK     include/linux/version.h'; mkdir -p include/linux/;      (echo \#define LINUX_VERSION_CODE 132626; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /home/deshantm/devel/linux- 2.6.18-xen.hg/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo '  UPD     include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
  CHK     include/linux/version.h
set -e; echo '  CHK     include/linux/utsrelease.h'; mkdir -p include/linux/;   if [ `echo -n "2.6.18-xen" | wc -c ` -gt 64 ]; then echo '"2.6.18-xen" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \" 2.6.18-xen\";) < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else echo '  UPD     include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi
  CHK     include/linux/utsrelease.h
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=scripts/basic
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=.
mkdir -p arch/x86_64/kernel/
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=scripts
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=scripts/genksyms
make -f /home/deshantm/devel/linux- 2.6.18-xen.hg/scripts/Makefile.build obj=scripts/mod
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=init
  CHK     include/linux/compile.h
/bin/bash /home/deshantm/devel/linux-2.6.18-xen.hg /scripts/mkcompile_h include/linux/compile.h \
        "x86_64" "y" "" "gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os  -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign"
make -f /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/Makefile.build obj=usr
/bin/bash /home/deshantm/devel/linux-2.6.18-xen.hg/scripts/gen_initramfs_list.sh -l -d > usr/.initramfs_data.cpio.gz.d
make -f /home/deshantm/devel/linux- 2.6.18-xen.hg/scripts/Makefile.build obj=arch/x86_64/kernel
  gcc -Wp,-MD,arch/x86_64/kernel/.process.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include -Iinclude2/asm/mach-xen -D__KERNEL__ -Iinclude -Iinclude2 -I/home/deshantm/devel/linux- 2.6.18-xen.hg/include -include include/linux/autoconf.h -D__XEN_INTERFACE_VERSION__=0x00030205 -I/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel -Iarch/x86_64/kernel -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(process)"  -D"KBUILD_MODNAME=KBUILD_STR(process)" -c -o arch/x86_64/kernel/.tmp_process.o /home/deshantm/devel/linux- 2.6.18-xen.hg/arch/x86_64/kernel/process.c
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c: In function 'exit_thread':
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: 'per_cpu__init_tss' undeclared (first use in this function)
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: (Each undeclared identifier is reported only once
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: for each function it appears in.)
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: warning: type defaults to 'int' in declaration of 'type name'
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: invalid type argument of 'unary *'
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:356: error: dereferencing pointer to incomplete type
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c: In function '__switch_to':
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: error: 'per_cpu__init_tss' undeclared (first use in this function)
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: warning: type defaults to 'int' in declaration of 'type name'
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: error: invalid type argument of 'unary *'
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:521: error: dereferencing pointer to incomplete type
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:611: error: dereferencing pointer to incomplete type
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:611: error: dereferencing pointer to incomplete type
/home/deshantm/devel/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:617: error: dereferencing pointer to incomplete type
make[6]: *** [arch/x86_64/kernel/process.o] Error 1
make[5]: *** [arch/x86_64/kernel] Error 2
make[4]: *** [vmlinuz] Error 2
make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory `/home/deshantm/devel/xen-unstable.hg/build-linux-2.6.18-xen_x86_64'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/home/deshantm/devel/xen- unstable.hg'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/home/deshantm/devel/xen-unstable.hg'
make: *** [install-kernels] Error 1



 -- Keir


On 28/7/07 21:32, "Todd Deshane" <deshantm@xxxxxxxxx> wrote:



On 7/28/07, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
You need to do a completely clean build (make mrproper at the root of your Xen repository, thus deleting old Linux build trees). You are not correctly picking up *- xen.c versions of files.

I did the make mrproper, but I still get the problem. I pulled them from http://xenbits.xensource.com/ directly, and still after running the make mrproper, I get the same errors.

Any other suggestions?

Thanks,
Todd


-- Keir


On 28/7/07 07:03, "Todd Deshane" <deshantm@xxxxxxxxx> wrote:

Hi All,

I just pulled the latest xen-unstable.hg and linux-2.6.18.hg and I am getting the following compile error. Any suggestions on how to get it to compile correctly?

I also get the same error compiling under 32bit, so that is not the problem.

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /var/hg/repos/xen-unstable.hg/dist/install -r 2.6.18-xen ; fi
make[3]: Leaving directory `/var/hg/repos/xen-unstable.hg/build- linux-2.6.18-xen_x86_64'
make -C build-linux-2.6.18-xen_x86_64 ARCH=x86_64 INSTALL_PATH=/var/hg/repos/xen-unstable.hg/dist/install vmlinuz
make[3]: Entering directory `/var/hg/repos/xen-unstable.hg/build-linux-2.6.18-xen_x86_64 '
make -C /var/hg/repos/linux-2.6.18-xen.hg O=/var/hg/repos/xen-unstable.hg/build-linux-2.6.18-xen_x86_64 vmlinuz
  Using /var/hg/repos/linux-2.6.18-xen.hg as source for kernel
  GEN     /var/hg/repos/xen-unstable.hg /build-linux-2.6.18-xen_x86_64/Makefile
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  CC      arch/x86_64/kernel/process.o
/var/hg/repos/linux-2.6.18-xen.hg /arch/x86_64/kernel/process.c: In function 'exit_thread':
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: 'per_cpu__init_tss' undeclared (first use in this function)
/var/hg/repos/linux- 2.6.18-xen.hg /arch/x86_64/kernel/process.c:349: error: (Each undeclared identifier is reported only once
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: for each function it appears in.)
/var/hg/repos/linux- 2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: warning: type defaults to 'int' in declaration of 'type name'
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:349: error: invalid type argument of 'unary *'
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:356: error: dereferencing pointer to incomplete type
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c: In function '__switch_to':
/var/hg/repos/linux- 2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: error: 'per_cpu__init_tss' undeclared (first use in this function)
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: warning: type defaults to 'int' in declaration of 'type name'
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:516: error: invalid type argument of 'unary *'
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:521: error: dereferencing pointer to incomplete type
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:611: error: dereferencing pointer to incomplete type
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:611: error: dereferencing pointer to incomplete type
/var/hg/repos/linux-2.6.18-xen.hg/arch/x86_64/kernel/process.c:617: error: dereferencing pointer to incomplete type
make[6]: *** [arch/x86_64/kernel/process.o] Error 1
make[5]: *** [arch/x86_64/kernel] Error 2
make[4]: *** [vmlinuz] Error 2
make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory `/var/hg/repos/xen-unstable.hg/build-linux-2.6.18-xen_x86_64'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/var/hg/repos/xen- unstable.hg'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/var/hg/repos/xen-unstable.hg'
make: *** [install-kernels] Error 1

Thanks,
Todd



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel