On Thu, Jul 7, 2022 at 9:55 AM Patrick Gundlach <patrick@gundla.ch> wrote:
Hi all,

I try to compile LuaTeX (master branch) on macOS / m1 (arm):

./build.sh --clang --luahb --lua53 --nojit --parallel --nostrip

and after a while I get this error:

libtool: link: clang++ -Wall -Wunused -Wreturn-type -Wno-write-strings -o luahbtex luatexdir/luahbtex-luatex.o mplibdir/luahbtex-lmplib.o -Wl,-bind_at_load  libluahbtexspecific.a libluatex.a libff.a libluamisc.a libluasocket.a libluaffi.a libluaharfbuzz.a /Users/patrick/work/software/luaTeX/build-clang/libs/lua53/.libs/libtexlua53.a libmplibcore.a /Users/patrick/work/software/luaTeX/build-clang/libs/zziplib/libzzip.a /Users/patrick/work/software/luaTeX/build-clang/libs/libpng/libpng.a /Users/patrick/work/software/luaTeX/build-clang/libs/harfbuzz/libharfbuzz.a /Users/patrick/work/software/luaTeX/build-clang/libs/graphite2/libgraphite2.a /Users/patrick/work/software/luaTeX/build-clang/libs/pplib/libpplib.a /Users/patrick/work/software/luaTeX/build-clang/libs/zlib/libz.a lib/lib.a /Users/patrick/work/software/luaTeX/build-clang/texk/kpathsea/.libs/libkpathsea.a libmputil.a libunilib.a libmd5.a
Undefined symbols for architecture arm64:
  "_png_do_expand_palette_rgb8_neon", referenced from:
      _png_do_expand_palette in libpng.a(pngrtran.o)
  "_png_do_expand_palette_rgba8_neon", referenced from:
      _png_do_expand_palette in libpng.a(pngrtran.o)
  "_png_init_filter_functions_neon", referenced from:
      _png_init_filter_functions in libpng.a(pngrutil.o)
  "_png_riffle_palette_neon", referenced from:
      _png_do_read_transformations in libpng.a(pngrtran.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [luahbtex] Error 1


Is there anything I can do?

iirc there is a texlive option; try 
--tlopt="--enable-arm-neon=check"
to build.sh
--
luigi