Skip to contentSkip to conversation

Bug: Compile Fail - v4.4

DISCUSSION [email protected] 4 participants 6 messages Jun 16, 2014 – Jun 18, 2014

lore
Share & tools
lore
#0 lore raw

On Debian Testing, x86_64.

I cannot get Xen compiled. I've carefully followed the wiki here:
http://wiki.xen.org/wiki/Compiling_Xen_From_Source
... especially WRT dependencies, but no change.

gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -or -g
-Wno-unused -fno-strict-aliasing -I../include -I../drivers -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../.
gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -or -g
-Wno-unused -fno-strict-aliasing -I../include -I../drivers -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../.
gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -ror -g
-Wno-unused -fno-strict-aliasing -I../include -I../drivers -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc -I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../ block-qcow.c: In function ‘get_cluster_offset’:
block-qcow.c:431:3: error: ‘tmp_ptr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
memcpy(tmp_ptr, l1_ptr, 4096);
^
block-qcow.c:606:7: error: ‘tmp_ptr2’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

   if (write(s->fd, tmp_ptr2, 4096) != 4096) {
       ^

cc1: all warnings being treated as errors /usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/Rules.mk:89:
recipe for target 'block-qcow.o' failed
make[6]: *** [block-qcow.o] Error 1
make[6]: Leaving directory '/usr/local/src/xen-4.4.0/tools/blktap2/drivers' /usr/local/src/xen-4.4.0/tools/blktap2/../../tools/Rules.mk:105: recipe for target 'subdir-install-drivers' failed
make[5]: *** [subdir-install-drivers] Error 2
make[5]: Leaving directory '/usr/local/src/xen-4.4.0/tools/blktap2' /usr/local/src/xen-4.4.0/tools/blktap2/../../tools/Rules.mk:100: recipe for target 'subdirs-install' failed
make[4]: *** [subdirs-install] Error 2
make[4]: Leaving directory '/usr/local/src/xen-4.4.0/tools/blktap2' /usr/local/src/xen-4.4.0/tools/../tools/Rules.mk:105: recipe for target 'subdir-install-blktap2' failed
make[3]: *** [subdir-install-blktap2] Error 2
make[3]: Leaving directory '/usr/local/src/xen-4.4.0/tools' /usr/local/src/xen-4.4.0/tools/../tools/Rules.mk:100: recipe for target 'subdirs-install' failed
make[2]: *** [subdirs-install] Error 2
make[2]: Leaving directory '/usr/local/src/xen-4.4.0/tools' Makefile:96: recipe for target 'install-tools' failed
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory '/usr/local/src/xen-4.4.0' Makefile:144: recipe for target 'world' failed
make: *** [world] Error 2

Signature · 7 lines
http://www.fastmail.fm - IMAP accessible web-mail


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

Can someone please advise? I need this to get VGA passthrough, as Debian Xen packages can't do it.

On Mon, Jun 16, 2014, at 11:37, [1][email protected] wrote:

On Debian Testing, x86_64.

I cannot get Xen compiled. I've carefully followed the wiki here:

[2]http://wiki.xen.org/wiki/Compiling_Xen_From_Source

... especially WRT dependencies, but no change.

gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99

-Wall -Wstrict-prototypes -Wdeclaration-after-statement

-Wno-unused-but-set-variable -Wno-unused-local-typedefs -or -g

-Wno-unused -fno-strict-aliasing -I../include -I../drivers

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../.

gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99

-Wall -Wstrict-prototypes -Wdeclaration-after-statement

-Wno-unused-but-set-variable -Wno-unused-local-typedefs -or -g

-Wno-unused -fno-strict-aliasing -I../include -I../drivers

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../.

gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99

-Wall -Wstrict-prototypes -Wdeclaration-after-statement

-Wno-unused-but-set-variable -Wno-unused-local-typedefs -ror -g

-Wno-unused -fno-strict-aliasing -I../include -I../drivers

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/libxc

-I/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../

block-qcow.c: In function ‘get_cluster_offset’:

block-qcow.c:431:3: error: ‘tmp_ptr’ may be used uninitialized in this

function [-Werror=maybe-uninitialized]

  memcpy(tmp_ptr, l1_ptr, 4096);

^

block-qcow.c:606:7: error: ‘tmp_ptr2’ may be used uninitialized in this

function [-Werror=maybe-uninitialized]

  if (write(s->fd, tmp_ptr2, 4096) != 4096) {
      ^

cc1: all warnings being treated as errors

/usr/local/src/xen-4.4.0/tools/blktap2/drivers/../../../tools/Rules.mk:
89:

recipe for target 'block-qcow.o' failed

make[6]: *** [block-qcow.o] Error 1

make[6]: Leaving directory

'/usr/local/src/xen-4.4.0/tools/blktap2/drivers'

/usr/local/src/xen-4.4.0/tools/blktap2/../../tools/Rules.mk:105: recipe

for target 'subdir-install-drivers' failed

make[5]: *** [subdir-install-drivers] Error 2

make[5]: Leaving directory '/usr/local/src/xen-4.4.0/tools/blktap2'

/usr/local/src/xen-4.4.0/tools/blktap2/../../tools/Rules.mk:100: recipe

for target 'subdirs-install' failed

make[4]: *** [subdirs-install] Error 2

make[4]: Leaving directory '/usr/local/src/xen-4.4.0/tools/blktap2'

/usr/local/src/xen-4.4.0/tools/../tools/Rules.mk:105: recipe for target

'subdir-install-blktap2' failed

make[3]: *** [subdir-install-blktap2] Error 2

make[3]: Leaving directory '/usr/local/src/xen-4.4.0/tools'

/usr/local/src/xen-4.4.0/tools/../tools/Rules.mk:100: recipe for target

'subdirs-install' failed

make[2]: *** [subdirs-install] Error 2

make[2]: Leaving directory '/usr/local/src/xen-4.4.0/tools'

Makefile:96: recipe for target 'install-tools' failed

make[1]: *** [install-tools] Error 2

make[1]: Leaving directory '/usr/local/src/xen-4.4.0'

Makefile:144: recipe for target 'world' failed

make: *** [world] Error 2

--

[3]http://www.fastmail.fm - IMAP accessible web-mail

References

1. mailto:[email protected]
2. http://wiki.xen.org/wiki/Compiling_Xen_From_Source
3. http://www.fastmail.fm/

Signature · 1 line
http://www.fastmail.fm - Access your email from home and the web

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

#2 lore raw
In reply to [email protected]
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 16.06.14 at 20:37, <[email protected]> wrote:

On Debian Testing, x86_64.

I cannot get Xen compiled. I've carefully followed the wiki here:
http://wiki.xen.org/wiki/Compiling_Xen_From_Source
... especially WRT dependencies, but no change.

You don't mention the most important point here - you're using gcc 4.9.0. A patch for these new warnings was posted already (see
http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg01399.html),
but in the original shape it wasn't immediately acceptable. An alternative got posted in response a little later. You can pick any (especially if you're not using blktap2), or simply disable building of the blktap code via configure option.

As to your subsequent post - please be a little more patient. Or, even better, just supply a patch (we're on xen-devel after all).

Jan

#3 lore raw

On Tue, Jun 17, 2014, at 0:51, Jan Beulich wrote:

On 16.06.14 at 20:37, <[1][email protected]> wrote:

On Debian Testing, x86_64.

I cannot get Xen compiled. I've carefully followed the wiki here:

[2]http://wiki.xen.org/wiki/Compiling_Xen_From_Source

... especially WRT dependencies, but no change.

You don't mention the most important point here - you're using gcc

4.9.0. A patch for these new warnings was posted already (see

[3]http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg01399 .html),

but in the original shape it wasn't immediately acceptable. An

alternative got posted in response a little later. You can pick

any (especially if you're not using blktap2), or simply disable

building of the blktap code via configure option.

Thank you. Be advised that I got this from the Supported download point
(http://www.xenproject.org/downloads/xen-archives/xen-44-series/xen-440
.html), so this is going to keep happening, or users will simply give up.

Also I wish I could make a number of clarifications and updates in the wiki, of issues that tripped me up for days.

References

1. mailto:[email protected]
2. http://wiki.xen.org/wiki/Compiling_Xen_From_Source
3. http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg01399.html

Signature · 1 line
http://www.fastmail.fm - The professional email service

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

#5 lore raw
In reply to [email protected]
Quoted 20 lines · On mar, 2014-06-17 at 07:43 -0700, [email protected] wrote:
Quoted 10 lines · Jan Beulich

On 16.06.14 at 20:37, <[email protected]> wrote:

On Debian Testing, x86_64.

I cannot get Xen compiled. I've carefully followed the wiki here:
http://wiki.xen.org/wiki/Compiling_Xen_From_Source
... especially WRT dependencies, but no change.

Quoted 7 lines

You don't mention the most important point here - you're using gcc 4.9.0. A patch for these new warnings was posted already (see
http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg01399.html),
but in the original shape it wasn't immediately acceptable. An alternative got posted in response a little later. You can pick any (especially if you're not using blktap2), or simply disable building of the blktap code via configure option.

Quoted 4 lines

Thank you. Be advised that I got this from the Supported download
point
(http://www.xenproject.org/downloads/xen-archives/xen-44-series/xen-440.html), so this is going to keep happening, or users will simply give up.

You're right. I tried to ping the discussion containing the proposed fix already here:

http://lists.xen.org/archives/html/xen-devel/2014-06/msg02065.html

Hopefully, someone will look at the patch soon...

Quoted 3 lines

Also I wish I could make a number of clarifications and updates in the wiki, of issues that tripped me up for days.

Yeah, please do! Do as Ian said for getting write access and then go ahead.

Also, next Wednesday is going to be one of our Docs Day:
http://lists.xen.org/archives/html/xen-devel/2014-06/msg02266.html
http://wiki.xenproject.org/wiki/Xen_Document_Days

If you have time, I'd really recommend participating.

In the mean time, if there are issues that you've found in the docs, but for any reason you can't fix them right away, consider adding them here, so that they someone can take care of them during the event:
http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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