From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8FC343858C50; Wed, 3 May 2023 16:16:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FC343858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683130575; bh=4cnwdpkDKWtkhGyPBZIZaaV8UleyVg9fZku6NVzY0Hk=; h=From:To:Subject:Date:From; b=sLuIACRtz9pKCP0NxC9VhD0wk4l3Th5d0P6INIAOHgYA5xW9b9D7PhUZmFafvEKCx 051KZnsyBCY4ts45qE35XBSKLNJ6yfBM7B54FvSO17ns8Z0XkP7fVItVwm07eueKcL +4jyBkiUCkBUybyhKLH6ifCIm7eBE0qb+lJ1eq80= From: "klaus.doldinger64 at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109718] New: Dependency generation for header-units and modules not possible Date: Wed, 03 May 2023 16:16:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: klaus.doldinger64 at googlemail dot com 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109718 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=3Dc++23 -fconcepts -fmodules-ts test.cc where test.cc is: ----------------- import ; 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 y= et exist: /usr/local/include/c++/14.0.0/iostream: error: failed to read compiled modu= le: 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.=