On Mon, Apr 10, 2017 at 01:35:57PM +0200, Mark Kettenis wrote: > > Date: Mon, 10 Apr 2017 11:56:29 +0100 > > From: Stuart Henderson <s...@spacehopper.org> > > > > On 2017/04/09 23:56, Mark Kettenis wrote: > > > Ran into this when trying to build subversion with the default ulimit > > > -n of 128. > > > > btw, the quickest way to build subversion is like this: > > > > FLAVOR="no_bindings no_ap2 no_perl no_python no_ruby no_gnome-keyring" make > > > > Assuming this is on aarch64, at least FLAVOR=no_gnome-keyring is required > > for now (otherwise it pulls in graphics/png as a dependency, which fails > > due to missing arm_neon.h). > > Looking into arm_neon.h. This header file is supposed to be generated > using the clang_tablegen tool, which is why we missed it.
Index: Makefile =================================================================== RCS file: /cvs/src/gnu/usr.bin/clang/include/clang/intrin/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 24 Jan 2017 08:44:47 -0000 1.6 +++ Makefile 10 Apr 2017 11:39:51 -0000 @@ -4,6 +4,8 @@ LLVM_V= 4.0.0 CLANG_INTR_INCDIR= /usr/lib/clang/${LLVM_V}/include +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include .PATH: ${.CURDIR}/../../../../../llvm/tools/clang/lib/Headers @@ -16,7 +18,8 @@ HEADERS= stdalign.h \ module.modulemap \ .if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "arm" -HEADERS+= arm_acle.h +HEADERS+= arm_acle.h \ + arm_neon.h .elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" HEADERS+= adxintrin.h \ ammintrin.h \ @@ -73,6 +76,10 @@ HEADERS+= altivec.h \ .endif all: ${HEADERS} + +arm_neon.h: ${CLANG_INC}/clang/Basic/arm_neon.td + ${TBLGEN} -I${CLANG_INC} -gen-arm-neon \ + -o ${.TARGET} ${.ALLSRC} depend: # Nothing here so far ...