Date: Wed, 19 Mar 2014 01:37:57 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: freebsd-current@freebsd.org, jmg@freebsd.org Subject: Building with external toolchain was broken 6 months ago with r255187 Message-ID: <323697891.20140319013757@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello, Freebsd-current. 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). I have very fresh -CURRENT (r263296) I have these settings for my buildworld & buildkernel targets: 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 It worked 7 months ago. Now it works for "buildworld" but not for "buildkernel: --- aeskeys_amd64.o --- /usr/bin/cc --sysroot=3D/data/obj.nano/gateway.v2/data/src/tmp -B/data/obj.= nano/gateway.v2/data/src/tmp/usr/bin -O2 -pipe -fno-strict-aliasing -Werror= -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@/cont= rib/altq -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointe= r -I/data/obj.nano/gateway.v2/data/src/sys/D2500CC -mno-aes -mno-avx -mcmo= del=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronou= s-unwind-tables -ffreestanding -fstack-protector -std=3Diso9899:1999 -Qunus= ed-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -W= strict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qua= l -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -f= diagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-b= ody -Wno-error-parentheses-equality -Wno-unused-function -c /data/src/s= ys/modules/aesni/../../crypto/aesni/aeskeys_amd64.S --- aesni_wrap.o --- In file included from /data/src/sys/modules/aesni/../../crypto/aesni/aesni_= wrap.c:40: /data/src/sys/modules/aesni/../../crypto/aesni/aesencdec.h:30:10: fatal err= or: 'wmmintrin.h' file not found #include <wmmintrin.h> ^ 1 error generated. *** [aesni_wrap.o] Error code 1 It could not find header file with intrinsics from "system" ("external") clang. I could disable building of this module with WITHOUT_MODULES=3Daesni, and it works, but what if I need this module? Could it be fixed, pleeeeeeease? --=20 // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?323697891.20140319013757>