From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B06E385E448; Fri, 9 Jul 2021 12:27:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B06E385E448 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/101391] New: Unresolved reference to module getopt Date: Fri, 09 Jul 2021 12:27:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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 attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2021 12:27:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101391 Bug ID: 101391 Summary: Unresolved reference to module getopt Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Created attachment 51123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51123&action=3Dedit Mechanical patch The next build error from the devel/modula-2 branch occured like this: /vol/gcc/src/git/modula-2/libgm2/libm2pim/../../gcc/m2/gm2-libs/GetOpt.mod:= 213:11: error: the file containing the definition module =E2=80=98getopt=E2=80=99 c= annot be found 213 | END GetOpt. | ^ make[5]: *** [Makefile:950: GetOpt.lo] Error 1 make[5]: Leaving directory '/var/gcc/gcc-12.0.0-20210708/11.4-gm2/i386-pc-solaris2.11/libgm2/libm2pim' The module has been renamed to cgetopt since. I'm attaching a patch for gcc/m2/gm2-libs/GetOpt.mod for correct this. While the Makefile.am's reflect the new name, the corresponding Makefile.in= 's haven't been regenerated. On top of that, the current files have been generated with automake 1.16.1, while gcc requires automake 1.15.1 as documented in install.text. To get around this, one first needs to regenerate aclocal.m4 with aclocal 1.15.1 in order= to be able rerun automake.=