Last active
October 12, 2018 01:16
-
-
Save tiras-j/2bbc0dd1c57f7f54a657dcfa52244a81 to your computer and use it in GitHub Desktop.
libz-sys aarch64-apple-ios compile failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo build --release --target=aarch64-apple-ios | |
Compiling cc v1.0.25 | |
Compiling pkg-config v0.3.14 | |
Compiling libc v0.2.43 | |
Compiling libz-sys v1.0.21 (file:///Users/jot/libz-sys) | |
error: failed to run custom build command for `libz-sys v1.0.21 (file:///Users/jot/libz-sys)` | |
process didn't exit successfully: `/Users/jot/libz-sys/target/release/build/libz-sys-830cfa7a396b97c0/build-script-build` (exit code: 101) | |
--- stdout | |
cargo:rerun-if-env-changed=LIBZ_SYS_STATIC | |
cargo:rerun-if-changed=build.rs | |
TARGET = Some("aarch64-apple-ios") | |
OPT_LEVEL = Some("3") | |
HOST = Some("x86_64-apple-darwin") | |
CC_aarch64-apple-ios = None | |
CC_aarch64_apple_ios = None | |
TARGET_CC = None | |
CC = None | |
CROSS_COMPILE = None | |
CFLAGS_aarch64-apple-ios = None | |
CFLAGS_aarch64_apple_ios = None | |
TARGET_CFLAGS = None | |
CFLAGS = None | |
DEBUG = Some("false") | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/adler32.o" "-c" "src/zlib/adler32.c" | |
exit code: 0 | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/compress.o" "-c" "src/zlib/compress.c" | |
exit code: 0 | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/crc32.o" "-c" "src/zlib/crc32.c" | |
exit code: 0 | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/deflate.o" "-c" "src/zlib/deflate.c" | |
exit code: 0 | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/gzclose.o" "-c" "src/zlib/gzclose.c" | |
exit code: 0 | |
Detecting iOS SDK path for iphoneos | |
running: "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/gzlib.o" "-c" "src/zlib/gzlib.c" | |
cargo:warning=src/zlib/gzlib.c:214:15: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] | |
cargo:warning= (void)snprintf(state->path, len + 1, "%s", (const char *)path); | |
cargo:warning= ^ | |
cargo:warning=src/zlib/gzlib.c:214:15: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' | |
cargo:warning=1 error generated. | |
exit code: 1 | |
--- stderr | |
thread 'main' panicked at ' | |
Internal error occurred: Command "cc" "-O3" "-fPIC" "-arch" "arm64" "-miphoneos-version-min=7.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk" "-fembed-bitcode" "-I" "src/zlib" "-DSTDC" "-D_LARGEFILE64_SOURCE" "-D_POSIX_SOURCE" "-o" "/Users/jot/libz-sys/target/aarch64-apple-ios/release/build/libz-sys-0d2900ef1b0f529c/out/build/src/zlib/gzlib.o" "-c" "src/zlib/gzlib.c" with args "cc" did not execute successfully (status code exit code: 1). | |
', /Users/jot/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.25/src/lib.rs:2260:5 | |
note: Run with `RUST_BACKTRACE=1` for a backtrace. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment