[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Apr 2022 11:27:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262977
Bug ID: 262977
Summary: Preprocessor error in sys/contrib/zlib/crc32.c on
arm64
Product: Base System
Version: CURRENT
Hardware: arm64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: jfc@mit.edu
On main (3256b7ca36e739a08f141a7ee52b9db9d995db85 and some earlier revisions)
my kernel does not compile on arm64 because of the error below. The macro W
(word size) is not defined.
cc -target aarch64-unknown-freebsd14.0
--sysroot=/usr/obj/usr/home/jfc/freebsd/src/arm64.aarch64/tmp
-B/usr/obj/usr/home/jfc/freebsd/src/arm64.aarch64/tmp/usr/bin -O2 -pipe
-fno-common -mcpu=cortex-a57 -fno-strict-aliasing -Werror -D_KERNEL
-DKLD_MODULE -DKLD_TIED -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/home/jfc/freebsd/src/arm64.aarch64/sys/STRIATUS/opt_global.h -I.
-I/usr/home/jfc/freebsd/src/sys
-I/usr/home/jfc/freebsd/src/sys/contrib/ck/include -fno-common -g
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC
-fdebug-prefix-map=./machine=/usr/home/jfc/freebsd/src/sys/arm64/include
-I/usr/obj/usr/home/jfc/freebsd/src/arm64.aarch64/sys/STRIATUS
-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0
-mstack-protector-guard-offset=0 -MD -MF.depend.crc32.o -MTcrc32.o
-mgeneral-regs-only -ffixed-x18 -ffreestanding -fwrapv -fstack-protector -Wall
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error=tautological-compare -Wno-error=empty-body
-Wno-error=parentheses-equality -Wno-error=unused-function
-Wno-error=pointer-sign -Wno-error=shift-negative-value
-Wno-address-of-packed-member -Wno-error=unused-but-set-variable
-Wno-format-zero-length -std=iso9899:1999 -c
/usr/home/jfc/freebsd/src/sys/contrib/zlib/crc32.c -o crc32.o
/usr/home/jfc/freebsd/src/sys/contrib/zlib/crc32.c:106:61: error: 'W' is not
defined, evaluates to 0 [-Werror,-Wundef]
#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) && W == 8
--
You are receiving this mail because:
You are the assignee for the bug.