Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue #84

Open
reubaldry opened this issue Feb 23, 2025 · 0 comments
Open

Build issue #84

reubaldry opened this issue Feb 23, 2025 · 0 comments

Comments

@reubaldry
Copy link

make texpresso-tonic produces an error (and a bunch of warnings) on macOS Sequoia 15.1. Output is as follows:

/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
Compiling tectonic_bridge_harfbuzz v0.2.9 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/bridge_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 proc-macro-error v1.0.4
Compiling chrono v0.4.39
Compiling watchexec-events v1.0.0
Compiling async-priority-channel v0.1.0
Compiling rustls-pemfile v1.0.4
Compiling ignore-files v1.3.1
Compiling serde_json v1.0.139
Compiling thiserror v2.0.11
Compiling clearscreen v2.0.1
Compiling chrono-tz v0.9.0
Compiling system-configuration v0.5.1
Compiling hyper-tls v0.5.0
Compiling url v2.5.4
Compiling rand_chacha v0.3.1
Compiling proc-macro-error-attr v1.0.4
Compiling unic-ucd-segment v0.9.0
Compiling pest_generator v2.7.15
Compiling libm v0.2.11
Compiling syn v1.0.109
Compiling serde_urlencoded v0.7.1
Compiling tectonic_bridge_flate v0.1.7 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/bridge_flate)
Compiling tectonic_bridge_graphite2 v0.2.2 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/bridge_graphite2)
Compiling tectonic_engine_xetex v0.4.4 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/engine_xetex)
Compiling serde_spanned v0.6.8
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

Compiling toml_datetime v0.6.8
Compiling async-recursion v1.1.1
Compiling tectonic_engine_xdvipdfmx v0.4.1 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/engine_xdvipdfmx)
warning: [email protected]: In file included from harfbuzz/src/harfbuzz.cc:1:
warning: [email protected]: In file included from harfbuzz/src/hb-aat-layout.cc:28:
warning: [email protected]: harfbuzz/src/hb.hh:187:10: fatal error: 'cassert' file not found
warning: [email protected]: 187 | #include
warning: [email protected]: | ^~~~~~~~~
warning: [email protected]: 1 error generated.
error: failed to run custom build command for tectonic_bridge_harfbuzz v0.2.9 (/Users/reubenbaldry/software_utils/texpresso/tectonic/crates/bridge_harfbuzz)

Caused by:
process didn't exit successfully: /Users/reubenbaldry/software_utils/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-4e17422ecae7a48c/build-script-build (exit status: 1)
--- stdout
OUT_DIR = Some(/Users/reubenbaldry/software_utils/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-2b644037a07f51f4/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:warning=In file included from harfbuzz/src/harfbuzz.cc:1:
cargo:warning=In file included from harfbuzz/src/hb-aat-layout.cc:28:
cargo:warning=harfbuzz/src/hb.hh:187:10: fatal error: 'cassert' file not found
cargo:warning= 187 | #include
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.1" "-I" "/opt/homebrew/Cellar/graphite2/1.3.14/include" "-std=c++11" "-DHAVE_GRAPHITE2=1" "-DHAVE_PTHREAD=1" "-DHAVE_CORETEXT=1" "-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0" "-o" "/Users/reubenbaldry/software_utils/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-2b644037a07f51f4/out/3be9a5a8b90f3f2c-harfbuzz.o" "-c" "harfbuzz/src/harfbuzz.cc"

warning: build failed, waiting for other jobs to finish...
warning: tectonic_engine_xetex (build script) generated 1 warning
make[1]: *** [tectonic] Error 101
make: *** [texpresso-tonic] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant