public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109718] New: Dependency generation for header-units and modules not possible
@ 2023-05-03 16:16 klaus.doldinger64 at googlemail dot com
  0 siblings, 0 replies; only message in thread
From: klaus.doldinger64 at googlemail dot com @ 2023-05-03 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109718
           Summary: Dependency generation for header-units and modules not
                    possible
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: klaus.doldinger64 at googlemail dot com
  Target Milestone: ---

To generate make-dependencies I use the following command line:

g++ -c -MD -MG -std=c++23 -fconcepts -fmodules-ts test.cc

where test.cc is:

-----------------
import <array>;

int main() {
}
-----------------


It gives the error:

cc1plus: error: '-MG' may only be used with '-M' or '-MM'

Removing -MG gives also an error, because the precompiled header does not yet
exist:

/usr/local/include/c++/14.0.0/iostream: error: failed to read compiled module:
No such file or directory
/usr/local/include/c++/14.0.0/iostream: note: compiled module file is
'gcm.cache/./usr/local/include/c++/14.0.0/iostream.gcm'
/usr/local/include/c++/14.0.0/iostream: note: imports must be built before
being imported
/usr/local/include/c++/14.0.0/iostream: fatal error: returning to the gate for
a mechanical issue

So, it looks that there is no possiblity to create a valid dependency file with
gcc.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-03 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 16:16 [Bug c++/109718] New: Dependency generation for header-units and modules not possible klaus.doldinger64 at googlemail dot com

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