| Summary: | textproc/ugrep fails to build on arm64 fatal error: 'asm/hwcap.h' file not found | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | void |
| Component: | Individual Port(s) | Assignee: | Ashish SHUKLA <ashish> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | Flags: | bugzilla:
maintainer-feedback?
(ashish) |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | arm64 | ||
| OS: | Any | ||
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2289f421c1271a50ab006ba60ecf773f557bca93 commit 2289f421c1271a50ab006ba60ecf773f557bca93 Author: Ashish SHUKLA <ashish@FreeBSD.org> AuthorDate: 2024-01-24 12:36:00 +0000 Commit: Ashish SHUKLA <ashish@FreeBSD.org> CommitDate: 2024-01-24 12:36:00 +0000 textproc/ugrep: add a workaround for building on aarch64 platform PR: 276577 Reported by: void at f-m dot fm textproc/ugrep/Makefile | 1 + textproc/ugrep/files/patch-lzma_C_CpuArch.c (new) | 15 +++++++++++++++ 2 files changed, 16 insertions(+) Thanks for the report. I'll report it upstream later. |
Hello, context is very recent ports on main-n267684-e4b646ce1610 arm64 As far as I can ascertain, asm/hwcap.h is a linux header? # make MAKE_JOBS_UNSAFE=yes ===> Building for ugrep-4.5.2 gmake[2]: Entering directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2' gmake all-recursive gmake[3]: Entering directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2' Making all in lib gmake[4]: Entering directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2/lib' gmake[4]: Nothing to be done for 'all'. gmake[4]: Leaving directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2/lib' Making all in lzma/C gmake[4]: Entering directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2/lzma/C' cc -DHAVE_CONFIG_H -I. -I../.. -DZ7_PPMD_SUPPORT -DZ7_EXTRACT_ONLY -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I../lzma/C -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT libviiz_a-CpuArch.o -MD -MP -MF .deps/libviiz_a-CpuArch.Tpo -c -o libviiz_a-CpuArch.o `test -f 'CpuArch.c' || echo './'`CpuArch.c CpuArch.c:769:10: fatal error: 'asm/hwcap.h' file not found 769 | #include <asm/hwcap.h> | ^~~~~~~~~~~~~ 1 error generated. gmake[4]: *** [Makefile:621: libviiz_a-CpuArch.o] Error 1 gmake[4]: Leaving directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2/lzma/C' gmake[3]: *** [Makefile:561: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2' gmake[2]: *** [Makefile:398: all] Error 2 gmake[2]: Leaving directory '/usr/ports/textproc/ugrep/work/ugrep-4.5.2' *** Error code 1 Stop. make[1]: stopped in /usr/ports/textproc/ugrep *** Error code 1 Stop. make: stopped in /usr/ports/textproc/ugrep