generated from srid/rust-nix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit d07eaf3
committed
Fix build deps for Nix flake on macOS
Otherwise the following errors occur at compile time when compiling
tectonic_xetex_layout:
Compiling tectonic_xetex_layout v0.2.4
[...]
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:49:10: fatal error: 'ApplicationServices/ApplicationServices.h' file not found
warning: [email protected]: #include <ApplicationServices/ApplicationServices.h>
warning: [email protected]: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=11.0" "-I" "layout" "-I" "/Users/janis.koenig/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tectonic_bridge_core-0.4.1/support" "-I" "/nix/store/8sy0k9w49vhz7fi6cmw0lkgc9aqhkrfi-harfbuzz-8.4.0-dev/include/harfbuzz" "-I" "/nix/store/lr1fj7ial9j5ngjrklgi7mmbv10w1rl6-freetype-2.13.2-dev/include/freetype2" "-I" "/nix/store/vnsq2kfnma1g5x97f353cjvz1gjspxns-graphite2-1.3.14/include" "-I" "/nix/store/nfj92diqhyswkq9sy7g0kvd6xcqfinnc-icu4c-73.2-dev/include" "-Wall" "-Wextra" "-Wall" "-std=c++14" "-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/janis.koenig/Documents/Development/sbgg/target/debug/build/tectonic_xetex_layout-d9898cfc058f1e65/out/b3219800bda33a1f-xetex-XeTeXFontInst.o" "-c" "layout/xetex-XeTeXFontInst.cpp" with args clang++ did not execute successfully (status code exit status: 1).cargo:warning=In file included from layout/xetex-XeTeXFontMgr.cpp:33:
[...]
warning: [email protected]: layout/xetex-XeTeXLayoutInterface.cpp:1135:12: warning: returning address of local temporary object [-Wreturn-stack-address]
warning: [email protected]: return XeTeXFontMgr::GetFontManager()->getPlatformFontDesc(fontRef).c_str();
warning: [email protected]: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: layout/xetex-XeTeXFontMgr_Mac.mm:37:10: fatal error: 'Cocoa/Cocoa.h' file not found
warning: [email protected]: #include <Cocoa/Cocoa.h>
warning: [email protected]: ^~~~~~~~~~~~~~~
warning: [email protected]: 1 error generated.
warning: [email protected]: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=11.0" "-I" "layout" "-I" "/Users/janis.koenig/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tectonic_bridge_core-0.4.1/support" "-I" "/nix/store/8sy0k9w49vhz7fi6cmw0lkgc9aqhkrfi-harfbuzz-8.4.0-dev/include/harfbuzz" "-I" "/nix/store/lr1fj7ial9j5ngjrklgi7mmbv10w1rl6-freetype-2.13.2-dev/include/freetype2" "-I" "/nix/store/vnsq2kfnma1g5x97f353cjvz1gjspxns-graphite2-1.3.14/include" "-I" "/nix/store/nfj92diqhyswkq9sy7g0kvd6xcqfinnc-icu4c-73.2-dev/include" "-Wall" "-Wextra" "-Wall" "-std=c++14" "-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/janis.koenig/Documents/Development/sbgg/target/debug/build/tectonic_xetex_layout-d9898cfc058f1e65/out/b3219800bda33a1f-xetex-XeTeXFontMgr_Mac.o" "-c" "layout/xetex-XeTeXFontMgr_Mac.mm" with args clang++ did not execute successfully (status code exit status: 1).cargo:warning=1 warning generated.
error: failed to run custom build command for `tectonic_xetex_layout v0.2.4`
error: linking with `cc` failed: exit status: 1
|
= note: env -u [...]
= note: ld: library not found for -lcurl
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)1 parent 1a10dc7 commit d07eaf3Copy full SHA for d07eaf3
1 file changed
+3
-0
lines changed+3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
| 41 | + | |
| 42 | + | |
40 | 43 |
| |
41 | 44 |
| |
42 | 45 |
| |
|
0 commit comments