From owner-freebsd-current@FreeBSD.ORG Tue Mar 18 22:01:42 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 6685B5FE; Tue, 18 Mar 2014 22:01:42 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 41B0D618; Tue, 18 Mar 2014 22:01:41 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s2IM1em1030133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Mar 2014 15:01:41 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s2IM1ebj030132; Tue, 18 Mar 2014 15:01:40 -0700 (PDT) (envelope-from jmg) Date: Tue, 18 Mar 2014 15:01:40 -0700 From: John-Mark Gurney To: Lev Serebryakov Subject: Re: Building with external toolchain was broken 6 months ago with r255187 Message-ID: <20140318220140.GA32089@funkthat.com> Mail-Followup-To: Lev Serebryakov , freebsd-current@FreeBSD.org References: <323697891.20140319013757@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <323697891.20140319013757@serebryakov.spb.ru> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 18 Mar 2014 15:01:41 -0700 (PDT) Cc: freebsd-current@FreeBSD.org 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: Tue, 18 Mar 2014 22:01:42 -0000 Lev Serebryakov wrote this message on Wed, Mar 19, 2014 at 01:37 +0400: > I did't build my NanoBSD images for almost year, and in this time our > not-finished and fragile support for using "external" toolchain is rotten, > due to r255187 (and, may meb, some other commits too). >=20 > I have very fresh -CURRENT (r263296) >=20 > I have these settings for my buildworld & buildkernel targets: >=20 > XCC=3D/usr/bin/cc > XCXX=3D/usr/bin/c++ > XCPP=3D/usr/bin/cpp > XAS=3D/usr/bin/as > XAR=3D/usr/bin/ar > XLD=3D/usr/bin/ld > XNM=3D/usr/bin/nm > XOBJDUMP=3D/usr/bin/objdump > XRANLIB=3D/usr/bin/ranlib > XSTRINGS=3D/usr/bin/strings > COMPILER_TYPE=3Dclang > WITHOUT_CROSS_COMPILER=3Dyes > WITHOUT_BINUTILS=3Dyes > WITHOUT_CLANG=3Dyes >=20 > It worked 7 months ago. Now it works for "buildworld" but not for > "buildkernel: >=20 > --- aeskeys_amd64.o --- > /usr/bin/cc --sysroot=3D/data/obj.nano/gateway.v2/data/src/tmp -B/data/ob= j.nano/gateway.v2/data/src/tmp/usr/bin -O2 -pipe -fno-strict-aliasing -Werr= or -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include= /data/obj.nano/gateway.v2/data/src/sys/D2500CC/opt_global.h -I. -I@ -I@/co= ntrib/altq -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-poin= ter -I/data/obj.nano/gateway.v2/data/src/sys/D2500CC -mno-aes -mno-avx -mc= model=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchron= ous-unwind-tables -ffreestanding -fstack-protector -std=3Diso9899:1999 -Qun= used-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-q= ual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty= -body -Wno-error-parentheses-equality -Wno-unused-function -c /data/src= /sys/modules/aesni/../../crypto/aesni/aeskeys_amd64.S > --- aesni_wrap.o --- > In file included from /data/src/sys/modules/aesni/../../crypto/aesni/aesn= i_wrap.c:40: > /data/src/sys/modules/aesni/../../crypto/aesni/aesencdec.h:30:10: fatal e= rror: 'wmmintrin.h' file not found > #include > ^ > 1 error generated. > *** [aesni_wrap.o] Error code 1 >=20 > It could not find header file with intrinsics from "system" ("external") > clang. I could disable building of this module with WITHOUT_MODULES=3Daes= ni, > and it works, but what if I need this module? >=20 > Could it be fixed, pleeeeeeease? Sounds like your tool chain doesn't have the necessary support for AES-NI... Are you using gcc as cc? If so, do you have the necessary tool chain work that I did in r255185 in your local tree? Can you compile this test program? ------ tsse.c start ---- #include __m128i foo; ------ tsse.c end ------ With the command: ${XCC} -c -maes tsse.c If you can't, then the problem is your toolchain, and you need to fix it... Try also w/: clang -c -maes tsse.c and it's also helpful to know more info, like: ${XCC} --version Thanks. --=20 John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."