Date: Mon, 11 Mar 2024 18:33:22 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277636] archivers/unrar build error on arm64 with hardware CRC or AES Message-ID: <bug-277636-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277636 Bug ID: 277636 Summary: archivers/unrar build error on arm64 with hardware CRC or AES Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: jfc@mit.edu Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org Make /etc/make.conf has CPUTYPE?=3Dcortex-a57 This causes a build error in archivers/unrar: =3D=3D=3D> Building for unrar-7.00,6 c++ -DOPENSSL_AES -I/usr/include -O2 -pipe -mcpu=3Dcortex-a57 -fstack-protector-strong -fno-strict-aliasing -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rar.cpp In file included from rar.cpp:1: In file included from ./rar.hpp:6: ./os.hpp:158:10: fatal error: 'asm/hwcap.h' file not found 158 | #include <asm/hwcap.h> | ^~~~~~~~~~~~~ 1 error generated. *** Error code 1 My CPU setting enables the __ARM_FEATURE macros tested in this part of os.h= pp added in unrar7. #if defined(__aarch64__) && (defined(__ARM_FEATURE_CRYPTO) || defined(__ARM_FEATURE_CRC32)) #include <arm_neon.h> #ifndef _APPLE #include <sys/auxv.h> #include <asm/hwcap.h> #endif #ifdef __ARM_FEATURE_CRYPTO #define USE_NEON_AES #endif #ifdef __ARM_FEATURE_CRC32 #define USE_NEON_CRC32 #endif #endif The header file assumes the 64 bit world consists entirely of Apple and Lin= ux. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277636-7788>