[Bug 276577] textproc/ugrep fails to build on arm64 fatal error: 'asm/hwcap.h' file not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Jan 2024 02:56:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276577

            Bug ID: 276577
           Summary: textproc/ugrep fails to build on arm64 fatal error:
                    'asm/hwcap.h' file not found
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ashish@FreeBSD.org
          Reporter: void@f-m.fm
             Flags: maintainer-feedback?(ashish@FreeBSD.org)
          Assignee: ashish@FreeBSD.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.