From nobody Fri Apr 01 11:27:52 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1C35B19F188F for ; Fri, 1 Apr 2022 11:27:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KVHw86TgRz3r3l for ; Fri, 1 Apr 2022 11:27:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BABDF1386B for ; Fri, 1 Apr 2022 11:27:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 231BRq0m024734 for ; Fri, 1 Apr 2022 11:27:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 231BRqae024733 for bugs@FreeBSD.org; Fri, 1 Apr 2022 11:27:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262977] Preprocessor error in sys/contrib/zlib/crc32.c on arm64 Date: Fri, 01 Apr 2022 11:27:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648812472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aEjpv5jn2mOX6LX9yWaD4JgMcWULPMyULyRHf62TuSo=; b=QffpeX3QW7Vv+GtkTWiu8FQnoxL0DlrL5MbLJc1rKF8e/Z5F7NEzu3/IqgcjSU4Sg/wN6p PgrwyuY4CyEKqZJS0JZyScEgDWRrASIjQCd+5ByU76z8GXeIczybU2QyVCvMtkgQw9JaHR 6m4cZdRP4G7k+YVjg1rLaTjYbJvQ/4UjfjyP4VaS15llyxe7mNBEkPGR7i8Vfe04ZhxG+3 0esS/b3rPAdNSMShdM1hu9ScBo2nwk6Y4YWddo7tnYym1+I823DoLuzxT2NJyD0ZW0RCjx A4JQXxhNL98ZZRyY4qtBtpxRcbUC14jtK5kbSGl26rOw5b6Km+x76PlX0l1PHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648812472; a=rsa-sha256; cv=none; b=jWFs/tAGwt2OIIKggQ6JVfn0jLFiFDhFwnxdVXe7R/0m6EHZ//9BD9k5+AWMJXDww7X0/I 3AiNNWT9DARG6X2u1Ib4Hl2TVtBUdQzAOZtNBzlqK/i6xRjtBC7u950iHgSu23AvWFzkIT kE4InzmOvKuO9iRMkwE96+bSzFDndFNrxr7n5VjpiWlmlf7B3A5pLanqX+2prl4HeFempC HI5lNyc0d2G9eqzr4vytCuJuG9guanrFu3x6hf5P9ZNb4FgX9Z69WRF/HdV0NVroJfRs6M +FVZYUn93aqF3xh9F3HcG/BMjsQqQDmctLARuEn3MrOWhf6U7JR2n3L9uiw1YA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262977 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 revision= s) 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=3D/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=3Dcortex-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=3D./machine=3D/usr/home/jfc/freebsd/src/sys/arm64/include -I/usr/obj/usr/home/jfc/freebsd/src/arm64.aarch64/sys/STRIATUS=20=20 -mstack-protector-guard=3Dsysreg -mstack-protector-guard-reg=3Dsp_el0 -mstack-protector-guard-offset=3D0 -MD -MF.depend.crc32.o -MTcrc32.o -mgeneral-regs-only -ffixed-x18 -ffreestanding -fwrapv -fstack-protector -W= all -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value -Wno-address-of-packed-member -Wno-error=3Dunused-but-set-variable -Wno-format-zero-length -std=3Diso9899: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 =3D=3D 8 --=20 You are receiving this mail because: You are the assignee for the bug.=