From nobody Sat Jun 18 13:39:56 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 C06EB8635D6 for ; Sat, 18 Jun 2022 13:39:56 +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 4LQH8X3Ff8z3j8n for ; Sat, 18 Jun 2022 13:39:56 +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 4C02A15057 for ; Sat, 18 Jun 2022 13:39:56 +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 25IDduQM044419 for ; Sat, 18 Jun 2022 13:39:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25IDduIL044418 for toolchain@FreeBSD.org; Sat, 18 Jun 2022 13:39:56 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:39:56 +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: cc 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=1655559596; 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=mcDjkFk7NuXJy0+cfs+PwOzNzLGhCG+odK9hex5GlKg=; b=jgZozLmgRVa/I9wl5Uf4ipdg5+A0KfaM3fQ3E2Tz1YKqDMN6mSim79rdXbKKHmm/qYmtKa eruO82b1IQMo4OAGIkBmqgV1SgUI9WKjjjz/vyMDdWVTdLw+so8Fv7ayLsxiQqbwj6pM0O Av5U5HQJuV8SHlti+93+ZaFp1pMdCROqV/0umAbu4gN5ORH7g/Y7l547qjl6cR4L+f9TmQ AdWIOywn39wajHy4e07SdXLYw5APAO8tROlf7jGglHGz/y9Omu5smeJ+VjE1VPsjr9lYJR qWWwSK5qem0fLZbhGNCH1se0vB2D80sm+XMXODqyFsc1mRloGiR44aP1WiMD9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655559596; a=rsa-sha256; cv=none; b=klE22C0Z698UFmAg5dGYeRHfLH/rNUcAY+clnnjgE61ka+9XC5RMFR5QWIvXa944fQT4X/ vhyuVtTayc+FWvMPCs5oY8xF6JAC8YdJdtj/FQDehSx+fIGN5O1kmEGkE88zCql/uZrkeD KCCsyMEevf7ua7GJ4W02wJhdW0XZYqayn/p7psIgJ7oKGjVPQU/FwUeu1iT2hqZDRHnUzV AOt2KlROLIkTxO0tHV3tiD6q1eu+lD4x+jywiwftMrEMSoEw64sgnm5sDGvA5EZWSJzh4T EZ1ZdsQhwngdHMVV61B/xD/1q22+RWMNeMPToIrd8EHB4OP73l98Ca5q6c/a/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264730 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #1 from Dimitry Andric --- I'm unsure why -fmodules changes this behavior, but __stdoutp is declared in /usr/include/stdio.h, like: #ifndef _STDSTREAM_DECLARED __BEGIN_DECLS extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; __END_DECLS #define _STDSTREAM_DECLARED #endif while there is a similar, but slightly different declaration in /usr/include/wchar.h: #ifndef _STDSTREAM_DECLARED extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; #define _STDSTREAM_DECLARED #endif Though in this file, __BEGIN_DECLS is at the top, and __END_DECLS at the bottom. libc++'s begins by including <__config>, and then . I suspect the former is pulling in , or something like that? On the other hand, you might be the very first person to ever try modules on FreeBSD. There are likely some bumps in the road. :) --=20 You are receiving this mail because: You are the assignee for the bug.=