Closed TomSchammo closed 1 year ago
It looks like your compiler is somehow disabling C99 extensions. Can you include the entire output? I believe there should have been a bunch of lines showing the compiler commands. Also, which C compiler and version do you have?
The whole ouptu is below, although I believe you're looking for this?
error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/annotated_commit.o" "-c" "libgit2/src/libgit2/annotated_commit.c" with args "gcc" did not execute successfully (status code exit status: 1).
It seems to use gcc, gcc version: gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-3)
Complete output:
The following warnings were emitted during compilation:
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/annotated_commit.h:10,
warning: from libgit2/src/libgit2/annotated_commit.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/attrcache.h:10,
warning: from libgit2/src/libgit2/attrcache.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/blame.h:4,
warning: from libgit2/src/libgit2/blame.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/blob.h:10,
warning: from libgit2/src/libgit2/blob.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/posix.h:155,
warning: from libgit2/src/util/git2_util.h:106,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/blob.h:10,
warning: from libgit2/src/libgit2/blob.c:8:
warning: libgit2/src/libgit2/blob.c: In function ‘write_symlink’:
warning: libgit2/src/util/unix/posix.h:40:29: error: implicit declaration of function ‘readlink’; did you mean ‘p_readlink’? [-Werror=implicit-function-declaration]
warning: 40 | #define p_readlink(a, b, c) readlink(a, b, c)
warning: | ^~~~~~~~
warning: libgit2/src/libgit2/blob.c:171:20: note: in expansion of macro ‘p_readlink’
warning: 171 | read_len = p_readlink(path, link_data, link_size);
warning: | ^~~~~~~~~~
warning: cc1: all warnings being treated as errors
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/blame_git.h:10,
warning: from libgit2/src/libgit2/blame_git.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/git2_util.h:106,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/blame_git.h:10,
warning: from libgit2/src/libgit2/blame_git.c:8:
warning: libgit2/src/libgit2/tree.h: In function ‘git_tree_entry__is_tree’:
warning: libgit2/src/util/posix.h:19:32: error: ‘S_IFMT’ undeclared (first use in this function)
warning: 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
warning: | ^~~~~~
warning: libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
warning: 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
warning: | ^~~~~~~~~~~
warning: libgit2/src/util/posix.h:19:32: note: each undeclared identifier is reported only once for each function it appears in
warning: 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
warning: | ^~~~~~
warning: libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
warning: 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
warning: | ^~~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/util/array.h:10,
warning: from libgit2/src/libgit2/apply.c:15:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/attr_file.h:10,
warning: from libgit2/src/libgit2/attr_file.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/attr.h:10,
warning: from libgit2/src/libgit2/attr.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/thread.h:74,
warning: from libgit2/src/util/git2_util.h:102,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/branch.h:10,
warning: from libgit2/src/libgit2/branch.c:8:
warning: libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
warning: 48 | #define git_rwlock pthread_rwlock_t
warning: | ^~~~~~~~~~~~~~~~
warning: libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
warning: 35 | git_rwlock lock;
warning: | ^~~~~~~~~~
warning: In file included from libgit2/src/util/git2_util.h:106,
warning: from libgit2/src/libgit2/common.h:10,
warning: from libgit2/src/libgit2/branch.h:10,
warning: from libgit2/src/libgit2/branch.c:8:
warning: libgit2/src/libgit2/tree.h: In function ‘git_tree_entry__is_tree’:
warning: libgit2/src/util/posix.h:19:32: error: ‘S_IFMT’ undeclared (first use in this function)
warning: 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
warning: | ^~~~~~
warning: libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
warning: 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
warning: | ^~~~~~~~~~~
warning: libgit2/src/util/posix.h:19:32: note: each undeclared identifier is reported only once for each function it appears in
warning: 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
warning: | ^~~~~~
warning: libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
warning: 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
warning: | ^~~~~~~~~~~
error: failed to run custom build command for `libgit2-sys v0.14.0+1.5.0 (/home/tom/tmp/git2-rs/libgit2-sys)`
Caused by:
process didn't exit successfully: `/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-b749e9c772def3a0/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=LIBGIT2_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBGIT2_STATIC
cargo:rerun-if-env-changed=LIBGIT2_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rustc-cfg=libgit2_vendored
libgit2/include/git2.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2.h
libgit2/include/git2/annotated_commit.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/annotated_commit.h
libgit2/include/git2/apply.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/apply.h
libgit2/include/git2/attr.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/attr.h
libgit2/include/git2/blame.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/blame.h
libgit2/include/git2/blob.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/blob.h
libgit2/include/git2/branch.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/branch.h
libgit2/include/git2/buffer.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/buffer.h
libgit2/include/git2/cert.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/cert.h
libgit2/include/git2/checkout.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/checkout.h
libgit2/include/git2/cherrypick.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/cherrypick.h
libgit2/include/git2/clone.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/clone.h
libgit2/include/git2/commit.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/commit.h
libgit2/include/git2/common.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/common.h
libgit2/include/git2/config.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/config.h
libgit2/include/git2/cred_helpers.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/cred_helpers.h
libgit2/include/git2/credential.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/credential.h
libgit2/include/git2/credential_helpers.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/credential_helpers.h
libgit2/include/git2/deprecated.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/deprecated.h
libgit2/include/git2/describe.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/describe.h
libgit2/include/git2/diff.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/diff.h
libgit2/include/git2/email.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/email.h
libgit2/include/git2/errors.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/errors.h
libgit2/include/git2/filter.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/filter.h
libgit2/include/git2/global.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/global.h
libgit2/include/git2/graph.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/graph.h
libgit2/include/git2/ignore.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/ignore.h
libgit2/include/git2/index.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/index.h
libgit2/include/git2/indexer.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/indexer.h
libgit2/include/git2/mailmap.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/mailmap.h
libgit2/include/git2/merge.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/merge.h
libgit2/include/git2/message.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/message.h
libgit2/include/git2/net.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/net.h
libgit2/include/git2/notes.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/notes.h
libgit2/include/git2/object.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/object.h
libgit2/include/git2/odb.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/odb.h
libgit2/include/git2/odb_backend.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/odb_backend.h
libgit2/include/git2/oid.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/oid.h
libgit2/include/git2/oidarray.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/oidarray.h
libgit2/include/git2/pack.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/pack.h
libgit2/include/git2/patch.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/patch.h
libgit2/include/git2/pathspec.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/pathspec.h
libgit2/include/git2/proxy.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/proxy.h
libgit2/include/git2/rebase.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/rebase.h
libgit2/include/git2/refdb.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/refdb.h
libgit2/include/git2/reflog.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/reflog.h
libgit2/include/git2/refs.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/refs.h
libgit2/include/git2/refspec.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/refspec.h
libgit2/include/git2/remote.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/remote.h
libgit2/include/git2/repository.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/repository.h
libgit2/include/git2/reset.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/reset.h
libgit2/include/git2/revert.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/revert.h
libgit2/include/git2/revparse.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/revparse.h
libgit2/include/git2/revwalk.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/revwalk.h
libgit2/include/git2/signature.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/signature.h
libgit2/include/git2/stash.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/stash.h
libgit2/include/git2/status.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/status.h
libgit2/include/git2/stdint.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/stdint.h
libgit2/include/git2/strarray.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/strarray.h
libgit2/include/git2/submodule.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/submodule.h
libgit2/include/git2/sys/alloc.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/alloc.h
libgit2/include/git2/sys/commit.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/commit.h
libgit2/include/git2/sys/commit_graph.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/commit_graph.h
libgit2/include/git2/sys/config.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/config.h
libgit2/include/git2/sys/cred.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/cred.h
libgit2/include/git2/sys/credential.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/credential.h
libgit2/include/git2/sys/diff.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/diff.h
libgit2/include/git2/sys/email.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/email.h
libgit2/include/git2/sys/filter.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/filter.h
libgit2/include/git2/sys/hashsig.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/hashsig.h
libgit2/include/git2/sys/index.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/index.h
libgit2/include/git2/sys/mempack.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/mempack.h
libgit2/include/git2/sys/merge.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/merge.h
libgit2/include/git2/sys/midx.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/midx.h
libgit2/include/git2/sys/odb_backend.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/odb_backend.h
libgit2/include/git2/sys/openssl.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/openssl.h
libgit2/include/git2/sys/path.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/path.h
libgit2/include/git2/sys/refdb_backend.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/refdb_backend.h
libgit2/include/git2/sys/reflog.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/reflog.h
libgit2/include/git2/sys/refs.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/refs.h
libgit2/include/git2/sys/remote.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/remote.h
libgit2/include/git2/sys/repository.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/repository.h
libgit2/include/git2/sys/stream.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/stream.h
libgit2/include/git2/sys/transport.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/sys/transport.h
libgit2/include/git2/tag.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/tag.h
libgit2/include/git2/trace.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/trace.h
libgit2/include/git2/transaction.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/transaction.h
libgit2/include/git2/transport.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/transport.h
libgit2/include/git2/tree.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/tree.h
libgit2/include/git2/types.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/types.h
libgit2/include/git2/version.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/version.h
libgit2/include/git2/worktree.h => /home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include/git2/worktree.h
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
CC_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
CC_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = Some("gcc")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
CFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
CFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = Some("-ggdb3 -O0 -std=c11 -Wall -Werror")
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/apply.o" "-c" "libgit2/src/libgit2/apply.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/annotated_commit.o" "-c" "libgit2/src/libgit2/annotated_commit.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/blame_git.o" "-c" "libgit2/src/libgit2/blame_git.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/attrcache.o" "-c" "libgit2/src/libgit2/attrcache.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/blob.o" "-c" "libgit2/src/libgit2/blob.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/attr.o" "-c" "libgit2/src/libgit2/attr.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/blame.o" "-c" "libgit2/src/libgit2/blame.c"
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/attr_file.o" "-c" "libgit2/src/libgit2/attr_file.c"
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/annotated_commit.h:10,
cargo:warning= from libgit2/src/libgit2/annotated_commit.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
exit status: 1
running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/branch.o" "-c" "libgit2/src/libgit2/branch.c"
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/attrcache.h:10,
cargo:warning= from libgit2/src/libgit2/attrcache.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
exit status: 1
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/blame.h:4,
cargo:warning= from libgit2/src/libgit2/blame.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
exit status: 1
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/blob.h:10,
cargo:warning= from libgit2/src/libgit2/blob.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
cargo:warning=In file included from libgit2/src/util/posix.h:155,
cargo:warning= from libgit2/src/util/git2_util.h:106,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/blob.h:10,
cargo:warning= from libgit2/src/libgit2/blob.c:8:
cargo:warning=libgit2/src/libgit2/blob.c: In function ‘write_symlink’:
cargo:warning=libgit2/src/util/unix/posix.h:40:29: error: implicit declaration of function ‘readlink’; did you mean ‘p_readlink’? [-Werror=implicit-function-declaration]
cargo:warning= 40 | #define p_readlink(a, b, c) readlink(a, b, c)
cargo:warning= | ^~~~~~~~
cargo:warning=libgit2/src/libgit2/blob.c:171:20: note: in expansion of macro ‘p_readlink’
cargo:warning= 171 | read_len = p_readlink(path, link_data, link_size);
cargo:warning= | ^~~~~~~~~~
cargo:warning=cc1: all warnings being treated as errors
exit status: 1
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/blame_git.h:10,
cargo:warning= from libgit2/src/libgit2/blame_git.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
cargo:warning=In file included from libgit2/src/util/git2_util.h:106,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/blame_git.h:10,
cargo:warning= from libgit2/src/libgit2/blame_git.c:8:
cargo:warning=libgit2/src/libgit2/tree.h: In function ‘git_tree_entry__is_tree’:
cargo:warning=libgit2/src/util/posix.h:19:32: error: ‘S_IFMT’ undeclared (first use in this function)
cargo:warning= 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
cargo:warning= | ^~~~~~
cargo:warning=libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
cargo:warning= 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
cargo:warning= | ^~~~~~~~~~~
cargo:warning=libgit2/src/util/posix.h:19:32: note: each undeclared identifier is reported only once for each function it appears in
cargo:warning= 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
cargo:warning= | ^~~~~~
cargo:warning=libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
cargo:warning= 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
cargo:warning= | ^~~~~~~~~~~
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/util/array.h:10,
cargo:warning= from libgit2/src/libgit2/apply.c:15:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/attr_file.h:10,
cargo:warning= from libgit2/src/libgit2/attr_file.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
exit status: 1
exit status: 1
exit status: 1
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/attr.h:10,
cargo:warning= from libgit2/src/libgit2/attr.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
exit status: 1
cargo:warning=In file included from libgit2/src/util/thread.h:74,
cargo:warning= from libgit2/src/util/git2_util.h:102,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/branch.h:10,
cargo:warning= from libgit2/src/libgit2/branch.c:8:
cargo:warning=libgit2/src/util/unix/pthread.h:48:33: error: unknown type name ‘pthread_rwlock_t’
cargo:warning= 48 | #define git_rwlock pthread_rwlock_t
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=libgit2/src/libgit2/cache.h:35:9: note: in expansion of macro ‘git_rwlock’
cargo:warning= 35 | git_rwlock lock;
cargo:warning= | ^~~~~~~~~~
cargo:warning=In file included from libgit2/src/util/git2_util.h:106,
cargo:warning= from libgit2/src/libgit2/common.h:10,
cargo:warning= from libgit2/src/libgit2/branch.h:10,
cargo:warning= from libgit2/src/libgit2/branch.c:8:
cargo:warning=libgit2/src/libgit2/tree.h: In function ‘git_tree_entry__is_tree’:
cargo:warning=libgit2/src/util/posix.h:19:32: error: ‘S_IFMT’ undeclared (first use in this function)
cargo:warning= 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
cargo:warning= | ^~~~~~
cargo:warning=libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
cargo:warning= 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
cargo:warning= | ^~~~~~~~~~~
cargo:warning=libgit2/src/util/posix.h:19:32: note: each undeclared identifier is reported only once for each function it appears in
cargo:warning= 19 | #define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
cargo:warning= | ^~~~~~
cargo:warning=libgit2/src/libgit2/tree.h:40:38: note: in expansion of macro ‘S_ISGITLINK’
cargo:warning= 40 | return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
cargo:warning= | ^~~~~~~~~~~
exit status: 1
--- stderr
error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-ggdb3" "-O0" "-std=c11" "-Wall" "-Werror" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/include" "-I" "libgit2/src/libgit2" "-I" "libgit2/src/util" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/home/tom/tmp/git2-rs/target/debug/build/libssh2-sys-ad2ab8b217a75593/out/include" "-I" "/usr/include" "-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" "/home/tom/tmp/git2-rs/target/debug/build/libgit2-sys-4775bbeaefedddc8/out/build/libgit2/src/libgit2/annotated_commit.o" "-c" "libgit2/src/libgit2/annotated_commit.c" with args "gcc" did not execute successfully (status code exit status: 1).
There seems to be some extra flags being passed to cc that aren't usually there: -ggdb3 -O0 -std=c11 -Wall -Werror
Do you perhaps have CFLAGS or some other environment set to pass additional flags? There is some documentation at https://github.com/rust-lang/cc-rs#external-configuration-via-environment-variables about what gets picked up.
Turns out I did and forgot that that was a thing. That explains so much. Thanks a lot, it builds now without any issues!
I get these warnings when I try to build
libgit2-sys
as instructed in the readme, which cause the build to fail.What am I missing?
OS: Linux fedora 6.0.5-100.fc35.x86_64 (Fedora 35)