From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24005385803D; Tue, 26 Apr 2022 10:53:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24005385803D From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/105391] New: gm2 doesn't heed --with-gmp* Date: Tue, 26 Apr 2022 10:53:10 +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: gaius 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 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: Tue, 26 Apr 2022 10:53:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105391 Bug ID: 105391 Summary: gm2 doesn't heed --with-gmp* Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- When building the current devel/modula-2 branch on i686-pc-linux-gnu for comparison's sake, the build failed like this In file included from /vol/gcc/src/hg/master/modula-2/gcc/m2/mc-boot/GAssertion.c:29: /vol/gcc/src/hg/master/modula-2/gcc/system.h:702:10: fatal error: gmp.h: No such file or directory 702 | #include | ^~~~~~~ compilation terminated. and many many more similar errors. The system in question hadn't installed gmp.h in system directories, but only in a separate prefix specified with --with-gmp. However, gcc/m2/Make-lang.in doesn't heed GMPINC/GMPLIB. The attached patch fixes this by adding $(INCLUDES) in many places. It was enough to let the build succeed, but is certainly hacky in that it may add the variable in more places than necessary. I found the makefile extremely hard to deal with because it's extremely repetitive.=