Skip to contentSkip to conversation

qemu-xen-unstable build error

DISCUSSION Zhigang Wang 3 participants 7 messages May 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi Ian,

I hit an error when compiling latest xen-unstable + qemu-xen-unstable:

$ DESTDIR=/share/tmp/pkg/xen-unstable/dist/install make install-tools

...

qemu successfuly configured for Xen qemu-dm build make -C ioemu-dir install
=== PCI passthrough capability has been enabled === make[3]: Entering directory `/share/tmp/pkg/qemu-xen-unstable'
CC qemu-nbd.o
In file included from ./config-host.h:20,

                 from ./qemu-common.h:33,
                 from qemu-nbd.c:20:

./xen-config-host.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: *** [qemu-nbd.o] Error 1
make[3]: Leaving directory `/share/tmp/pkg/qemu-xen-unstable' make[2]: *** [subdir-install-ioemu-dir] Error 2
make[2]: Leaving directory `/share/tmp/pkg/xen-unstable/tools' make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/share/tmp/pkg/xen-unstable/tools'
make: *** [install-tools] Error 2

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish the build.

Thanks,

Zhigang

#1 lore raw
Quoted 6 lines · Zhigang Wang

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100
Quoted 8 lines

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish the build.

Perhaps your build is not respecting the QEMU_TAG in Config.mk, for some reason? There are (humungous) patches pending on xen-unstable.hg which will introduce xc_interface.

-- Keir

#2 lore raw
Quoted 14 lines · Keir Fraser
Quoted 12 lines · Zhigang Wang

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Quoted 8 lines
Quoted 2 lines

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish the build.

Perhaps your build is not respecting the QEMU_TAG in Config.mk, for some reason? There are (humungous) patches pending on xen-unstable.hg which will introduce xc_interface.

-- Keir

I created soft links to the qemu-xen-unstable tree:

rwxrwxrwx 1 zhigang zhigang 12 2010-05-28 15:19 ioemu-dir -> ioemu-remote
lrwxrwxrwx 1 zhigang zhigang 23 2010-05-11 08:23 ioemu-remote ->
../../qemu-xen-unstable

So it will not checkout the tag.

Seems the QEMU_TAG hack is not a good enough. I'm wondering whether can we make master always be compiled and rename QEMU_TAG to QEMU_BRANCH? All experimental patches go to another branch and users set the QEMU_BRANCH for testing.

Thanks,

Zhigang

#3 lore raw
Quoted 8 lines · Zhigang Wang

I created soft links to the qemu-xen-unstable tree:

rwxrwxrwx 1 zhigang zhigang 12 2010-05-28 15:19 ioemu-dir ->
ioemu-remote
lrwxrwxrwx 1 zhigang zhigang 23 2010-05-11 08:23 ioemu-remote ->
../../qemu-xen-unstable

So it will not checkout the tag.

Yes, I do similar (well, I specify CONFIG_QEMU) and so QEMU_TAG does nothing much for me also. Generally I find the build breaks rarely enough that I've never bothered to change things.

Quoted 4 lines

Seems the QEMU_TAG hack is not a good enough. I'm wondering whether can we make
master always be compiled and rename QEMU_TAG to QEMU_BRANCH? All experimental patches go to another branch and users set the QEMU_BRANCH for testing.

Perhaps if CONFIG_QEMU is specified then the build system should clone from the local repository, or copy it (which is presumably fast) and then do a private checkout in that clone/copy, so that QEMU_TAG is always respected.

Getting the right qemu version is a bit of a crapshoot right now.

-- Keir

#4 lore raw
In reply to Keir Fraser

I meet the issue just now. In the end I enter the ioemu-remote and do the branch/checkout manually.

When will the ioemu_remote be updated? Seems it will only be updated if this directory does not exist?

                if [ ! -d ioemu-remote ]; then \
                        rm -rf ioemu-remote ioemu-remote.tmp; \
                        mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
                        $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
                        if [ "$(QEMU_TAG)" ]; then                      \
                                cd ioemu-remote.tmp;                    \
                                $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
                                $(GIT) checkout -b dummy $(QEMU_TAG);   \
                                cd ..;                                  \
                        fi;                                             \
                        mv ioemu-remote.tmp ioemu-remote; \

Thanks
--jyh

Quoted 37 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Friday, May 28, 2010 4:15 PM
To: Zhigang Wang; Ian Jackson
Cc: xen-devel
Subject: Re: [Xen-devel] qemu-xen-unstable build error

Quoted 6 lines · Zhigang Wang

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100
Quoted 8 lines

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish the build.

Perhaps your build is not respecting the QEMU_TAG in Config.mk, for some reason? There are (humungous) patches pending on xen-unstable.hg which will introduce xc_interface.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Perhaps it should also check against QEMU_TAG if defined, even if the directory exists, and pull/checkout if necessary.

K.

Quoted 58 lines · Yunhong

I meet the issue just now. In the end I enter the ioemu-remote and do the branch/checkout manually.

When will the ioemu_remote be updated? Seems it will only be updated if this directory does not exist?

                if [ ! -d ioemu-remote ]; then \
                        rm -rf ioemu-remote ioemu-remote.tmp; \
                        mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
                        $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
                        if [ "$(QEMU_TAG)" ]; then                      \
                                cd ioemu-remote.tmp;                    \
                                $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
                                $(GIT) checkout -b dummy $(QEMU_TAG);   \
                                cd ..;                                  \
                        fi;                                             \
                        mv ioemu-remote.tmp ioemu-remote; \

Thanks
--jyh

Quoted 37 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Friday, May 28, 2010 4:15 PM
To: Zhigang Wang; Ian Jackson
Cc: xen-devel
Subject: Re: [Xen-devel] qemu-xen-unstable build error

Quoted 6 lines · Zhigang Wang

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100
Quoted 8 lines

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish the build.

Perhaps your build is not respecting the QEMU_TAG in Config.mk, for some reason? There are (humungous) patches pending on xen-unstable.hg which will introduce xc_interface.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw

Yes, that may make life easier.

--jyh

Quoted 82 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Friday, May 28, 2010 4:58 PM
To: Jiang, Yunhong; Zhigang Wang; Ian Jackson
Cc: xen-devel
Subject: Re: [Xen-devel] qemu-xen-unstable build error

Perhaps it should also check against QEMU_TAG if defined, even if the directory exists, and pull/checkout if necessary.

K.

Quoted 9 lines · Yunhong

I meet the issue just now. In the end I enter the ioemu-remote and do the branch/checkout manually.

When will the ioemu_remote be updated? Seems it will only be updated if this directory does not exist?

                if [ ! -d ioemu-remote ]; then \
                        rm -rf ioemu-remote ioemu-remote.tmp; \
                        mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp;

\

Quoted 1 line
                        $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp;

\

Quoted 1 line
                        if [ "$(QEMU_TAG)" ]; then

\

Quoted 1 line
                                cd ioemu-remote.tmp;

\

Quoted 1 line
                                $(GIT) branch -D dummy >/dev/null 2>&1
||:; \
>                                 $(GIT) checkout -b dummy $(QEMU_TAG);

\

Quoted 1 line
                                cd ..;

\

Quoted 1 line
                        fi;

\

Quoted 28 lines
                        mv ioemu-remote.tmp ioemu-remote; \

Thanks
--jyh

Quoted 23 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Friday, May 28, 2010 4:15 PM
To: Zhigang Wang; Ian Jackson
Cc: xen-devel
Subject: Re: [Xen-devel] qemu-xen-unstable build error

Quoted 13 lines · Zhigang Wang

Seems this commit is incomplete:

commit ffb0cf2ad55e952dae55e6166c4fcea79be6cd30

Author: Ian Jackson <[email protected]>
Date:   Thu Apr 15 17:01:15 2010 +0100

Change callers of libxc to use new libxc API.

I cannot find the definition of xc_interface.

Checkout to commit 805ed3b20492d2f4bb465bfda65cedd286e23209 can finish

the

Quoted 14 lines
Quoted 14 lines
Quoted 1 line

build.

Perhaps your build is not respecting the QEMU_TAG in Config.mk, for some reason? There are (humungous) patches pending on xen-unstable.hg which will introduce xc_interface.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel