Build Issue
I was building on MacOS. But got the error like:
Compiling humansize v2.1.3
Compiling pest_derive v2.7.15
Compiling unic-segment v0.9.0
error: failed to run custom build command for `tectonic_bridge_harfbuzz v0.2.9 (/Users/x/Work/texpresso/tectonic/crates/bridge_harfbuzz)`
Caused by:
process didn't exit successfully: `/Users/x/Work/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-3624665de4aef103/build-script-build` (exit status: 101)
--- stdout
OUT_DIR = Some(/Users/x/Work/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-e02a2b3f4efc8aa0/out)
OPT_LEVEL = Some(3)
TARGET = Some(aarch64-apple-darwin)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
CXX_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
CXX_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CXX
HOST_CXX = None
cargo:rerun-if-env-changed=CXX
CXX = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
CARGO_ENCODED_RUSTFLAGS = Some()
cargo:rerun-if-env-changed=AR_aarch64-apple-darwin
AR_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=AR_aarch64_apple_darwin
AR_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin
ARFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin
ARFLAGS_aarch64-apple-darwin = None
cargo:rustc-link-lib=static=harfbuzz
cargo:rustc-link-search=native=/Users/x/Work/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-e02a2b3f4efc8aa0/out
cargo:rerun-if-env-changed=CXXSTDLIB_aarch64-apple-darwin
CXXSTDLIB_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CXXSTDLIB_aarch64_apple_darwin
CXXSTDLIB_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CXXSTDLIB
HOST_CXXSTDLIB = None
cargo:rerun-if-env-changed=CXXSTDLIB
CXXSTDLIB = None
cargo:rustc-link-lib=c++
cargo:include-path=/Users/x/Work/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-e02a2b3f4efc8aa0/out;/opt/homebrew/Cellar/graphite2/1.3.14/include
--- stderr
thread 'main' panicked at crates/bridge_harfbuzz/build.rs:143:47:
failed to copy header: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I was able to get around this by using the same CARGO_BUILD_FLAGS in Makefile.tectonic as for Linux, i.e., either removing the conditional or setting line 3 to CARGO_BUILD_FLAGS ?= --release --features external-harfbuzz.
Maybe something changed? I see originally this was added in https://github.com/let-def/texpresso/commit/0b6ff9b02217579362b4896eff8050e8612062d7.
I set CARGO_BUILD_FLAGS ?= --release --features external-harfbuzz. But now it said another error:
> make texpresso-tonic
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.tectonic tectonic
cd tectonic && PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c@76/lib/pkgconfig cargo build --release --features external-harfbuzz
warning: [email protected]: pdf_io/dpx-cidtype2.c:477:14: warning: variable 'num_glyphs' set but not used [-Wunused-but-set-variable]
warning: [email protected]: USHORT num_glyphs;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-cidtype2.c:818:21: warning: variable 'gid' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
warning: [email protected]: if (code < 0) {
warning: [email protected]: ^~~~~~~~
warning: [email protected]: pdf_io/dpx-cidtype2.c:839:17: note: uninitialized use occurs here
warning: [email protected]: if (gid == 0) {
warning: [email protected]: ^~~
warning: [email protected]: pdf_io/dpx-cidtype2.c:818:17: note: remove the 'if' if its condition is always false
warning: [email protected]: if (code < 0) {
warning: [email protected]: ^~~~~~~~~~~~~~~
warning: [email protected]: pdf_io/dpx-cidtype2.c:794:25: note: initialize the variable 'gid' to silence this warning
warning: [email protected]: uint16_t gid;
warning: [email protected]: ^
warning: [email protected]: = 0
warning: [email protected]: 2 warnings generated.
warning: [email protected]: pdf_io/dpx-spc_misc.c:363:18: warning: no previous extern declaration for non-static variable 'fontattrs' [-Wmissing-variable-declarations]
warning: [email protected]: struct fontattr *fontattrs = NULL;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-spc_misc.c:363:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit
warning: [email protected]: struct fontattr *fontattrs = NULL;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-spc_misc.c:364:5: warning: no previous extern declaration for non-static variable 'num_fontattrs' [-Wmissing-variable-declarations]
warning: [email protected]: int num_fontattrs = 0;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-spc_misc.c:364:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit
warning: [email protected]: int num_fontattrs = 0;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-spc_misc.c:365:5: warning: no previous extern declaration for non-static variable 'max_fontattrs' [-Wmissing-variable-declarations]
warning: [email protected]: int max_fontattrs = 0;
warning: [email protected]: ^
warning: [email protected]: pdf_io/dpx-spc_misc.c:365:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit
warning: [email protected]: int max_fontattrs = 0;
warning: [email protected]: ^
warning: [email protected]: 3 warnings generated.
warning: [email protected]: pdf_io/dpx-spc_util.c:1188:8: warning: missing field 'color' initializer [-Wmissing-field-initializers]
warning: [email protected]: {NULL}
warning: [email protected]: ^
warning: [email protected]: 1 warning generated.
warning: [email protected]: pdf_io/dpx-specials.c:615:8: warning: missing field 'bodhk_func' initializer [-Wmissing-field-initializers]
warning: [email protected]: {NULL} /* end */
warning: [email protected]: ^
warning: [email protected]: 1 warning generated.
warning: [email protected]: pdf_io/dpx-tt_gsub.c:1935:11: warning: variable 'count' set but not used [-Wunused-but-set-variable]
warning: [email protected]: int32_t count = 0;
warning: [email protected]: ^
warning: [email protected]: 1 warning generated.
Compiling tectonic_xetex_layout v0.2.4 (/Users/wenyuan/Work/texpresso/tectonic/crates/xetex_layout)
warning: unexpected `cfg` condition value: `profile`
--> crates/engine_xetex/build.rs:28:46
|
28 | const PROFILE_BUILD_ENABLED: bool = cfg!(feature = "profile");
| ^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `external-harfbuzz`
= help: consider adding `profile` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: `tectonic_engine_xetex` (build script) generated 1 warning
Compiling tectonic_engine_xdvipdfmx v0.4.1 (/Users/wenyuan/Work/texpresso/tectonic/crates/engine_xdvipdfmx)
Compiling tectonic_pdf_io v0.4.1 (/Users/wenyuan/Work/texpresso/tectonic/crates/pdf_io)
The following warnings were emitted during compilation:
warning: [email protected]: In file included from layout/xetex-XeTeXFontInst.cpp:42:
warning: [email protected]: layout/tectonic_xetex_layout.h:42:10: fatal error: 'harfbuzz/hb.h' file not found
warning: [email protected]: #include <harfbuzz/hb.h>
warning: [email protected]: ^~~~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
error: failed to run custom build command for `tectonic_xetex_layout v0.2.4 (/Users/wenyuan/Work/texpresso/tectonic/crates/xetex_layout)`
Caused by:
process didn't exit successfully: `/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-42175df1e4b87208/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=TECTONIC_DEP_BACKEND
cargo:rerun-if-env-changed=TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC
cargo:rerun-if-changed=layout/xetex-XeTeXFontInst.cpp
cargo:rerun-if-changed=layout/xetex-XeTeXFontMgr.cpp
cargo:rerun-if-changed=layout/xetex-XeTeXLayoutInterface.cpp
cargo:rerun-if-changed=layout/xetex-XeTeXFontInst_Mac.cpp
cargo:rerun-if-changed=layout/xetex-XeTeXFontMgr_Mac.mm
cargo:rustc-link-lib=framework=Foundation
cargo:rustc-link-lib=framework=CoreFoundation
cargo:rustc-link-lib=framework=CoreGraphics
cargo:rustc-link-lib=framework=CoreText
cargo:rustc-link-lib=framework=AppKit
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
OPT_LEVEL = Some(3)
TARGET = Some(aarch64-apple-darwin)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
CXX_aarch64-apple-darwin = None
cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
CXX_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=HOST_CXX
HOST_CXX = None
cargo:rerun-if-env-changed=CXX
CXX = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
CARGO_ENCODED_RUSTFLAGS = Some()
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
OUT_DIR = Some(/Users/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out)
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
TARGET = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
CXXFLAGS_aarch64_apple_darwin = None
cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
CXXFLAGS_aarch64-apple-darwin = None
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=#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=14.4" "-I" "layout" "-I" "/Users/wenyuan/Work/texpresso/tectonic/crates/bridge_core/support" "-I" "/opt/homebrew/Cellar/harfbuzz/10.1.0/include/harfbuzz" "-I" "/opt/homebrew/opt/freetype/include/freetype2" "-I" "/opt/homebrew/opt/libpng/include/libpng16" "-I" "/opt/homebrew/Cellar/glib/2.82.4/include/glib-2.0" "-I" "/opt/homebrew/Cellar/glib/2.82.4/lib/glib-2.0/include" "-I" "/opt/homebrew/opt/gettext/include" "-I" "/opt/homebrew/Cellar/pcre2/10.44/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@76/76.1_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/wenyuan/Work/texpresso/tectonic/target/release/build/tectonic_xetex_layout-94c8682e15797403/out/54bde2384bf9f557-xetex-XeTeXFontInst.o" "-c" "layout/xetex-XeTeXFontInst.cpp"
make[1]: *** [tectonic] Error 101
make: *** [texpresso-tonic] Error 2
Confirmed the same error. @Anemone95 solved?
For my MacOSX environment (13.7.4 (22H420)), my workaround was first for tectonic_bridge_harfbuzz error, as @andrewcchu suggested, built as for Linux:
I was able to get around this by using the same
CARGO_BUILD_FLAGSinMakefile.tectonicas for Linux, i.e., either removing the conditional or setting line 3 toCARGO_BUILD_FLAGS ?= --release --features external-harfbuzz.
and second, appended C_INCLUDE_PATH and LIBRARY_PATH to TECTONIC_ENV of Makefile.config to the same path that PKG_CONFIG_PATH referred to, i.e., (in my case)
...
TECTONIC_ENV=PKG_CONFIG_PATH=/usr/local/opt/icu4c@77/lib/pkgconfig C_INCLUDE_PATH=/usr/local/opt/icu4c@77/include LIBRARY_PATH=/usr/local/opt/icu4c@77/lib
/usr/local/opt/icu4c@77 was actually what my brew --prefix icu4c printed.
The workaround I came up with was from the detail error message saying that the icu4u include parent path was /usr/local/Cellar/icu4c@77/77.1/ which was different from the default PKG_CONFIG_PATH (brew --prefix icu4c).
For anyone encountering the same error, you can try to follow the similar workaround to see if works.
thanks, another stupid question I guess, vscode keep giving me error: TeXpresso command '/Users/hanchaozhang/bin/texpresso/build/texpresso' does not exist or is not executable. Please check the 'texpresso.command' setting.
I downloaded and make texpresso in this folder, would you like to kindly guide me what did I wrong please
thanks, another stupid question I guess, vscode keep giving me error: TeXpresso command '/Users/hanchaozhang/bin/texpresso/build/texpresso' does not exist or is not executable. Please check the 'texpresso.command' setting.
I downloaded and make texpresso in this folder, would you like to kindly guide me what did I wrong please
You use VSCode extension of TeXpresso?
thanks, another stupid question I guess, vscode keep giving me error: TeXpresso command '/Users/hanchaozhang/bin/texpresso/build/texpresso' does not exist or is not executable. Please check the 'texpresso.command' setting. I downloaded and make texpresso in this folder, would you like to kindly guide me what did I wrong please
You use VSCode extension of TeXpresso?
Yes i use VOCode extension of texpresso
thanks, another stupid question I guess, vscode keep giving me error: TeXpresso command '/Users/hanchaozhang/bin/texpresso/build/texpresso' does not exist or is not executable. Please check the 'texpresso.command' setting. I downloaded and make texpresso in this folder, would you like to kindly guide me what did I wrong please
You use VSCode extension of TeXpresso?
Yes i use VOCode extension of texpresso
If you use WSL2, then this thread may solve your problem.
thanks, another stupid question I guess, vscode keep giving me error: TeXpresso command '/Users/hanchaozhang/bin/texpresso/build/texpresso' does not exist or is not executable. Please check the 'texpresso.command' setting. I downloaded and make texpresso in this folder, would you like to kindly guide me what did I wrong please
You use VSCode extension of TeXpresso?
Yes i use VOCode extension of texpresso
If you use WSL2, then this thread may solve your problem.
thanks for pointing me to this thread, I am using mac so i guess I do not need WSL2, however, I still not able to link the directory to vscode extension
@Hanchao-Zhang Have you been able to run build/texpresso test/simple.tex?
build/texpresso test/simple.tex
build/texpresso test/simple.tex [info] working directory: /Users/hanchaozhang/bin/texpresso [info] executable path: /Users/hanchaozhang/bin/texpresso/build/texpresso [info] document path: /Users/hanchaozhang/bin/texpresso/test [info] document name: simple.tex texpresso logo: 512x512 [info] tectonic path: texpresso-tonic [dvi] loading pdftex.map bundle_serve_hooks_cat: cannot read answer [dvi] loading kanjix.map ➜ texpresso git:(main)
i got this one but nothing shows up
build/texpresso test/simple.tex
build/texpresso test/simple.tex [info] working directory: /Users/hanchaozhang/bin/texpresso [info] executable path: /Users/hanchaozhang/bin/texpresso/build/texpresso [info] document path: /Users/hanchaozhang/bin/texpresso/test [info] document name: simple.tex texpresso logo: 512x512 [info] tectonic path: texpresso-tonic [dvi] loading pdftex.map bundle_serve_hooks_cat: cannot read answer [dvi] loading kanjix.map ➜ texpresso git:(main)
i got this one but nothing shows up
So the problem is due to TeXpresso and not the VSCode extension...
build/texpresso test/simple.tex
build/texpresso test/simple.tex [info] working directory: /Users/hanchaozhang/bin/texpresso [info] executable path: /Users/hanchaozhang/bin/texpresso/build/texpresso [info] document path: /Users/hanchaozhang/bin/texpresso/test [info] document name: simple.tex texpresso logo: 512x512 [info] tectonic path: texpresso-tonic [dvi] loading pdftex.map bundle_serve_hooks_cat: cannot read answer [dvi] loading kanjix.map ➜ texpresso git:(main) i got this one but nothing shows up
So the problem is due to TeXpresso and not the VSCode extension...
Ahhh do you have any idea on what's wrong with it~
@Hanchao-Zhang Unfortunately, idk. TeXpresso at this stage is not very stable.
@Hanchao-Zhang Unfortunately, idk. TeXpresso at this stage is not very stable.
I see thank you so much for your help
For my MacOSX environment (13.7.4 (22H420)), my workaround was first for
tectonic_bridge_harfbuzzerror, as @andrewcchu suggested, built as for Linux:I was able to get around this by using the same
CARGO_BUILD_FLAGSinMakefile.tectonicas for Linux, i.e., either removing the conditional or setting line 3 toCARGO_BUILD_FLAGS ?= --release --features external-harfbuzz.and second, appended
C_INCLUDE_PATHandLIBRARY_PATHtoTECTONIC_ENVofMakefile.configto the same path thatPKG_CONFIG_PATHreferred to, i.e., (in my case)... TECTONIC_ENV=PKG_CONFIG_PATH=/usr/local/opt/icu4c@77/lib/pkgconfig C_INCLUDE_PATH=/usr/local/opt/icu4c@77/include LIBRARY_PATH=/usr/local/opt/icu4c@77/lib
/usr/local/opt/icu4c@77was actually what mybrew --prefix icu4cprinted.The workaround I came up with was from the detail error message saying that the icu4u include parent path was
/usr/local/Cellar/icu4c@77/77.1/which was different from the defaultPKG_CONFIG_PATH(brew --prefix icu4c).For anyone encountering the same error, you can try to follow the similar workaround to see if works.
Can confirm that modifying the paths to match the output of brew --prefix icu4c fixed it for me, on macOS Sequoia 15.3.2
For my MacOSX environment (13.7.4 (22H420)), my workaround was first for
tectonic_bridge_harfbuzzerror, as @andrewcchu suggested, built as for Linux:I was able to get around this by using the same
CARGO_BUILD_FLAGSinMakefile.tectonicas for Linux, i.e., either removing the conditional or setting line 3 toCARGO_BUILD_FLAGS ?= --release --features external-harfbuzz.and second, appended
C_INCLUDE_PATHandLIBRARY_PATHtoTECTONIC_ENVofMakefile.configto the same path thatPKG_CONFIG_PATHreferred to, i.e., (in my case)... TECTONIC_ENV=PKG_CONFIG_PATH=/usr/local/opt/icu4c@77/lib/pkgconfig C_INCLUDE_PATH=/usr/local/opt/icu4c@77/include LIBRARY_PATH=/usr/local/opt/icu4c@77/lib
/usr/local/opt/icu4c@77was actually what mybrew --prefix icu4cprinted. The workaround I came up with was from the detail error message saying that the icu4u include parent path was/usr/local/Cellar/icu4c@77/77.1/which was different from the defaultPKG_CONFIG_PATH(brew --prefix icu4c). For anyone encountering the same error, you can try to follow the similar workaround to see if works.Can confirm that modifying the paths to match the output of
brew --prefix icu4cfixed it for me, on macOS Sequoia 15.3.2
After changing CARGO_BUILD_FLAGS and the makefile.config it's fixed but there is now a new error message like @Anemone95 said above what did you do to make it work, can you please help I am on same macos version.
New error message:
make texpresso-tonic
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.tectonic tectonic cd tectonic && PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c@77/lib/pkgconfig C_INCLUDE_PATH=/opt/homebrew/opt/icu4c@77/include LIBRARY_PATH=/opt/homebrew/opt/icu4c@77/lib cargo build --release --features external-harfbuzz warning: [email protected]: pdf_io/dpx-cidtype2.c:477:14: warning: variable 'num_glyphs' set but not used [-Wunused-but-set-variable] warning: [email protected]: 477 | USHORT num_glyphs; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-cidtype2.c:818:21: warning: variable 'gid' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] warning: [email protected]: 818 | if (code < 0) { warning: [email protected]: | ^~~~~~~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:839:17: note: uninitialized use occurs here warning: [email protected]: 839 | if (gid == 0) { warning: [email protected]: | ^~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:818:17: note: remove the 'if' if its condition is always false warning: [email protected]: 818 | if (code < 0) { warning: [email protected]: | ^~~~~~~~~~~~~~~ warning: [email protected]: 819 | dpx_warning("Unable to map CID to code: CID=%u", cid); warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: [email protected]: 820 | } else { warning: [email protected]: | ~~~~~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:794:25: note: initialize the variable 'gid' to silence this warning warning: [email protected]: 794 | uint16_t gid; warning: [email protected]: | ^ warning: [email protected]: | = 0 warning: [email protected]: 2 warnings generated. warning: [email protected]: pdf_io/dpx-spc_misc.c:363:18: warning: no previous extern declaration for non-static variable 'fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 363 | struct fontattr *fontattrs = NULL; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:363:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 363 | struct fontattr fontattrs = NULL; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:364:5: warning: no previous extern declaration for non-static variable 'num_fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 364 | int num_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:364:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 364 | int num_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:365:5: warning: no previous extern declaration for non-static variable 'max_fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 365 | int max_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:365:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 365 | int max_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: 3 warnings generated. warning: [email protected]: pdf_io/dpx-spc_util.c:1188:8: warning: missing field 'color' initializer [-Wmissing-field-initializers] warning: [email protected]: 1188 | {NULL} warning: [email protected]: | ^ warning: [email protected]: 1 warning generated. warning: [email protected]: pdf_io/dpx-specials.c:615:8: warning: missing field 'bodhk_func' initializer [-Wmissing-field-initializers] warning: [email protected]: 615 | {NULL} / end */ warning: [email protected]: | ^ warning: [email protected]: 1 warning generated. warning: [email protected]: pdf_io/dpx-tt_gsub.c:1935:11: warning: variable 'count' set but not used [-Wunused-but-set-variable] warning: [email protected]: 1935 | int32_t count = 0; warning: [email protected]: | ^ warning: [email protected]: 1 warning generated. Compiling tectonic_xetex_layout v0.2.4 (/Users/david/texpresso/tectonic/crates/xetex_layout) warning: unexpected
cfgcondition value:profile--> crates/engine_xetex/build.rs:28:46 | 28 | const PROFILE_BUILD_ENABLED: bool = cfg!(feature = "profile"); | ^^^^^^^^^^^^^^^^^^^ | = note: expected values forfeatureare:external-harfbuzz= help: consider addingprofileas a feature inCargo.toml= note: see https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html for more information about checking conditional configuration = note:#[warn(unexpected_cfgs)]on by default
warning:
tectonic_engine_xetex(build script) generated 1 warning warning: a method with this name may be added to the standard library in the future --> crates/bundles/src/cache.rs:376:39 | 376 | if let Err(e) = mfile.lock_shared() { | ^^^^^^^^^^^ | = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! = note: for more information, see issue #48919 https://github.com/rust-lang/rust/issues/48919 = help: call with fully qualified syntaxlock_shared(...)to keep using the current method = note:#[warn(unstable_name_collisions)]on by default
warning:
tectonic_bundles(lib) generated 1 warning warning: [email protected]: In file included from layout/xetex-XeTeXFontInst.cpp:42: warning: [email protected]: layout/tectonic_xetex_layout.h:42:10: fatal error: 'harfbuzz/hb.h' file not found warning: [email protected]: 42 | #include <harfbuzz/hb.h> warning: [email protected]: | ^~~~~~~~~~~~~~~ warning: [email protected]: 1 error generated. error: failed to run custom build command fortectonic_xetex_layout v0.2.4 (/Users/david/texpresso/tectonic/crates/xetex_layout)
Caused by: process didn't exit successfully:
/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-44bef855eae76a20/build-script-build(exit status: 1) --- stdout cargo:rerun-if-env-changed=TECTONIC_DEP_BACKEND cargo:rerun-if-env-changed=TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC cargo:rerun-if-changed=layout/xetex-XeTeXFontInst.cpp cargo:rerun-if-changed=layout/xetex-XeTeXFontMgr.cpp cargo:rerun-if-changed=layout/xetex-XeTeXLayoutInterface.cpp cargo:rerun-if-changed=layout/xetex-XeTeXFontInst_Mac.cpp cargo:rerun-if-changed=layout/xetex-XeTeXFontMgr_Mac.mm cargo:rustc-link-lib=framework=Foundation cargo:rustc-link-lib=framework=CoreFoundation cargo:rustc-link-lib=framework=CoreGraphics cargo:rustc-link-lib=framework=CoreText cargo:rustc-link-lib=framework=AppKit OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) OPT_LEVEL = Some(3) TARGET = Some(aarch64-apple-darwin) HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin CXX_aarch64-apple-darwin = None cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin CXX_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXX HOST_CXX = None cargo:rerun-if-env-changed=CXX CXX = Some(clang++) cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM CC_KNOWN_WRAPPER_CUSTOM = None RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(false) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None CARGO_ENCODED_RUSTFLAGS = Some() OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None OUT_DIR = Some(/Users/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out) cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None TARGET = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None HOST = Some(aarch64-apple-darwin) cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin CXXFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin CXXFLAGS_aarch64-apple-darwin = None 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" "clang++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-macosx" "-mmacosx-version-min=15.2" "-I" "layout" "-I" "/Users/david/texpresso/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/david/texpresso/tectonic/target/release/build/tectonic_xetex_layout-83f65307aba5f821/out/54bde2384bf9f557-xetex-XeTeXFontInst.o" "-c" "layout/xetex-XeTeXFontInst.cpp"
make[1]: *** [tectonic] Error 101 make: *** [texpresso-tonic] Error 2
@Anemone95 update? did you solve it?
warning: [email protected]: In file included from layout/xetex-XeTeXFontInst.cpp:42: warning: [email protected]: layout/tectonic_xetex_layout.h:42:10: fatal error: 'harfbuzz/hb.h' file not found warning: [email protected]: 42 | #include <harfbuzz/hb.h> warning: [email protected]: | ^~~~~~~~~~~~~~~ warning: [email protected]: 1 error generated.
@codeBOAY Seems to result from harfbuzz/hb.h, can you locate this file?
warning: [email protected]: In file included from layout/xetex-XeTeXFontInst.cpp:42: warning: [email protected]: layout/tectonic_xetex_layout.h:42:10: fatal error: 'harfbuzz/hb.h' file not found warning: [email protected]: 42 | #include <harfbuzz/hb.h> warning: [email protected]: | ^~~~~~~~~~~~~~~ warning: [email protected]: 1 error generated.
@codeBOAY Seems to result from
harfbuzz/hb.h, can you locate this file?
➜ ~ ls $(brew --prefix harfbuzz)/include/harfbuzz/hb.h /opt/homebrew/opt/harfbuzz/include/harfbuzz/hb.h ➜ ~
@Hanchao-Zhang From the conversation history you have successfully built, your last problem was usage in VSCode. According to your comments, can you try setting texpresso.command to the path of texpresso you built and see if work? Didn't use it with vscode myself but with the logs in your comments, that maybe work (I guess your texpresso was not in your PATH?)
@Anemone95 update? did you solve it?
Sorry, I haven't found time to check this recent month. And since there is another font issue in tectonichttps://github.com/tectonic-typesetting/tectonic/issues/1265#issuecomment-2746128666, which means even if I solved this, I still can't switch from the classical compiler to this fancy one. I prefer to wait until that problem is solved and then return to this one.
@Hanchao-Zhang From the conversation history you have successfully built, your last problem was usage in VSCode. According to your comments, can you try setting
texpresso.commandto the path of texpresso you built and see if work? Didn't use it with vscode myself but with the logs in your comments, that maybe work (I guess yourtexpressowas not in your PATH?)
when i try make texpresso-tonic i have error: --- stderr
thread 'main' panicked at crates/bridge_harfbuzz/build.rs:143:47:
failed to copy header: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
make[1]: *** [tectonic] Error 101
make: *** [texpresso-tonic] Error 2
when i try build/texpresso test/simple.tex , i have: [info] working directory: /Users/hanchaozhang/bin/texpresso [info] executable path: /Users/hanchaozhang/bin/texpresso/build/texpresso [info] document path: /Users/hanchaozhang/bin/texpresso/test [info] document name: simple.tex texpresso logo: 512x512 [info] tectonic path: texpresso-tonic [dvi] loading pdftex.map bundle_serve_hooks_cat: cannot read answer [dvi] loading kanjix.map
@Hanchao-Zhang From the conversation history you have successfully built, your last problem was usage in VSCode. According to your comments, can you try setting
texpresso.commandto the path of texpresso you built and see if work? Didn't use it with vscode myself but with the logs in your comments, that maybe work (I guess yourtexpressowas not in your PATH?)
not sure if this add up but i am seeing this issue: [https://github.com/tectonic-typesetting/tectonic/issues/1184](tectonic issue)
Hi all!
For anyone still figuring out how to solve the missing harfbuzz error try to force correct path at runtime, e.g. run this in the .../texpresso/tectonic/ directory (make sure you have correct icu4uc package version, or just replace 77 with the version you have installed):
PKG_CONFIG_PATH=/opt/homebrew/opt/icu4c@77/lib/pkgconfig\
C_INCLUDE_PATH=/opt/homebrew/opt/icu4c@77/include\
LIBRARY_PATH=/opt/homebrew/opt/icu4c@77/lib\
CPATH=/opt/homebrew/Cellar/harfbuzz/11.2.1/include cargo build --release --features external-harfbuzz
Let me know if this fixes the error, so I could create a PR and fix all future issues as well, until the tectonic source will be removed from the project.
-- Cheers
some new error appears...
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.5" "-I" "layout" "-I" "/Users/hanchaozhang/texpresso/tectonic/crates/bridge_core/support" "-I" "/opt/homebrew/Cellar/harfbuzz/10.4.0_1/include/harfbuzz" "-I" "/opt/homebrew/opt/freetype/include/freetype2" "-I" "/opt/homebrew/opt/libpng/include/libpng16" "-I" "/opt/homebrew/Cellar/glib/2.84.0/include/glib-2.0" "-I" "/opt/homebrew/Cellar/glib/2.84.0/lib/glib-2.0/include" "-I" "/opt/homebrew/opt/gettext/include" "-I" "/opt/homebrew/Cellar/pcre2/10.44/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/hanchaozhang/texpresso/tectonic/target/release/build/tectonic_xetex_layout-d76032ff08ee0ccc/out/54bde2384bf9f557-xetex-XeTeXFontInst.o" "-c" "layout/xetex-XeTeXFontInst.cpp"
warning: build failed, waiting for other jobs to finish... warning: [email protected]: pdf_io/dpx-cidtype2.c:477:14: warning: variable 'num_glyphs' set but not used [-Wunused-but-set-variable] warning: [email protected]: 477 | USHORT num_glyphs; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-cidtype2.c:818:21: warning: variable 'gid' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] warning: [email protected]: 818 | if (code < 0) { warning: [email protected]: | ^~~~~~~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:839:17: note: uninitialized use occurs here warning: [email protected]: 839 | if (gid == 0) { warning: [email protected]: | ^~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:818:17: note: remove the 'if' if its condition is always false warning: [email protected]: 818 | if (code < 0) { warning: [email protected]: | ^~~~~~~~~~~~~~~ warning: [email protected]: 819 | dpx_warning("Unable to map CID to code: CID=%u", cid); warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: [email protected]: 820 | } else { warning: [email protected]: | ~~~~~~ warning: [email protected]: pdf_io/dpx-cidtype2.c:794:25: note: initialize the variable 'gid' to silence this warning warning: [email protected]: 794 | uint16_t gid; warning: [email protected]: | ^ warning: [email protected]: | = 0 warning: [email protected]: 2 warnings generated. warning: [email protected]: pdf_io/dpx-spc_misc.c:363:18: warning: no previous extern declaration for non-static variable 'fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 363 | struct fontattr *fontattrs = NULL; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:363:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 363 | struct fontattr fontattrs = NULL; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:364:5: warning: no previous extern declaration for non-static variable 'num_fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 364 | int num_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:364:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 364 | int num_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:365:5: warning: no previous extern declaration for non-static variable 'max_fontattrs' [-Wmissing-variable-declarations] warning: [email protected]: 365 | int max_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: pdf_io/dpx-spc_misc.c:365:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit warning: [email protected]: 365 | int max_fontattrs = 0; warning: [email protected]: | ^ warning: [email protected]: 3 warnings generated. warning: [email protected]: pdf_io/dpx-spc_util.c:1188:8: warning: missing field 'color' initializer [-Wmissing-field-initializers] warning: [email protected]: 1188 | {NULL} warning: [email protected]: | ^ warning: [email protected]: 1 warning generated. warning: [email protected]: pdf_io/dpx-specials.c:615:8: warning: missing field 'bodhk_func' initializer [-Wmissing-field-initializers] warning: [email protected]: 615 | {NULL} / end */ warning: [email protected]: | ^ warning: [email protected]: 1 warning generated. warning: [email protected]: pdf_io/dpx-tt_gsub.c:1935:11: warning: variable 'count' set but not used [-Wunused-but-set-variable] warning: [email protected]: 1935 | int32_t count = 0; warning: [email protected]: | ^ warning: [email protected]: 1 warning generated.
"/opt/homebrew/Cellar/harfbuzz/10.4.0_1/include/harfbuzz"...
Do you have an older version of harfbuzz? That could be the issue. You may try to update it to the current version (i.e. 11.2.1), but first try to run this command (now it is agnostic to harfbuzz and icu4c versions):
PKG_CONFIG_PATH=$(brew --prefix icu4c)/lib/pkgconfig\
C_INCLUDE_PATH=$(brew --prefix icu4c)/include\
LIBRARY_PATH=$(brew --prefix icu4c)/lib\
RUST_BACKTRACE=full\
CPATH=$(brew --prefix harfbuzz)/include cargo build --release --features external-harfbuzz
I also added RUST_BACKTRACE=full to see output verbose
Also, try to run command in a single line form, because I have found this also could cause troubles. The command:
PKG_CONFIG_PATH=$(brew --prefix icu4c)/lib/pkgconfig C_INCLUDE_PATH=$(brew --prefix icu4c)/include LIBRARY_PATH=$(brew --prefix icu4c)/lib RUST_BACKTRACE=full CPATH=$(brew --prefix harfbuzz)/include cargo build --release --features external-harfbuzz
@Hanchao-Zhang any updates on build?