You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't touched this in a long time, but I'm not sure why your target is set to arm64-apple-darwin. The list of supported architectures is here, and I think aarch64-apple-darwin should support your case?
yeah, but I am not specifying that arch. It's coming somehow from the build system. No clue where from. However it doesn't look like that is the issue. The include paths does use the right one "-I librsync/static/aarch64-apple-darwin"
Copying the command from the build log does works: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.4" "-I" "librsync/static/aarch64-apple-darwin" "-I" "librsync/static" "-I" "librsync/src" "-I" "librsync/src/blake2" "-I/opt/homebrew/include" "-DSTDC_HEADERS=1" "-o" "/Users/dennis/Projects/dsync/target/debug/build/librsync-sys-a8822e77de9a545d/out/3901d9deb342bdfa-base64.o" "-c" "librsync/src/base64.c"
There are no problem locating the config.h above.
This doesn't include the beginning "Command env -u IPHONEOS_DEPLOYMENT_TARGET" which I also don't know where it comes from. There is a cargo issue around this: rust-lang/cargo#13115
Hi
I am having a problem when I am using the library on apple silicon. I thinks it's more of cargo than library problem
I can compile the library fine (after I remembered about submodules)
But when I include it in a project it fails to compile due to missing config.h (Static config?):
` cargo:warning=librsync/src/base64.c:22:10: fatal error: 'config.h' file not found
cargo:warning=#include "config.h"
cargo:warning= ^~~~~~~~~~
cargo:warning=1 error generated.
--- stderr
error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.4" "-I" "librsync/static/aarch64-apple-darwin" "-I" "librsync/static" "-I" "librsync/src" "-I" "librsync/src/blake2" "-Wall" "-Wextra" "-DSTDC_HEADERS=1" "-o" "/Users/dennis/Projects/dsync/target/aarch64-apple-darwin/debug/build/librsync-sys-e8f77933a44e3c30/out/3901d9deb342bdfa-base64.o" "-c" "librsync/src/base64.c" with args cc did not execute successfully (status code exit status: 1).`
I am new to cargo, so I am a bit when to look.
I can cross-compile to x86_64-apple-darwin on the machine so the tools seems to be working. I am curious why the
target is set to arm64-apple-darwin
The text was updated successfully, but these errors were encountered: