From nobody Sat Jun 18 13:55:26 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 27B768679DD for ; Sat, 18 Jun 2022 13:55:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LQHVP6xbHz3p5H for ; Sat, 18 Jun 2022 13:55:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CB8AE15C2A for ; Sat, 18 Jun 2022 13:55:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25IDtP2d054972 for ; Sat, 18 Jun 2022 13:55:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25IDtPmw054971 for toolchain@FreeBSD.org; Sat, 18 Jun 2022 13:55:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 264730] clang++ -fmodules fails when using stdout from cstdio: error: declaration of '__stdoutp' must be imported from module 'std.iosfwd' before it is required Date: Sat, 18 Jun 2022 13:55:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655560526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZGfFpuZmLgN37gZ6LuCksOfazbyR1s+feMiNqNV0kvY=; b=OvuBxKpiOiOAuezd2D9VV5LUmvPq41G58OXGw0+JoRo0MJLQ+NJTfMYCj7PEnj9Gl25BxD MXKRgbJoyRZlQmMOoTi93ui7ANQto7OSNU8W+8c6LRvrpESU6Mwd55sinkkzwynK4caV20 hP8aXtj95rQBvTBDM/otJj40EAQJnHtaP3mFrjNqhxP90wjPg47R8HjcFAO4CZWDQMasuS I6o23DPveo7wkf8tAi5Gl3yQ5czKvIvwGKT/l8yefgTl0ZvfFwqxjSfrmIWHj7py8WWi7X dQ2YeekQtJT+dSkxj8argJugrd+4+nTHttOp7eCnqdW7X6KLZpW2Rk7+q9g3wA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655560526; a=rsa-sha256; cv=none; b=srQtNbAe6KZnQF0HXdkTi2troVOdFOzSVoFpCOnbglsI/1MMUjXOMOxcFMRCObu0xSEQUq Jrx8G0R0TvWMEZIyTWB5r5ibwoK2mW0VLWXERkuADN1FuADjegRCwqTEkiiyC8CnYcnKgg VxLIseBI9HN24+L0eleRz7C1Dl5rvkw6atT3jy2w+KAus8ug99XH+pqr8tgSiWfY59Eapl 4YBgVhbnL7ekJwPd80XSi1VBU0ZTXwJ3q4VLR2IyulTRsKJpzGyADe0N9pwwxhlAn+sySA X6Kw3DpNZmC/uP+J8tsaKdCi1FD1Iu2IRVczoyl1huzEa5ayzX1Ws8R1JYT+DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264730 --- Comment #2 from Dimitry Andric --- This appears to fix it: --- /usr/include/c++/v1/module.modulemap.org 2022-01-07 17:11:14.9939260= 00 +0100 +++ /usr/include/c++/v1/module.modulemap 2022-06-18 15:52:04.2759400= 00 +0200 @@ -180,7 +180,7 @@ export * } module cstdio { - header "cstdio" + textual header "cstdio" export * } module cstdlib { E.g. I looked at the module for , and that has a comment: module stdio_h { // 's __need_* macros require textual inclusion. textual header "stdio.h" export * export Darwin.C.stdio } We don't have "__need_*" macros, but equivalent _*_DEFINED and _*_DECLARED ones. It looks like clang modules can't work yet without the "textual" keyword on= a bunch of our headers... --=20 You are receiving this mail because: You are the assignee for the bug.=