From owner-freebsd-bugs@freebsd.org Thu Oct 13 03:00:38 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ED66C0FE9D for ; Thu, 13 Oct 2016 03:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E539C93 for ; Thu, 13 Oct 2016 03:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9D30bep058059 for ; Thu, 13 Oct 2016 03:00:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 213428] make buildworld relies on /usr/include i.e. -nostdinc breaks buildworld Date: Thu, 13 Oct 2016 03:00:38 +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: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 03:00:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213428 --- Comment #4 from Mark Millard --- (In reply to frf from comment #3) As I understand buildworld does initially build some programs to execute on= the host under the original operating system version that is running on the host --to be executed during the build itself. The bootstrap clang itself is/can= -be an example (even if it is built to target a different TARGET_ARCH [cross build]). Thus I would not expect the # rm /usr/include/* example to work correctly in general. Avoiding /usr/include is specific to certain (most) stages of buildworld, but not to all of it as I understand. While most of what buildworld does targets the new operating system version= (if it changed) and the TARGET_ARCH, such is not the case for everything it doe= s. Notes: Your examples do not change the TARGET_ARCH. In some respects I'm referenci= ng structure that is there to allow other alternatives than you are using. The operating system version's of files can still apply to your case. Thanks for adding comment #3: I was very confused about the first part of comment #2 before the extra information. --=20 You are receiving this mail because: You are the assignee for the bug.=