rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.65k stars 381 forks source link

libgit2-sys 0.14.2+1.5.1 can not be successfully built #927

Closed leleliu008 closed 1 year ago

leleliu008 commented 1 year ago
2023-02-11T21:34:30.1683810Z [libgit2-sys 0.14.2+1.5.1] running: "/github/home/.ppkg/core/bin/proxy-cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-fPIC" "-fno-common" "-Os" "-I/github/home/.ppkg/installing/rav1e/include" "-I/github/home/.ppkg/installed/libgit2/include" "-I/github/home/.ppkg/installed/libiconv/include" "-I/github/home/.ppkg/installed/pcre2/include" "-I/github/home/.ppkg/installed/readline/include" "-I/github/home/.ppkg/installed/ncurses/include" "-I/github/home/.ppkg/installed/libbz2/include" "-I/github/home/.ppkg/installed/libssh2/include" "-I/github/home/.ppkg/installed/openssl/include" "-I/github/home/.ppkg/installed/zlib/include" "-DNDEBUG" "-I" "/github/home/.ppkg/installing/rav1e/src/target/release/build/libgit2-sys-a4b2ef138b3844a5/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-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" "/github/home/.ppkg/installing/rav1e/src/target/release/build/libgit2-sys-a4b2ef138b3844a5/out/build/libgit2/src/libgit2/attrcache.o" "-c" "libgit2/src/libgit2/attrcache.c"
2023-02-11T21:34:30.2271649Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=In file included from libgit2/src/libgit2/common.h:11,
2023-02-11T21:34:30.2273597Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=                 from libgit2/src/libgit2/attrcache.h:10,
2023-02-11T21:34:30.2277632Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=                 from libgit2/src/libgit2/attrcache.c:8:
2023-02-11T21:34:30.2281748Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=libgit2/src/libgit2/errors.h: In function 'git_error_set_after_callback_function':
2023-02-11T21:34:30.2285661Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=libgit2/src/libgit2/errors.h:32:25: warning: implicit declaration of function 'git_error_set'; did you mean 'git_error_vset'? [-Wimplicit-function-declaration]
2023-02-11T21:34:30.2289174Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=   32 |                         git_error_set(e ? e->klass : GIT_ERROR_CALLBACK,
2023-02-11T21:34:30.2292850Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=      |                         ^~~~~~~~~~~~~
2023-02-11T21:34:30.2296551Z [libgit2-sys 0.14.2+1.5.1] cargo:warning=      |                         git_error_vset
2023-02-11T21:34:30.3885592Z [libgit2-sys 0.14.2+1.5.1] exit status: 0

git_error_set function was added since libgit-1.5.0 reference

In addition, I tried 0.13.5+1.4.5 and it worked well, I found they were released at the same day.

ehuss commented 1 year ago

Can you provide the complete output? Although something looks wrong there, that looks to be just a warning.

Can you provide more information on how you reproduced it? I noticed the command-line looks unusual (with proxy-cc and such). Can you reproduce in a clean environment without any wrappers?

Which platform are you running on? Which Cargo features are you using? Do you maybe have another libgit2 someone on the include search path?

leleliu008 commented 1 year ago

Thank you for your reminder. yes, there is another libgit2 in headers search path -I/github/home/.ppkg/installed/libgit2/include

I'm closing this. Thanks again.