From owner-freebsd-current@FreeBSD.ORG Thu Mar 20 17:30:17 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35944473 for ; Thu, 20 Mar 2014 17:30:17 +0000 (UTC) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D1063403 for ; Thu, 20 Mar 2014 17:30:16 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id ar20so1245976iec.30 for ; Thu, 20 Mar 2014 10:30:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=kiVSD1mJ7eds1ma0rBaHuZHwtuOA5DOAy9JL4I7vkqU=; b=fw/Af3ufjhmyb/r8Zs6qOOroRPn9f4CnhrQueqncxCT5KRnhgdf0myVgHwuc7KOj1a msnvoMLQ9ruJNr2utRb1yDTElqYxjUsBm2ml75/7ahfoe26vca4ZRuxt20Wel8FZam6G EUL0w9zDoGGkj3b/miS4ONwy6rZPKSHpQdroSN12URP3gXykzum1QR+PiMWHsi03FX9k fUQFFdFO9sG93n4a0P6KHT0tlCKxgyIO6eO/JvPrq4KWjjWGBAi+RYGsKOvjgbedos2o 5rH9lJHlCyr5S43Mmi4QmyoK1cn8NdPzrxe3ysNv1izhTLjdjEo/+lRQ35kF+VtfNKCt 2Jtg== X-Gm-Message-State: ALoCoQl3r2khYNg4i7YWfn9FvddGaaIuwRm4CUB6SVKYServHBMHEw2k2P+Qo3qf3FBKWdFXBKMi X-Received: by 10.50.153.49 with SMTP id vd17mr32395525igb.40.1395336610419; Thu, 20 Mar 2014 10:30:10 -0700 (PDT) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id sc8sm41026548igb.0.2014.03.20.10.30.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 10:30:09 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Building with external toolchain was broken 6 months ago with r255187 From: Warner Losh In-Reply-To: <491ECF6C-D868-4971-903E-5F380AB7E05B@FreeBSD.org> Date: Thu, 20 Mar 2014 11:30:08 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <323697891.20140319013757@serebryakov.spb.ru> <20140318220140.GA32089@funkthat.com> <7423EF12-9DD4-4C03-9FF6-7BAAB75820F6@lists.zabbadoz.net> <201403201008.48610.jhb@freebsd.org> <491ECF6C-D868-4971-903E-5F380AB7E05B@FreeBSD.org> To: David Chisnall X-Mailer: Apple Mail (2.1874) Cc: "Bjoern A. Zeeb" , John-Mark Gurney , freebsd-current@freebsd.org, Lev Serebryakov X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 17:30:17 -0000 On Mar 20, 2014, at 8:25 AM, David Chisnall = wrote: > On 20 Mar 2014, at 14:08, John Baldwin wrote: >=20 >> No, the compiler should provide a working "wmmintrin.h" header in one = of >> its built-in paths if it supports the AES instructions. This is akin = to >> saying that code that uses "stdio.h" should use -I/usr/src/include. >=20 > It does, however our build system then explicitly says to the compiler = 'don't use your built-it paths because they may contain declarations = that contradict the FreeBSD ones' by means of the sysroot argument. = When not using an external toolchain, we put the compiler's internal = headers inside the sysroot. Sounds like we=92re building the sysroot wrong then. Warner