From owner-freebsd-stable@freebsd.org Tue Mar 13 02:00:15 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D556AF9BD1 for ; Tue, 13 Mar 2018 02:00:15 +0000 (UTC) (envelope-from joseph@mulloy.me) Received: from mail.vps-vu-nj-1b.jdmulloy.com (mail.vps-vu-nj-1b.jdmulloy.com [IPv6:2001:19f0:5:6a3::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F6A080435 for ; Tue, 13 Mar 2018 02:00:15 +0000 (UTC) (envelope-from joseph@mulloy.me) Received: from mail.jdmulloy.net (pool-108-7-195-9.bstnma.fios.verizon.net [108.7.195.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mail.jdmulloy.net", Issuer "Mulloy SMTP Client Certificate Authority" (verified OK)) by mail.vps-vu-nj-1b.jdmulloy.com (Postfix) with ESMTPS id 31DB719B7F8 for ; Tue, 13 Mar 2018 02:00:14 +0000 (UTC) Received: from aluminium.jdmulloy.net (aluminium.jdmulloy.net [10.2.1.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.jdmulloy.net (Postfix) with ESMTPSA id A4FCC17F72 for ; Tue, 13 Mar 2018 02:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mulloy.me; s=2015-07; t=1520906413; i=@mulloy.me; bh=VESkpHXCOuMXNQTm17p3Pudj9dobHhYVDNrFgYfsTXY=; h=To:From:Subject:Date; b=dRVUpzq1jF3TjsScKXmX+aOIK2Efgz++k9Q8CjQqJEyxNMcPKabKGazGwJ0eYF77F pzXz+8YP93i/f1P85uwAKOLZ4mE//VynCfKdpcxmptOVfN6l2r6OE566Ut6baGcrW/ Jl7ffWyhzXSnDxsoLfImghevEuFqrz8Hasuo/ylbGJ1k/uQnNO4AaND3wE4lHX/ZbY BYbEPhpnqHtssohpqTZ+c43JUIeim8LxNQdmQpouRS2BYsUZqliuJi47DkflmO682x dizQ4au6UNXONYGJKi/gAn/DiuvPs5XDn61aE/VN4zFxv/1eBw82bM+O1Xgpcstcev rF0+8hLyQOnDg== To: freebsd-stable@freebsd.org From: Joseph Mulloy Subject: Re: Call for Testing: 11.1-RELEASE Meltdown/Spectre mitigation merge Message-ID: Date: Mon, 12 Mar 2018 22:00:13 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2018 02:00:15 -0000 Hi, I'm trying to test the Meltdown mitigation by applying the patch at https://people.freebsd.org/~emaste/patches/amd64_11.1_meltdown.3.patch and I'm getting a ton of error when I try to build the kernel with "make buildkernel". I've tried applying the patch against release/11.1.0 and releng/11.1 and they both fail with the same compiler errors. I tried running make clean and that doesn't fix it. I'm probably doing something wrong, I couldn't find any instructions on how to apply the patch, it took me a while to figure it out even with the man page. Perhaps there's some step in the process that I don't know about. I haven't been able to find any docs about doing this sort of thing. Thanks for any help you can provide. I would like to help with the testing. I'm applying the patch with the following command and it seems to apply just fine. patch < amd64_11.1_meltdown.3.patch This is the output of svn info root@server1:/usr/src # svnlite info Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/release/11.1.0 Relative URL: ^/release/11.1.0 Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 330824 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 321354 Last Changed Date: 2017-07-21 20:55:38 +0000 (Fri, 21 Jul 2017) Below are the compiler errors I'm getting. -------------------------------------------------------------- >>> stage 3.1: building everything -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; COMPILER_VERSION=40000 COMPILER_FEATURES=c++11 COMPILER_TYPE=clang COMPILER_FREEBSD_VERSION=1100504 MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/us r/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac CC="cc -target x86_64-unknown-freebsd11.1 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" CXX="c++ -targ et x86_64-unknown-freebsd11.1 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" CPP="cpp -target x86_64-unknown-freebsd11.1 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin" AS="as" AR="ar" LD="ld" NM=nm OBJDUMP=objdump OBJ COPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tm p/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make -m /usr/src/share/mk KERNEL=kernel all -DNO_MODULES_OBJ machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include cc -target x86_64-unknown-freebsd11.1 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_glob al.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.genassym.o -MTgenassym.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wre dundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tau tological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 /usr/src/sys/amd64/amd64/ genassym.c /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:38:21: note: expanded from macro 'ASSYM' char name ## sign[((value) < 0 ? 1 : 0) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:66: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:40:29: note: expanded from macro 'ASSYM' char name ## w1[((ASSYM_ABS(value) & 0xFFFF0000UL) >> 16) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:40:29: note: expanded from macro 'ASSYM' char name ## w1[((ASSYM_ABS(value) & 0xFFFF0000UL) >> 16) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:40:29: note: expanded from macro 'ASSYM' char name ## w1[((ASSYM_ABS(value) & 0xFFFF0000UL) >> 16) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:66: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:41:29: note: expanded from macro 'ASSYM' char name ## w2[((ASSYM_ABS(value) & 0xFFFF00000000ULL) >> 32) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:41:29: note: expanded from macro 'ASSYM' char name ## w2[((ASSYM_ABS(value) & 0xFFFF00000000ULL) >> 32) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:41:29: note: expanded from macro 'ASSYM' char name ## w2[((ASSYM_ABS(value) & 0xFFFF00000000ULL) >> 32) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:66: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:42:29: note: expanded from macro 'ASSYM' char name ## w3[((ASSYM_ABS(value) & 0xFFFF000000000000ULL) >> 48) + ASSYM_BIAS] ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:42:29: note: expanded from macro 'ASSYM' char name ## w3[((ASSYM_ABS(value) & 0xFFFF000000000000ULL) >> 48) + ASSYM_BIAS] ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:194:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:42:29: note: expanded from macro 'ASSYM' char name ## w3[((ASSYM_ABS(value) & 0xFFFF000000000000ULL) >> 48) + ASSYM_BIAS] ^~~~~ /usr/src/sys/sys/assym.h:35:66: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:38:21: note: expanded from macro 'ASSYM' char name ## sign[((value) < 0 ? 1 : 0) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:39:28: note: expanded from macro 'ASSYM' char name ## w0[(ASSYM_ABS(value) & 0xFFFFU) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:66: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:40:29: note: expanded from macro 'ASSYM' char name ## w1[((ASSYM_ABS(value) & 0xFFFF0000UL) >> 16) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:28: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ /usr/src/sys/amd64/amd64/genassym.c:195:16: error: offsetof of incomplete type 'struct pti_frame' ASSYM(PTI_RAX, offsetof(struct pti_frame, pti_rax)); ^ ~~~~~~ /usr/src/sys/sys/types.h:292:31: note: expanded from macro 'offsetof' #define offsetof(type, field) __offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/cdefs.h:492:34: note: expanded from macro '__offsetof' #define __offsetof(type, field) __builtin_offsetof(type, field) ^ ~~~~ /usr/src/sys/sys/assym.h:40:29: note: expanded from macro 'ASSYM' char name ## w1[((ASSYM_ABS(value) & 0xFFFF0000UL) >> 16) + ASSYM_BIAS]; \ ^~~~~ /usr/src/sys/sys/assym.h:35:44: note: expanded from macro 'ASSYM_ABS' #define ASSYM_ABS(value) ((value) < 0 ? -((value) + 1) + 1ULL : (value)) ^~~~~ /usr/src/sys/amd64/amd64/genassym.c:194:32: note: forward declaration of 'struct pti_frame' ASSYM(PTI_RDX, offsetof(struct pti_frame, pti_rdx)); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** Error code 1 Stop. make[2]: stopped in /usr/obj/usr/src/sys/GENERIC *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src