From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F37A43858C50; Sun, 24 Sep 2023 11:27:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F37A43858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695554859; bh=x2gfdjIdZQEGayKrm8XfOtOeMpR+tzIcXbCNswWX8eg=; h=From:To:Subject:Date:From; b=OnJm2wEZeWzsKMymtvvodj0is82bYIZunt853o6w2LW25Reu3wR1Xnq3cQfgo6hYS Fw2W1Jv/6fXM4M7qBx2zUWRHvYDQUddnSvWYwHWSsmWzVRqscpZYwIj0htMMbNrzXV K4LjOgDmj7NySaN9pDgSENIB40kjh5c4e3ouKqxc= From: "orgads at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c Date: Sun, 24 Sep 2023 11:27:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: orgads at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30882 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 follow= ing 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) >=3D 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 --=20 You are receiving this mail because: You are on the CC list for the bug.=