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 Install on OSX Arm64 Environment #59

Open
moojing opened this issue Jan 13, 2025 · 0 comments
Open

Unable to Install on OSX Arm64 Environment #59

moojing opened this issue Jan 13, 2025 · 0 comments

Comments

@moojing
Copy link

moojing commented Jan 13, 2025

I encountered a problem when I was trying to install code2prompt with cargo in in OSX Sonoma v14.4, (arm64)
here is the error message I got

 error occurred in cc-rs: Command env -u IPHONEOS_DEPLOYMENT_TARGET LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=arm64-apple-macosx14.4" "-I" "/var/folders/9x/npxlj9ls0xv1vvm510pcsblc0000gn/T/cargo-installZygCK1/release/build/libgit2-sys-0395ff7a7bad74b5/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/xdiff" "-I" "libgit2/deps/pcre" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-fvisibility=hidden" "-DGIT_REGEX_BUILTIN=1" "-DHAVE_STDINT_H=1" "-DHAVE_MEMMOVE=1" "-DNO_RECURSE=1" "-DNEWLINE=10" "-DPOSIX_MALLOC_THRESHOLD=10" "-DLINK_SIZE=2" "-DPARENS_NEST_LIMIT=250" "-DMATCH_LIMIT=10000000" "-DMATCH_LIMIT_RECURSION=MATCH_LIMIT" "-DMAX_NAME_SIZE=32" "-DMAX_NAME_COUNT=10000" "-DSHA1DC_NO_STANDARD_INCLUDES=1" "-DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\"common.h\"" "-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"common.h\"" "-o" "/var/folders/9x/npxlj9ls0xv1vvm510pcsblc0000gn/T/cargo-installZygCK1/release/build/libgit2-sys-0395ff7a7bad74b5/out/build/862d8c38285e74fe-stransport.o" "-c" "libgit2/src/libgit2/streams/stransport.c" with args clang did not execute successfully (status code exit status: 1).


Screenshot 2025-01-13 at 11 20 11 AM and there was a bunch of warnings before the error occurred. Screenshot 2025-01-13 at 11 23 14 AM

I've tried :

  • reinstall cargo, but obviously it's not working
  • brew install libgit2, also not worked

I am not familiar to system stuff, hope I could find some help here 🥲

@moojing moojing changed the title Couldn't install through cargo in OSX arm64 Unable to Install on OSX Arm64 Environment Jan 15, 2025
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