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

luigi scarso luigi.scarso at gmail.com
Thu Jul 7 10:02:45 CEST 2022


On Thu, Jul 7, 2022 at 9:55 AM Patrick Gundlach <patrick at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20220707/05d0daaf/attachment.htm>


More information about the dev-luatex mailing list