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

unable to compile on MacOS #95

Open
VirajKanse opened this issue Nov 26, 2024 · 0 comments
Open

unable to compile on MacOS #95

VirajKanse opened this issue Nov 26, 2024 · 0 comments

Comments

@VirajKanse
Copy link

It seems like it is not able to locate cpp installation on my machine.

Adding the logs below:

error: failed to run custom build command for `mupdf-sys v0.4.4`

Caused by:
  process didn't exit successfully: `/Users/viraj/actix_test/target/release/build/mupdf-sys-91c4ff493db919c1/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=wrapper.h
  cargo:rerun-if-changed=wrapper.c
  OPT_LEVEL = Some(3)
  TARGET = Some(aarch64-apple-darwin)
  OUT_DIR = Some(/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out)
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CC_aarch64-apple-darwin
  CC_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CC_aarch64_apple_darwin
  CC_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = 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=CFLAGS_aarch64-apple-darwin
  CFLAGS_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin
  CFLAGS_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  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=CXXFLAGS_aarch64-apple-darwin
  CXXFLAGS_aarch64-apple-darwin = None
  cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
  CXXFLAGS_aarch64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/graph/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/graph/gsubgpos-context.o -c thirdparty/harfbuzz/src/graph/gsubgpos-context.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-aat-layout.o -c thirdparty/harfbuzz/src/hb-aat-layout.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-aat-map.o -c thirdparty/harfbuzz/src/hb-aat-map.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-blob.o -c thirdparty/harfbuzz/src/hb-blob.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer.o -c thirdparty/harfbuzz/src/hb-buffer.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer-verify.o -c thirdparty/harfbuzz/src/hb-buffer-verify.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer-serialize.o -c thirdparty/harfbuzz/src/hb-buffer-serialize.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11
  mkdir -p /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/ ; c++ -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -Iinclude -O3 -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.0 -Wall -Wextra -DTOFU -DTOFU_CJK -DTOFU_NOTO -DTOFU_SYMBOL -DTOFU_EMOJI -DTOFU_SIL -MMD -MP -o /Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-common.o -c thirdparty/harfbuzz/src/hb-common.cc  -Ithirdparty/harfbuzz/src -Iinclude/mupdf -Ithirdparty/freetype/include -Iscripts/freetype -DHAVE_FALLBACK=1 -DHAVE_FREETYPE -DHAVE_OT -DHAVE_ROUND -DHAVE_UCDN -DHB_NO_MT -DHB_NO_PRAGMA_GCC_DIAGNOSTIC -w -Dhb_malloc_impl=fz_hb_malloc -Dhb_calloc_impl=fz_hb_calloc -Dhb_free_impl=fz_hb_free -Dhb_realloc_impl=fz_hb_realloc -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11

  --- stderr
  In file included from thirdparty/harfbuzz/src/hb-aat-map.cc:29:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-blob.cc:28:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-aat-layout.cc:28:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-buffer-serialize.cc:27:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-buffer-verify.cc:27:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-common.cc:29:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/graph/gsubgpos-context.cc:27:
  In file included from thirdparty/harfbuzz/src/graph/gsubgpos-graph.hh:27:
  In file included from thirdparty/harfbuzz/src/graph/graph.hh:27:
  In file included from thirdparty/harfbuzz/src/graph/../hb-set.hh:31:
  thirdparty/harfbuzz/src/graph/../hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  In file included from thirdparty/harfbuzz/src/hb-buffer.cc:30:
  In file included from thirdparty/harfbuzz/src/hb-buffer.hh:33:
  thirdparty/harfbuzz/src/hb.hh:184:10: fatal error: 'cassert' file not found
    184 | #include <cassert>
        |          ^~~~~~~~~
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-blob.o] Error 1
  make: *** Waiting for unfinished jobs....
  1 error generated.
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer-verify.o] Error 1
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-common.o] Error 1
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer-serialize.o] Error 1
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-aat-map.o] Error 1
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-buffer.o] Error 1
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/graph/gsubgpos-context.o] Error 1
  1 error generated.
  make: *** [/Users/viraj/actix_test/target/release/build/mupdf-sys-1dad9a8e665dc124/out/build/thirdparty/harfbuzz/src/hb-aat-layout.o] Error 1
  thread 'main' panicked at /Users/viraj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mupdf-sys-0.4.4/build.rs:259:9:
  Build error, exit code 2
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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