Bug 28802 - error: 'gdb_argv' was not declared in this scope for x86_64-w64-mingw32 host
Summary: error: 'gdb_argv' was not declared in this scope for x86_64-w64-mingw32 host
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 05:11 UTC by cqwrteur
Modified: 2022-01-21 16:38 UTC (History)
2 users (show)

See Also:
Host: x86_64-w64-mingw32
Target: aarch64-linux-android
Build: x86_64-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cqwrteur 2022-01-21 05:11:35 UTC
../../../../../binutils-gdb/gdb/ser-mingw.c: In function 'int pipe_windows_open(serial*, const char*)':
../../../../../binutils-gdb/gdb/ser-mingw.c:870:3: error: 'gdb_argv' was not declared in this scope
  870 |   gdb_argv argv (name);
      |   ^~~~~~~~
../../../../../binutils-gdb/gdb/ser-mingw.c:872:9: error: 'argv' was not declared in this scope
  872 |   if (! argv[0] || argv[0][0] == '\0')
      |         ^~~~
../../../../../binutils-gdb/gdb/ser-mingw.c:889:18: error: 'argv' was not declared in this scope
  889 |                  argv[0], argv.get (), NULL, NULL,
      |                  ^~~~
make[2]: *** [Makefile:1650: ser-mingw.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 1 cqwrteur 2022-01-21 05:18:15 UTC
missing
#include "gdbsupport/buildargv.h"

https://github.com/bminor/binutils-gdb/commit/2ddd4c6082edcc92d57115152f8311f67b7bdd95

I guess this is an issue for all hosts.