From owner-svn-src-all@FreeBSD.ORG Tue Sep 17 20:45:06 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D80F2B3C; Tue, 17 Sep 2013 20:45:06 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5C1CA2228; Tue, 17 Sep 2013 20:45:06 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id CF5D825D3A6D; Tue, 17 Sep 2013 20:45:03 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id F3B10BF8D05; Tue, 17 Sep 2013 20:45:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id RPpDqnH9TNEp; Tue, 17 Sep 2013 20:45:01 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 39484BF8B4B; Tue, 17 Sep 2013 20:45:00 +0000 (UTC) Date: Tue, 17 Sep 2013 20:45:00 +0000 (UTC) From: "Bjoern A. Zeeb" To: John-Mark Gurney Subject: Re: svn commit: r255187 - in head/sys: conf crypto/aesni modules/aesni In-Reply-To: <20130917203307.GP68682@funkthat.com> Message-ID: References: <201309031831.r83IVNkh026523@svn.freebsd.org> <20130917203307.GP68682@funkthat.com> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 20:45:07 -0000 On Tue, 17 Sep 2013, John-Mark Gurney wrote: > Bjoern A. Zeeb wrote this message on Tue, Sep 17, 2013 at 19:26 +0000: >> On Tue, 3 Sep 2013, John-Mark Gurney wrote: >>> + * >>> + */ >>> + >>> +#include >>> + >> >> >> This pulls in a header from user space, in fact from clang, and if >> cross-building without building clang this header file is not >> available and a buildkernel is failing. >> >> (paths shortend) >> In file included from /sys/modules/aesni/../../crypto/aesni/aesni_wrap.c:40: >> /sys/modules/aesni/../../crypto/aesni/aesencdec.h:30:10: fatal error: >> 'wmmintrin.h' file not found >> #include ^ >> 1 error generated. >> --- aesni_wrap.o --- > > More details please... cross building on what to what? I will admit > I haven't tried to build from arm or other non-x86 platform to an > x86.. but I am pretty sure I tested cross building i386 on an amd64 > machine... > > Are you building w/ gcc? it isn't clear from your message... If you > are, is your toolchain more recent than the 3rd? > > Also, all I did was turn off -nostdinc, I didn't add any other paths, > which sounds like that the cross build environment isn't built > properly if it can't access userland headers... It should not access the base system headers, it needs the ones in obj/ but these are not there when building WITHOUT_CLANG= as that header file in my head checkout only exists in the clang source (contrib/llvm/tools/clang/lib/Headers/wmmintrin.h). The SVN revision is about r255569 or the following commit from Saturday. And yes I am also building without buildtools using XCC= XCPP= XCXX= using clang from the installed base system, which means the pollution from that early stage doesn't happen either -- more pieces seem to rely on this:( And this is building i386 on i386 just reducing the compile time by 7 orders of magnitude not building clang twice but zero times as I don't need it for the output install and the one installed in base is exactly the same I'd build again for bootstrap so avoiding this. I assume on an entirely clang-free system building with just gcc and never seen clang the results would be the same as the header file will never be available anywhere. -- Bjoern A. Zeeb ????????? ??? ??????? ??????: '??? ??? ???? ?????? ??????? ?? ?? ??????? ??????? ??? ????? ????? ???? ?????? ?? ????? ????', ????????? ?????????, "??? ????? ?? ?????", ?.???