public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Aditya Vidyadhar Kamath <akamath996@gmail.com>, tom@tromey.com
Cc: ulrich.weigand@de.ibm.com, gdb-patches@sourceware.org,
	Aditya.Kamath1@ibm.com, sangamesh.swamy@in.ibm.com
Subject: Re: [PATCH] Fix AIX build break.
Date: Sun, 9 Jun 2024 10:12:21 -0400	[thread overview]
Message-ID: <373d9025-6736-45af-9a61-9273790840f2@simark.ca> (raw)
In-Reply-To: <20240609053844.1899-1-akamath996@gmail.com>



On 2024-06-09 01:38, Aditya Vidyadhar Kamath wrote:
> From: KamathForAIX <Aditya.Kamath1@ibm.com>
> 
> A recent commit https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=9102a6c15c756c55e77c0fa7deecfc58fa8a361e
> has broken AIX internal CI build for GDB.
> 
> The error is as follows:
> CXX    tui/tui-win.o
> tui/tui-win.c: In function 'void tui_sigwinch_handler(int)':
> tui/tui-win.c:532:3: error: 'mark_async_signal_handler' was not declared in this scope; did you mean 'async_signal_handler'?
>   532 |   mark_async_signal_handler (tui_sigwinch_token);
>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
>       |   async_signal_handler
> tui/tui-win.c: At global scope:
> tui/tui-win.c:538:1: error: variable or field 'tui_async_resize_screen' declared void
>   538 | tui_async_resize_screen (gdb_client_data arg)
>       | ^~~~~~~~~~~~~~~~~~~~~~~
> tui/tui-win.c:538:26: error: 'gdb_client_data' was not declared in this scope
>   538 | tui_async_resize_screen (gdb_client_data arg)
>       |                          ^~~~~~~~~~~~~~~
> tui/tui-win.c: In function 'void tui_initialize_win()':
> tui/tui-win.c:579:36: error: 'tui_async_resize_screen' was not declared in this scope
>   579 |     = create_async_signal_handler (tui_async_resize_screen, NULL,
>       |                                    ^~~~~~~~~~~~~~~~~~~~~~~
> tui/tui-win.c:579:7: error: 'create_async_signal_handler' was not declared in this scope; did you mean 'async_signal_handler'?
>   579 |     = create_async_signal_handler (tui_async_resize_screen, NULL,
>       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |       async_signal_handler
> gmake: *** [Makefile:1947: tui/tui-win.o] Error 1
> 
> To fix this we need to add #include "async-event.h" and this completes the build.
> 
> This patch does the same.
> ---
>  gdb/tui/tui-win.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
> index 2f793e264e1..d3289d7edc1 100644
> --- a/gdb/tui/tui-win.c
> +++ b/gdb/tui/tui-win.c
> @@ -31,6 +31,7 @@
>  #include "cli/cli-style.h"
>  #include "ui-out.h"
>  #include "utils.h"
> +#include "async-event.h"
>  
>  #include "tui/tui.h"
>  #include "tui/tui-io.h"

Thanks for the report and patch.  See:

https://inbox.sourceware.org/gdb-patches/20240609141034.238889-1-simon.marchi@polymtl.ca/T/#u

I tested this series on the buildbot before sending it.  If we had an
AIX builder, this would have been caught.  Do you think it would be
possible for IBM to contribute an AIX builder to builder.sourceware.org?
I think it would be valuable for you, as you would have to chase less
regressions on AIX, they would be caught earlier.

Simon

  reply	other threads:[~2024-06-09 14:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-09  5:38 Aditya Vidyadhar Kamath
2024-06-09 14:12 ` Simon Marchi [this message]
2024-06-12  7:35   ` Aditya Kamath1
  -- strict thread matches above, loose matches on Subject: below --
2024-01-17 18:28 Aditya Vidyadhar Kamath
2024-01-17 19:25 ` Tom Tromey
2024-01-19 11:58   ` Aditya Kamath1
2024-01-19 16:25     ` Tom Tromey
2024-01-20 15:03       ` Aditya Kamath1
2024-01-24  0:53         ` Aditya Kamath1
2024-01-25 14:45           ` Aditya Kamath1
2024-01-25 19:53             ` Tom Tromey
2024-01-26  8:37               ` Aditya Kamath1
2024-01-31  0:40                 ` Tom Tromey
2024-01-31  9:15                   ` Aditya Kamath1
2024-02-01  0:37                     ` Tom Tromey
2024-02-01  3:03                       ` Aditya Kamath1
2024-02-06 12:36                         ` Ciaran Woodward
2024-02-06 14:49                           ` Tom Tromey
2024-02-06 15:04                             ` Ciaran Woodward
2024-02-06 15:54                           ` Aditya Kamath1
2024-01-12  9:20 Aditya Kamath1
2024-01-12  9:50 ` Tom de Vries
2024-01-12 15:56   ` Tom Tromey
2024-01-16  9:42     ` Aditya Kamath1
2024-01-17 15:09       ` Tom Tromey
2023-08-11  8:49 Aditya Kamath1
2023-08-11  9:43 ` Ulrich Weigand
2023-08-11  9:53   ` Aditya Kamath1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=373d9025-6736-45af-9a61-9273790840f2@simark.ca \
    --to=simark@simark.ca \
    --cc=Aditya.Kamath1@ibm.com \
    --cc=akamath996@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sangamesh.swamy@in.ibm.com \
    --cc=tom@tromey.com \
    --cc=ulrich.weigand@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).