All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10
@ 2020-05-14 14:52 Philippe Mathieu-Daudé
  2020-05-14 14:53 ` [Bug 1878628] " Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-05-14 14:52 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

When building with Clang 10 on Fedora 32, we get:

    CC      linux-user/mmap.o
  linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
          if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878628

Title:
  linux-user/mmap build failure using Clang 10

Status in QEMU:
  New

Bug description:
  When building with Clang 10 on Fedora 32, we get:

      CC      linux-user/mmap.o
    linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
            if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878628/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1878628] Re: linux-user/mmap build failure using Clang 10
  2020-05-14 14:52 [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10 Philippe Mathieu-Daudé
@ 2020-05-14 14:53 ` Philippe Mathieu-Daudé
  2020-06-04  6:11 ` Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-05-14 14:53 UTC (permalink / raw)
  To: qemu-devel

Suggested fix: Use -Wno-tautological-type-limit-compare in configure:

https://www.mail-archive.com/qemu-devel@nongnu.org/msg699808.html

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878628

Title:
  linux-user/mmap build failure using Clang 10

Status in QEMU:
  New

Bug description:
  When building with Clang 10 on Fedora 32, we get:

      CC      linux-user/mmap.o
    linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
            if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878628/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1878628] Re: linux-user/mmap build failure using Clang 10
  2020-05-14 14:52 [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10 Philippe Mathieu-Daudé
  2020-05-14 14:53 ` [Bug 1878628] " Philippe Mathieu-Daudé
@ 2020-06-04  6:11 ` Philippe Mathieu-Daudé
  2020-07-02 10:56 ` Philippe Mathieu-Daudé
  2020-08-20 14:47 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-04  6:11 UTC (permalink / raw)
  To: qemu-devel

Patch posted:
https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg00856.html

** Changed in: qemu
       Status: New => In Progress

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878628

Title:
  linux-user/mmap build failure using Clang 10

Status in QEMU:
  In Progress

Bug description:
  When building with Clang 10 on Fedora 32, we get:

      CC      linux-user/mmap.o
    linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
            if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878628/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1878628] Re: linux-user/mmap build failure using Clang 10
  2020-05-14 14:52 [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10 Philippe Mathieu-Daudé
  2020-05-14 14:53 ` [Bug 1878628] " Philippe Mathieu-Daudé
  2020-06-04  6:11 ` Philippe Mathieu-Daudé
@ 2020-07-02 10:56 ` Philippe Mathieu-Daudé
  2020-08-20 14:47 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-07-02 10:56 UTC (permalink / raw)
  To: qemu-devel

Merged as commit aabab96797a7d61989c25a7ca2b094591bbc74f9.

** Changed in: qemu
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878628

Title:
  linux-user/mmap build failure using Clang 10

Status in QEMU:
  Fix Committed

Bug description:
  When building with Clang 10 on Fedora 32, we get:

      CC      linux-user/mmap.o
    linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
            if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878628/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1878628] Re: linux-user/mmap build failure using Clang 10
  2020-05-14 14:52 [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10 Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-07-02 10:56 ` Philippe Mathieu-Daudé
@ 2020-08-20 14:47 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2020-08-20 14:47 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878628

Title:
  linux-user/mmap build failure using Clang 10

Status in QEMU:
  Fix Released

Bug description:
  When building with Clang 10 on Fedora 32, we get:

      CC      linux-user/mmap.o
    linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
            if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878628/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-20 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 14:52 [Bug 1878628] [NEW] linux-user/mmap build failure using Clang 10 Philippe Mathieu-Daudé
2020-05-14 14:53 ` [Bug 1878628] " Philippe Mathieu-Daudé
2020-06-04  6:11 ` Philippe Mathieu-Daudé
2020-07-02 10:56 ` Philippe Mathieu-Daudé
2020-08-20 14:47 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.