Cannot compile LuaTeX on macOS / arm
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? Patrick
On Thu, Jul 7, 2022 at 9:55 AM Patrick Gundlach
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
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
iirc there is a texlive option; try --tlopt="--enable-arm-neon=check" to build.sh
I've got it to work with
--tlopt="--enable-arm-neon=yes"
I don't know if this has any drawbacks... This is the full build.sh call: ./build.sh --clang --luahb --lua53 --nojit --parallel --nostrip --tlopt="--enable-arm-neon=yes" Thank you! Patrick
participants (2)
-
luigi scarso
-
Patrick Gundlach