Skip to contentSkip to conversation

Compile error

Qemu-devel Gerhard Wiesinger 5 participants 9 messages Sep 16, 2012 – Nov 1, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o
fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

Ciao,
Gerhard

#1 lore raw

Hello,

Still not compile clean, also on the build servers. Who is responsible for the fix?

Ciao,
Gerhard

Quoted 20 lines · Gerhard Wiesinger

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o
fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

Ciao,
Gerhard

#2 lore raw

[Qemu-devel] Wrong license (GPL 2 only) for files in fsdev

Hi,

all files in fsdev still use GNU GPL version 2 only instead of GNU GPL version 2 or later.

Can this be fixed? If not, we should addtext like this:

* Contributions after 2012-10-10 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version.

Is it possible to add some general statement to the QEMU license so that any file which is newly added and which uses GPL 2 is automatically GPL 2+? IMHO at least some remarks in CODING_STYLE would be good.

Regards

Stefan Weil

#3 lore raw

Re: [Qemu-devel] Wrong license (GPL 2 only) for files in fsdev

Il 10/10/2012 07:52, Stefan Weil ha scritto:

Quoted 4 lines

Hi,

all files in fsdev still use GNU GPL version 2 only instead of GNU GPL version 2 or later.

It's IBM copyright, so I think no.

Quoted 4 lines

Can this be fixed? If not, we should addtext like this:

* Contributions after 2012-10-10 are licensed under the terms of the
* GNU GPL, version 2 or (at your option) any later version.

Yes, that would be good.

Quoted 4 lines

Is it possible to add some general statement to the QEMU license so that any file which is newly added and which uses GPL 2 is automatically GPL 2+? IMHO at least some remarks in CODING_STYLE would be good.

No, because in some cases there is GPLv2 code in the file, as was the case for PCI device assignment.

Paolo

#4 lore raw
In reply to Gerhard Wiesinger

Ping again ...

Ciao,
Gerhard

Quoted 31 lines · Gerhard Wiesinger

Hello,

Still not compile clean, also on the build servers. Who is responsible for the fix?

Ciao,
Gerhard

Quoted 20 lines · Gerhard Wiesinger

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o
fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

Ciao,
Gerhard

#5 lore raw
Quoted 1 line · Gerhard Wiesinger

Ping again ...

Can you just configure it with --disable-werror ? IIRC it is the default for the released
QEMU versions.

Quoted 31 lines · Gerhard Wiesinger
Quoted 30 lines

Hello,

Still not compile clean, also on the build servers. Who is responsible for the fix?

Ciao,
Gerhard

Quoted 20 lines · Gerhard Wiesinger

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

Signature · 2 lines
Thanks.
-- Max
#6 lore raw

Hello,

Yes, compiles when warnings are not treated as errors.

But do we want to be only compile clean when we suppress such warnings?

Also ./configure with plattform should be enough.

Ciao,
Gerhard

Quoted 35 lines · Max Filippov
Quoted 1 line · Gerhard Wiesinger

Ping again ...

Can you just configure it with --disable-werror ? IIRC it is the default for the released
QEMU versions.

Quoted 29 lines · Gerhard Wiesinger
Quoted 28 lines

Hello,

Still not compile clean, also on the build servers. Who is responsible for the fix?

Ciao,
Gerhard

Quoted 19 lines · Gerhard Wiesinger

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

#7 lore raw
In reply to Gerhard Wiesinger
Quoted 4 lines · Gerhard Wiesinger

Ping again ...

Ciao,
Gerhard

What platform is this breaking on?

Can you point me to the buildbot failure?

Regards,

Anthony Liguori

Quoted 38 lines · Gerhard Wiesinger
Quoted 36 lines

Hello,

Still not compile clean, also on the build servers. Who is responsible for the fix?

Ciao,
Gerhard

Quoted 24 lines · Gerhard Wiesinger

Hello,

qemu is currently not compile clean on Fedora 17:

CC fsdev/virtfs-proxy-helper.o fsdev/virtfs-proxy-helper.c: In function ‘setfsugid’:
fsdev/virtfs-proxy-helper.c:293:13: error: ignoring return value of ‘setfsgid’, declared with attribute warn_unused_result [-Werror=unused-result] fsdev/virtfs-proxy-helper.c:294:13: error: ignoring return value of ‘setfsuid’, declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make: *** [fsdev/virtfs-proxy-helper.o] Error 1

gcc --version
gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)

Please fix it.

Ciao,
Gerhard