[Dev-luatex] Cannot compile LuaTeX on macOS / arm

Patrick Gundlach patrick at gundla.ch
Thu Jul 7 10:14:45 CEST 2022


Hello Luigi,


> Is there anything I can do?
> 
> iirc there is a texlive option; try 
> --tlopt="--enable-arm-neon=check"
> to build.sh

unfortunately this gives me the following error:


/luatexdir/luafontloader/fontforge/inc -I../../../source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge    -MT luatexdir/luafontloader/fontforge/fontforge/libff_a-featurefile.o -MD -MP -MF luatexdir/luafontloader/fontforge/fontforge/.deps/libff_a-featurefile.Tpo -c -o luatexdir/luafontloader/fontforge/fontforge/libff_a-featurefile.o `test -f 'luatexdir/luafontloader/fontforge/fontforge/featurefile.c' || echo '../../../source/texk/web2c/'`luatexdir/luafontloader/fontforge/fontforge/featurefile.c
mv -f mplibdir/.deps/libmputil_a-decNumber.Tpo mplibdir/.deps/libmputil_a-decNumber.Po
../../../source/libs/libpng/libpng-src/arm/arm_init.c:49:4: error: "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
#  error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
   ^
../../../source/libs/libpng/libpng-src/arm/arm_init.c:86:27: error: implicit declaration of function 'png_have_neon' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
               no_neon = !png_have_neon(pp);
                          ^
2 errors generated.


My build command was:

./build.sh --clang --luahb --lua53 --nojit --parallel --nostrip --tlopt="--enable-arm-neon=check"


Patrick


More information about the dev-luatex mailing list