public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47720] New: problems with makefile dependency generation using -M
@ 2011-02-13 18:38 kristopher.kuhlman at gmail dot com
  2011-05-24 19:07 ` [Bug fortran/47720] " zbeekman at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: kristopher.kuhlman at gmail dot com @ 2011-02-13 18:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47720

           Summary: problems with makefile dependency generation using -M
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kristopher.kuhlman@gmail.com


Created attachment 23327
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23327
two small test codes that illustrate problem

I am in Ubuntu using a trunk build of gfortran from yesterday.

When I try to create makefile dependencies using -M, first it complains that I
need to use CPP to pre-process the code, even though there are no CPP
directives in this code.

The test code compiles file otherwise:

$ gfortran-4.6 -c makegen1.f90
$ gfortran-4.6 -c makegen2.f90
$ gfortran-4.6 -M makegen?.f90
Fatal Error: To enable preprocessing, use -cpp
Fatal Error: To enable preprocessing, use -cpp

secondly, when I add the -cpp flag, I get redundant mentions of use of a common
module.  In this test code it shows up 3 times (see constants.mod mentioned 3
times).  Can gfortran not repeat the same module several times?

$ gfortran-4.6 -cpp -M makegen?.f90
makegen1.o constants.mod: makegen1.f90
makegen2.o utility.mod: makegen2.f90 constants.mod constants.mod \
 constants.mod


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

end of thread, other threads:[~2021-11-21 18:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13 18:38 [Bug fortran/47720] New: problems with makefile dependency generation using -M kristopher.kuhlman at gmail dot com
2011-05-24 19:07 ` [Bug fortran/47720] " zbeekman at gmail dot com
2011-05-25 19:38 ` kristopher.kuhlman at gmail dot com
2011-05-25 19:48 ` kristopher.kuhlman at gmail dot com
2011-05-25 20:00 ` zbeekman at gmail dot com
2011-05-25 20:03 ` zbeekman at gmail dot com
2011-07-24 19:36 ` dfranke at gcc dot gnu.org
2013-12-29 13:37 ` dominiq at lps dot ens.fr
2021-11-21 18:19 ` aldot 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).