From nobody Mon May 25 21:46:48 2026 X-Original-To: bugs@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 4gPTx50npkz6g2w3 for ; Mon, 25 May 2026 21:46:49 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gPTx5085Sz3TQH for ; Mon, 25 May 2026 21:46:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779745609; 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; bh=TcWGyE4IAmGu8R4jyk+9kpIV+/IXSGLAN8O1T2uE9aA=; b=M8yeS/BTAglySxD/+k3tlHpPI1xl9h2n9I78R2hFBkH1T0nIdis3aK9QDI445+LIfrZJzj 1HLY0DWAmvbThGr/QTCcSPtSxNP5JQHBu3yMXad9zEv4lS4bmN7sJOoPZSoQy1kWJnlP0j ZV4xflO8h8UEduWf3zL6kY0aAs8Or4YAZ5g9WKUM8D+oSA/8odfL2o2v45QE+cNb80WSIM x5Co0JiyVX2L8CjfLz2yQZtiTArhz/8aFccbevf/KwfTSsv2/Y3uMzw7Qr0/xfT7QXlNFw eTOLit70B5DbnEfBv7qELgK/cBVlALfG1I9zFOSPnDitDTBeaD++WuSOHOYTDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779745609; a=rsa-sha256; cv=none; b=acq00NKfxqlkW3r+oQxvio4iOY202jaL+V3oFwtN/wou54r/pp3xI992fGjZRorhuURLBj CpXji5AGDmIbvRLppKPE47xCotZwLVCSVMA8sG8D3yuPgL+uMvdQ+3vrzz99Lio7ECtUW6 e45YW+QjqUI+TEmLFuRUhKzvuxgbQ7KwN85xBGDUxrLopLNsNFYWyddsWGCy+gtamtkru/ zv2U92U+JjOD0vbrIErxQ2pJ1xYE9q0NDot7QQi7QcbwfpOn5z8zb6/qm59UcbO3yn1OBN Km1L2pJ5uvuQp0AZgi5sGzdx1I14RgNZUZ3c4QNI5SwCSQG5wUPhUPW2TiFMdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779745609; 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; bh=TcWGyE4IAmGu8R4jyk+9kpIV+/IXSGLAN8O1T2uE9aA=; b=TF1q3KpjL8S+OEvnRP8TkeuM7p9mKwDSW1zD5yVQOmVsEgOrHiogGLYhFUnS8Xz/qQt01h OEcd5WT38BJ7jNyEwd/1G4vVrPmR3WuFEyIYTivO1cbPHtWL3k44eMltclN2Jc0y7NLcuv BwqysPNqQJPQ91I41UT2rAxEIUlaAiQ9DoFR9ZcvbptFQTL1iF2w2+LqvxJAAzNzB4H0OL 0DmCX4u0WKzxvqb6aHGp7bEtwR/wmKougXDmu8gPn0yJ76b7KcE+yQqJNlPr992Uy+I26n 55whMUDme6HKDugAJ7CgAnjsbMZpjvMZB/TJZv5ZJiCA55GjsH1P849kPHub4g== 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 4gPTx46qDVz10Dl for ; Mon, 25 May 2026 21:46:48 +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 64PLkmf1021472 for ; Mon, 25 May 2026 21:46:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 64PLkmu3021471 for bugs@FreeBSD.org; Mon, 25 May 2026 21:46:48 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: bugs@FreeBSD.org Subject: [Bug 295589] LLVM futures and _LIBCPP_REMOVE_TRANSITIVE_INCLUDES now: vs. buildworld Date: Mon, 25 May 2026 21:46:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295589 Bug ID: 295589 Summary: LLVM futures and _LIBCPP_REMOVE_TRANSITIVE_INCLUDES now: vs. buildworld Product: Base System Version: 16.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: marklmi26-fbsd@yahoo.com CC: jhb@FreeBSD.org [There is no "Component" to reference toolchain with and "standards" did not seem appropriate. So I guessed bin. I do not have control of Assignee directly. I picked 16.0-CURRENT because it progressed to being LLVM21 based.] https://discourse.llvm.org/t/rfc-remove-unused-transitive-includes-from-the= -libc-headers/90157/3 is about libc++ cleaning up its header pollution by removing unused transitive includes, with plans to make the issue non-optional in llvm24. For now, something like: CXXFLAGS.clang+=3D -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES avoids the libc++ transitive includes for the _LIBCPP_STD_VER targeted. In my quick tests, kernel-toolchain and build kernel built just fine. But buildworld did not get far and so seems to be working via header pollution in normal use, at least for libutil++ where it stopped (so I cc'd jhb@, not intending overall coverage): . . . Building static sysdecode library Building /usr/obj/BUILDs/main-ZNV4-nodbg-clang/usr/main-src/amd64.amd64/lib/libutil+= +/stringf.o /usr/main-src/lib/libutil++/stringf.cc:21:3: error: use of undeclared identifier 'errno' 21 | errno =3D ENOMEM; | ^~~~~ /usr/main-src/lib/libutil++/stringf.cc:21:11: error: use of undeclared identifier 'ENOMEM' 21 | errno =3D ENOMEM; | ^~~~~~ /usr/main-src/lib/libutil++/stringf.cc:24:3: error: use of undeclared identifier 'errno' 24 | errno =3D EFBIG; | ^~~~~ /usr/main-src/lib/libutil++/stringf.cc:24:11: error: use of undeclared identifier 'EFBIG' 24 | errno =3D EFBIG; | ^~~~~ 4 errors generated. *** Error code 1 Stop. make[5]: stopped making "all" in /usr/main-src/lib/libutil++ .ERROR_TARGET=3D'stringf.o' .ERROR_META_FILE=3D'/usr/obj/BUILDs/main-ZNV4-nodbg-clang/usr/main-src/amd6= 4.amd64/lib/libutil++/stringf.o.meta' .MAKE.LEVEL=3D'5' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes ve= rbose' _ERROR_CMD=3D'c++ -target x86_64-unknown-freebsd16.0 --sysroot=3D/usr/obj/BUILDs/main-ZNV4-nodbg-clang/usr/main-src/amd64.amd64/= tmp -B/usr/obj/BUILDs/main-ZNV4-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/bi= n=20 -O2 -pipe -fno-common -DNDEBUG -g -gz=3Dzlib -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-str= ings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wdate-= time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=3Dunused-but-set-parameter -Wno-error=3Dcast-function-type-misma= tch -Qunused-arguments -g -gz=3Dzlib -std=3Dgnu++17 -Wno-c++20-extensions -Wno-c++23-lambda-attributes -Wno-nullability-completeness=20 -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -c /usr/main-src/lib/libutil++/stringf.cc -o stringf.o;' . . . NOTE: The experiments are preliminary and used my personal build environment for my personal kernel and world builds. Nor was I attempting to fix anything, just getting an idea of the status for the issue. --=20 You are receiving this mail because: You are the assignee for the bug.=