tectonic
tectonic copied to clipboard
failed building on Mac aarch64
While building with PKG_CONFIG_PATH=$(brew --prefix icu4c)/lib/pkgconfig cargo install --path . -F external-harfbuzz in cloned git repo,
has following error:
cargo:warning=In file included from layout/xetex-XeTeXFontInst.cpp:42:
cargo:warning=layout/tectonic_xetex_layout.h:42:10: fatal error: 'harfbuzz/hb.h' file not found
cargo:warning= 42 | #include <harfbuzz/hb.h>
cargo:warning= | ^~~~~~~~~~~~~~~
cargo:warning=1 error generated.
--- stderr
error occurred in cc-rs: command did not execute successfully (status code exit status: 1): env -u IPHONEOS_DEPLOYMENT_TARGET LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-macosx" "-mmacosx-version-min=15.4" "-I" "layout" "-I" "/Users/<user>/builds/tectonic/crates/bridge_core/support" "-I" "/opt/homebrew/Cellar/harfbuzz/11.1.0/include/harfbuzz" "-I" "/opt/homebrew/opt/freetype/include/freetype2" "-I" "/opt/homebrew/opt/libpng/include/libpng16" "-I" "/opt/homebrew/Cellar/glib/2.84.1/include/glib-2.0" "-I" "/opt/homebrew/Cellar/glib/2.84.1/lib/glib-2.0/include" "-I" "/opt/homebrew/opt/gettext/include" "-I" "/opt/homebrew/Cellar/pcre2/10.45/include" "-I" "/opt/homebrew/Cellar/graphite2/1.3.14/include" "-I" "/opt/homebrew/opt/freetype/include/freetype2" "-I" "/opt/homebrew/opt/libpng/include/libpng16" "-I" "/opt/homebrew/Cellar/graphite2/1.3.14/include" "-I" "/opt/homebrew/Cellar/icu4c@77/77.1/include" "-Wall" "-Wextra" "-Wall" "-std=c++17" "-Wall" "-Wdate-time" "-Wendif-labels" "-Wextra" "-Wformat=2" "-Wmissing-declarations" "-Wmissing-include-dirs" "-Wpointer-arith" "-Wredundant-decls" "-Wshadow" "-Wswitch-bool" "-Wundef" "-Wextra-semi" "-Wno-unused-parameter" "-Wno-implicit-fallthrough" "-fno-exceptions" "-fno-rtti" "-DXETEX_MAC=1" "-o" "/Users/<user>/builds/tectonic/target/release/build/tectonic_xetex_layout-6cf3422440bb1c93/out/54bde2384bf9f557-xetex-XeTeXFontInst.o" "-c" "layout/xetex-XeTeXFontInst.cpp"
When use ls -la /opt/homebrew/Cellar/harfbuzz/11.1.0/include/harfbuzz | grep hb.h does has a hb.h shows up.
System: MacOS aarch64 C/C++ tool chain: Macos original Rust: newest stable
If build without -F external-harfbuzz would works fine.
Wondering the correct way to build with feautures mentioned in the docs at git HEAD?