public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c
@ 2023-09-24 11:27 orgads at gmail dot com
  2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: orgads at gmail dot com @ 2023-09-24 11:27 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30882
           Summary: MinGW: undefined reference to `getline' in
                    m32c/opc2c.c
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: orgads at gmail dot com
  Target Milestone: ---

When building with gdb on MinGW64 with simulators enabled, I get the following
warning:

../../gdb-13.2/sim/m32c/opc2c.c: In function 'main':
../../gdb-13.2/sim/m32c/opc2c.c:541:10: warning: implicit declaration of
function 'getline' [-Wimplicit-function-declaration]
  541 |   while (getline (&linebuf, &len, in) >= 0)
      |          ^~~~~~~

And it fails to link:

ld.exe: m32c/opc2c.o:opc2c.c:(.text.startup+0x123): undefined reference to
`getline'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:3343: m32c/opc2c.exe] Error 1

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

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

* [Bug build/30882] MinGW: undefined reference to `getline' in m32c/opc2c.c
  2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
@ 2023-09-24 11:33 ` orgads at gmail dot com
  2023-10-15  3:18 ` [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline' vapier at gentoo dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: orgads at gmail dot com @ 2023-09-24 11:33 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Orgad Shaneh <orgads at gmail dot com> ---
Reported initially in https://sourceware.org/bugzilla/show_bug.cgi?id=28476.

Still present in 13.2.

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

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

* [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline'
  2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
  2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
@ 2023-10-15  3:18 ` vapier at gentoo dot org
  2023-10-15 17:19 ` vapier at gentoo dot org
  2024-03-03 11:25 ` orgads at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2023-10-15  3:18 UTC (permalink / raw)
  To: gdb-prs

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

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|build                       |sim
                 CC|                            |vapier at gentoo dot org
            Summary|MinGW: undefined reference  |sim: m32c/opc2c.c: MinGW:
                   |to `getline' in             |undefined reference to
                   |m32c/opc2c.c                |`getline'

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

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

* [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline'
  2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
  2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
  2023-10-15  3:18 ` [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline' vapier at gentoo dot org
@ 2023-10-15 17:19 ` vapier at gentoo dot org
  2024-03-03 11:25 ` orgads at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2023-10-15 17:19 UTC (permalink / raw)
  To: gdb-prs

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

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at sourceware dot org   |vapier at gentoo dot org
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2023-10-15

--- Comment #2 from Mike Frysinger <vapier at gentoo dot org> ---
the top-level configurey already supports building subdirs for the --build
system.  so i posted some patches to leverage that and link them in to our
build-time tools.

https://sourceware.org/pipermail/gdb-patches/2023-October/203256.html
https://sourceware.org/pipermail/gdb-patches/2023-October/203257.html
https://sourceware.org/pipermail/gdb-patches/2023-October/203258.html

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

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

* [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline'
  2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
                   ` (2 preceding siblings ...)
  2023-10-15 17:19 ` vapier at gentoo dot org
@ 2024-03-03 11:25 ` orgads at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: orgads at gmail dot com @ 2024-03-03 11:25 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Orgad Shaneh <orgads at gmail dot com> ---
As of 14.1, this is still broken.

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

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

end of thread, other threads:[~2024-03-03 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
2023-10-15  3:18 ` [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline' vapier at gentoo dot org
2023-10-15 17:19 ` vapier at gentoo dot org
2024-03-03 11:25 ` orgads at gmail 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).