public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/105391] New: gm2 doesn't heed --with-gmp*
@ 2022-04-26 10:53 ro at gcc dot gnu.org
  2022-04-26 10:53 ` [Bug modula2/105391] " ro at gcc dot gnu.org
  2022-04-28 13:39 ` gaius at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ro at gcc dot gnu.org @ 2022-04-26 10:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105391

            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 <gmp.h>
      |          ^~~~~~~
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.

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

* [Bug modula2/105391] gm2 doesn't heed --with-gmp*
  2022-04-26 10:53 [Bug modula2/105391] New: gm2 doesn't heed --with-gmp* ro at gcc dot gnu.org
@ 2022-04-26 10:53 ` ro at gcc dot gnu.org
  2022-04-28 13:39 ` gaius at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ro at gcc dot gnu.org @ 2022-04-26 10:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105391

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 52883
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52883&action=edit
Hacky patch

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

* [Bug modula2/105391] gm2 doesn't heed --with-gmp*
  2022-04-26 10:53 [Bug modula2/105391] New: gm2 doesn't heed --with-gmp* ro at gcc dot gnu.org
  2022-04-26 10:53 ` [Bug modula2/105391] " ro at gcc dot gnu.org
@ 2022-04-28 13:39 ` gaius at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2022-04-28 13:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105391

Gaius Mulley <gaius at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Many thanks for the patch, now applied to the branch.  Ah yes, I will refactor
the Make-lang.in and reduce the number of similar rules.

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

end of thread, other threads:[~2022-04-28 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 10:53 [Bug modula2/105391] New: gm2 doesn't heed --with-gmp* ro at gcc dot gnu.org
2022-04-26 10:53 ` [Bug modula2/105391] " ro at gcc dot gnu.org
2022-04-28 13:39 ` gaius at gcc dot gnu.org

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).