immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
4.02k stars 243 forks source link

Unable to build current versions #260

Closed dignifiedquire closed 4 years ago

dignifiedquire commented 4 years ago

It seems there is an issue with libgit2-sys somewhere

Error happens the same way when installing 0.14.0 from crates.io

Current build log

LLVM_CONFIG_PATH=/usr/local/opt/llvm/bin/llvm-config cargo +nightly-2019-12-05 install --git https://github.com/immunant/c2rust.git c2rust
    Updating git repository `https://github.com/immunant/c2rust.git`
  Installing c2rust v0.14.0 (https://github.com/immunant/c2rust.git#0b2fb27b)
    Updating crates.io index
   Compiling libc v0.2.71
   Compiling proc-macro2 v1.0.18
   Compiling unicode-xid v0.2.0
   Compiling cfg-if v0.1.10
   Compiling syn v1.0.30
   Compiling autocfg v1.0.0
   Compiling serde v1.0.111
   Compiling pkg-config v0.3.17
   Compiling log v0.4.8
   Compiling memchr v2.3.3
   Compiling lazy_static v1.4.0
   Compiling bitflags v1.2.1
   Compiling regex-syntax v0.6.18
   Compiling glob v0.3.0
   Compiling quick-error v1.2.3
   Compiling ryu v1.0.5
   Compiling version_check v0.1.5
   Compiling termcolor v1.1.0
   Compiling unicode-width v0.1.7
   Compiling smallvec v1.4.0
   Compiling semver-parser v0.7.0
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling matches v0.1.8
   Compiling failure_derive v0.1.8
   Compiling getrandom v0.1.14
   Compiling gimli v0.21.0
   Compiling strsim v0.8.0
   Compiling yaml-rust v0.3.5
   Compiling lazycell v1.2.1
   Compiling rustc-demangle v0.1.16
   Compiling itoa v0.4.5
   Compiling object v0.19.0
   Compiling typenum v1.12.0
   Compiling curl v0.4.29
   Compiling same-file v1.0.6
   Compiling bindgen v0.52.0
   Compiling percent-encoding v2.1.0
   Compiling ucd-trie v0.1.3
   Compiling maplit v1.0.2
   Compiling byteorder v1.3.4
   Compiling ppv-lite86 v0.2.8
   Compiling crc32fast v1.2.0
   Compiling shlex v0.1.1
   Compiling peeking_take_while v0.1.2
   Compiling rustc-hash v1.1.0
   Compiling core-foundation-sys v0.6.2
   Compiling adler32 v1.0.4
   Compiling utf8parse v0.1.1
   Compiling fnv v1.0.7
   Compiling unicode-segmentation v1.6.0
   Compiling half v1.6.0
   Compiling remove_dir_all v0.5.2
   Compiling hex v0.3.2
   Compiling opener v0.4.1
   Compiling rustc-workspace-hack v1.0.0
   Compiling hex v0.4.2
   Compiling c2rust-ast-builder v0.14.0 (https://github.com/immunant/c2rust.git#0b2fb27b)
   Compiling bytesize v1.0.1
   Compiling shell-escape v0.1.4
   Compiling c2rust-refactor v0.14.0 (https://github.com/immunant/c2rust.git#0b2fb27b)
   Compiling home v0.5.3
   Compiling either v1.5.3
   Compiling slotmap v0.4.0
   Compiling diff v0.1.12
   Compiling json v0.12.4
   Compiling strum v0.16.0
   Compiling dtoa v0.4.5
   Compiling pathdiff v0.1.0
   Compiling thread_local v1.0.1
   Compiling crossbeam-utils v0.6.6
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling unicode-normalization v0.1.12
   Compiling unicode-bidi v0.3.4
   Compiling walkdir v2.3.1
   Compiling pest v2.1.3
   Compiling nom v4.2.3
   Compiling num-traits v0.2.11
   Compiling num-integer v0.1.42
   Compiling crossbeam-utils v0.7.2
   Compiling indexmap v1.4.0
   Compiling miniz_oxide v0.3.6
   Compiling vte v0.3.3
   Compiling clang-sys v0.28.1
   Compiling heck v0.3.1
   Compiling itertools v0.8.2
   Compiling strip-ansi-escapes v0.1.0
   Compiling idna v0.2.0
   Compiling c2rust-ast-printer v0.14.0 (https://github.com/immunant/c2rust.git#0b2fb27b)
   Compiling ena v0.13.1
   Compiling aho-corasick v0.7.10
   Compiling bstr v0.2.13
   Compiling pest_meta v2.1.3
   Compiling addr2line v0.12.1
   Compiling quote v1.0.6
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling socket2 v0.3.12
   Compiling time v0.1.43
   Compiling which v3.1.1
   Compiling commoncrypto-sys v0.2.0
   Compiling filetime v0.2.10
   Compiling core-foundation v0.6.4
   Compiling num_cpus v1.13.0
   Compiling fs2 v0.4.3
   Compiling url v2.1.1
   Compiling sized-chunks v0.3.1
   Compiling regex v1.3.9
   Compiling backtrace v0.3.48
   Compiling cc v1.0.54
   Compiling clap v2.33.1
   Compiling colored v1.9.3
   Compiling rand_core v0.5.1
   Compiling cexpr v0.3.6
   Compiling commoncrypto v0.2.0
   Compiling tar v0.4.28
   Compiling cmake v0.1.44
   Compiling rand_chacha v0.2.2
   Compiling env_logger v0.7.1
   Compiling globset v0.4.5
   Compiling env_logger v0.6.2
   Compiling crypto-hash v0.3.4
   Compiling chrono v0.4.11
   Compiling rand v0.7.3
   Compiling ignore v0.4.16
   Compiling fern v0.5.9
   Compiling tempfile v3.1.0
   Compiling synstructure v0.12.3
   Compiling pest_generator v2.1.3
   Compiling libz-sys v1.0.25
   Compiling openssl-sys v0.9.57
   Compiling libnghttp2-sys v0.1.4+1.41.0
   Compiling libloading v0.5.2
   Compiling libssh2-sys v0.2.17
   Compiling curl-sys v0.4.31+curl-7.70.0
   Compiling libgit2-sys v0.9.2
   Compiling rlua v0.17.0
   Compiling flate2 v1.0.14
   Compiling serde_derive v1.0.111
error: failed to run custom build command for `libgit2-sys v0.9.2`

Caused by:
  process didn't exit successfully: `/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-3153bbc8d0649d84/build-script-build` (exit code: 1)
--- stdout
libgit2/include/git2.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2.h
libgit2/include/git2/signature.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/signature.h
libgit2/include/git2/oid.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/oid.h
libgit2/include/git2/index.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/index.h
libgit2/include/git2/ignore.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/ignore.h
libgit2/include/git2/attr.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/attr.h
libgit2/include/git2/blame.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/blame.h
libgit2/include/git2/oidarray.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/oidarray.h
libgit2/include/git2/pack.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/pack.h
libgit2/include/git2/revert.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/revert.h
libgit2/include/git2/version.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/version.h
libgit2/include/git2/odb.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/odb.h
libgit2/include/git2/status.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/status.h
libgit2/include/git2/net.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/net.h
libgit2/include/git2/tag.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/tag.h
libgit2/include/git2/annotated_commit.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/annotated_commit.h
libgit2/include/git2/config.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/config.h
libgit2/include/git2/branch.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/branch.h
libgit2/include/git2/types.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/types.h
libgit2/include/git2/repository.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/repository.h
libgit2/include/git2/clone.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/clone.h
libgit2/include/git2/global.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/global.h
libgit2/include/git2/blob.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/blob.h
libgit2/include/git2/cherrypick.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/cherrypick.h
libgit2/include/git2/mailmap.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/mailmap.h
libgit2/include/git2/submodule.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/submodule.h
libgit2/include/git2/errors.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/errors.h
libgit2/include/git2/message.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/message.h
libgit2/include/git2/merge.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/merge.h
libgit2/include/git2/pathspec.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/pathspec.h
libgit2/include/git2/tree.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/tree.h
libgit2/include/git2/odb_backend.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/odb_backend.h
libgit2/include/git2/graph.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/graph.h
libgit2/include/git2/describe.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/describe.h
libgit2/include/git2/rebase.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/rebase.h
libgit2/include/git2/worktree.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/worktree.h
libgit2/include/git2/stash.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/stash.h
libgit2/include/git2/remote.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/remote.h
libgit2/include/git2/strarray.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/strarray.h
libgit2/include/git2/reflog.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/reflog.h
libgit2/include/git2/cred_helpers.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/cred_helpers.h
libgit2/include/git2/buffer.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/buffer.h
libgit2/include/git2/diff.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/diff.h
libgit2/include/git2/sys/index.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/index.h
libgit2/include/git2/sys/config.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/config.h
libgit2/include/git2/sys/path.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/path.h
libgit2/include/git2/sys/repository.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/repository.h
libgit2/include/git2/sys/openssl.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/openssl.h
libgit2/include/git2/sys/merge.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/merge.h
libgit2/include/git2/sys/stream.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/stream.h
libgit2/include/git2/sys/odb_backend.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/odb_backend.h
libgit2/include/git2/sys/reflog.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/reflog.h
libgit2/include/git2/sys/diff.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/diff.h
libgit2/include/git2/sys/transport.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/transport.h
libgit2/include/git2/sys/hashsig.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/hashsig.h
libgit2/include/git2/sys/refs.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/refs.h
libgit2/include/git2/sys/filter.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/filter.h
libgit2/include/git2/sys/alloc.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/alloc.h
libgit2/include/git2/sys/mempack.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/mempack.h
libgit2/include/git2/sys/commit.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/commit.h
libgit2/include/git2/sys/refdb_backend.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/sys/refdb_backend.h
libgit2/include/git2/trace.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/trace.h
libgit2/include/git2/common.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/common.h
libgit2/include/git2/proxy.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/proxy.h
libgit2/include/git2/indexer.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/indexer.h
libgit2/include/git2/refspec.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/refspec.h
libgit2/include/git2/notes.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/notes.h
libgit2/include/git2/deprecated.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/deprecated.h
libgit2/include/git2/transport.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/transport.h
libgit2/include/git2/revwalk.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/revwalk.h
libgit2/include/git2/patch.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/patch.h
libgit2/include/git2/object.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/object.h
libgit2/include/git2/checkout.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/checkout.h
libgit2/include/git2/apply.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/apply.h
libgit2/include/git2/revparse.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/revparse.h
libgit2/include/git2/refs.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/refs.h
libgit2/include/git2/reset.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/reset.h
libgit2/include/git2/filter.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/filter.h
libgit2/include/git2/transaction.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/transaction.h
libgit2/include/git2/stdint.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/stdint.h
libgit2/include/git2/commit.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/commit.h
libgit2/include/git2/refdb.h => /var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include/git2/refdb.h
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = Some("clang")
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = Some("-I/usr/local/include")
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
running: "clang" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "-I/usr/local/include" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include" "-I" "libgit2/src" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libssh2-sys-871ec7427f5054cf/out/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" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/build/libgit2/src/commit_list.o" "-c" "libgit2/src/commit_list.c"
cargo:warning=In file included from libgit2/src/commit_list.c:8:
cargo:warning=In file included from libgit2/src/commit_list.h:10:
cargo:warning=In file included from libgit2/src/common.h:80:
cargo:warning=libgit2/src/errors.h:24:31: error: unknown type name 'pcre_regex_t'
cargo:warning=int git_error_set_regex(const p_regex_t *regex, int error_code);
cargo:warning=                              ^
cargo:warning=libgit2/src/posix_regex.h:26:20: note: expanded from macro 'p_regex_t'
cargo:warning=# define p_regex_t pcre_regex_t
cargo:warning=                   ^
cargo:warning=1 error generated.
exit code: 1
running: "clang" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "-I/usr/local/include" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include" "-I" "libgit2/src" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libssh2-sys-871ec7427f5054cf/out/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" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/build/libgit2/src/merge_driver.o" "-c" "libgit2/src/merge_driver.c"
cargo:warning=In file included from libgit2/src/merge_driver.c:8:
cargo:warning=In file included from libgit2/src/merge_driver.h:10:
cargo:warning=In file included from libgit2/src/common.h:80:
cargo:warning=libgit2/src/errors.h:24:31: error: unknown type name 'pcre_regex_t'
cargo:warning=int git_error_set_regex(const p_regex_t *regex, int error_code);
cargo:warning=                              ^
cargo:warning=libgit2/src/posix_regex.h:26:20: note: expanded from macro 'p_regex_t'
cargo:warning=# define p_regex_t pcre_regex_t
cargo:warning=                   ^
cargo:warning=1 error generated.
exit code: 1

--- stderr
fatal: not a git repository (or any of the parent directories): .git

error occurred: Command "clang" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "-I/usr/local/include" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/include" "-I" "libgit2/src" "-I" "libgit2/deps/http-parser" "-I" "libgit2/deps/pcre" "-I" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libssh2-sys-871ec7427f5054cf/out/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" "/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7/release/build/libgit2-sys-ff20836d70be61ce/out/build/libgit2/src/commit_list.o" "-c" "libgit2/src/commit_list.c" with args "clang" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `c2rust v0.14.0 (https://github.com/immunant/c2rust.git#0b2fb27b)`, intermediate artifacts can be found at `/var/folders/b7/nymcq7m94llgw53bzx_b17840000gn/T/cargo-installEZ2sk7`

Caused by:
  build failed
dignifiedquire commented 4 years ago

Note: I installed 0.13.0 without any issues

thedataking commented 4 years ago

Thanks for the report @dignifiedquire! I can't reproduce it on my mac but it looks like there's a problem picking up pcre or pcre2 from libgit2 on your host. I've bumped our dependency on cargo (which transitively depends on libgit2-sys) in this branch: feature/cargo-0.44. Can you check if building off that branch fixes the build error you are getting?

dignifiedquire commented 4 years ago

@thedataking that branch worked perfectly 👌 thank you