public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power
@ 2024-08-01  5:22 jeevitha at linux dot ibm.com
  2024-08-01  5:23 ` [Bug build/32042] " jeevitha at linux dot ibm.com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jeevitha at linux dot ibm.com @ 2024-08-01  5:22 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

            Bug ID: 32042
           Summary: Compilation issue for tst-resolv-short-response.c on
                    power
           Product: glibc
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: jeevitha at linux dot ibm.com
                CC: carlos at redhat dot com
  Target Milestone: ---

The following commit introduces a new test case, tst-resolv-short-response,
which is causing a compilation issue with GCC 10.2.1, but not with GCC 13+.

We are receiving the following compilation error:

tst-resolv-short-response.c: In function 'response':
tst-resolv-short-response.c:36:7: error: a label can only be part of a
statement and a declaration is not a statement
   36 |       struct resolv_response_flags flags = {.rcode = rcode};
      |       ^~~~~~
make[2]: *** [../o-iterator.mk:9:
/home/tcbot/bot-worker/glibc-ppc64le-base-default/vpath/resolv/tst-resolv-short-response.o]
Error 1

The error message indicates that there is a problem with the declaration of a
struct variable immediately following a label in the code.

commit:

Author: Florian Weimer fweimer@redhat.com
Date: Wed Jul 24 12:06:47 2024 +0200
resolv: Allow short error responses to match any query (bug 31890)

Reviewed-by: DJ Delorie <dj@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/32042] Compilation issue for tst-resolv-short-response.c on power
  2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
@ 2024-08-01  5:23 ` jeevitha at linux dot ibm.com
  2024-08-01  8:24 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jeevitha at linux dot ibm.com @ 2024-08-01  5:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

Jeevitha P. <jeevitha at linux dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at linux dot ibm.com,
                   |                            |fw at deneb dot enyo.de,
                   |                            |jeevitha at linux dot ibm.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/32042] Compilation issue for tst-resolv-short-response.c on power
  2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
  2024-08-01  5:23 ` [Bug build/32042] " jeevitha at linux dot ibm.com
@ 2024-08-01  8:24 ` fweimer at redhat dot com
  2024-08-01  8:40 ` [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC fweimer at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2024-08-01  8:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
   Last reconfirmed|                            |2024-08-01
                 CC|                            |fweimer at redhat dot com
             Status|UNCONFIRMED                 |ASSIGNED
              Flags|                            |security-
     Ever confirmed|0                           |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC
  2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
  2024-08-01  5:23 ` [Bug build/32042] " jeevitha at linux dot ibm.com
  2024-08-01  8:24 ` fweimer at redhat dot com
@ 2024-08-01  8:40 ` fweimer at redhat dot com
  2024-08-01  8:46 ` fweimer at redhat dot com
  2024-08-01 19:09 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2024-08-01  8:40 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Compilation issue for       |Compilation issue for
                   |tst-resolv-short-response.c |tst-resolv-short-response.c
                   |on power                    |with older GCC

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC
  2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
                   ` (2 preceding siblings ...)
  2024-08-01  8:40 ` [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC fweimer at redhat dot com
@ 2024-08-01  8:46 ` fweimer at redhat dot com
  2024-08-01 19:09 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2024-08-01  8:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Patch posted:

[PATCH] resolv: Fix tst-resolv-short-response for older GCC (bug 32042)
<https://inbox.sourceware.org/libc-alpha/87ikwk3a25.fsf@oldenburg.str.redhat.com/>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC
  2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
                   ` (3 preceding siblings ...)
  2024-08-01  8:46 ` fweimer at redhat dot com
@ 2024-08-01 19:09 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2024-08-01 19:09 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32042

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.41
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.41 via:

commit ec119972cb2598c04ec7d4219e20506006836f64
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Aug 1 10:46:10 2024 +0200

    resolv: Fix tst-resolv-short-response for older GCC (bug 32042)

    Previous GCC versions do not support the C23 change that
    allows labels on declarations.

    Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>

I'll backport it as applicable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-08-01 19:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-01  5:22 [Bug build/32042] New: Compilation issue for tst-resolv-short-response.c on power jeevitha at linux dot ibm.com
2024-08-01  5:23 ` [Bug build/32042] " jeevitha at linux dot ibm.com
2024-08-01  8:24 ` fweimer at redhat dot com
2024-08-01  8:40 ` [Bug build/32042] Compilation issue for tst-resolv-short-response.c with older GCC fweimer at redhat dot com
2024-08-01  8:46 ` fweimer at redhat dot com
2024-08-01 19:09 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).