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

Problems Installing Mac OS X 10.10.3 #67

Closed
jpscharf opened this issue Jun 3, 2015 · 3 comments
Closed

Problems Installing Mac OS X 10.10.3 #67

jpscharf opened this issue Jun 3, 2015 · 3 comments
Assignees
Labels
errors › build error exa fails to build os › macos macOS stuff

Comments

@jpscharf
Copy link

jpscharf commented Jun 3, 2015

I am unable to install:

       Fresh pkg-config v0.3.4
       Fresh unicode-width v0.1.1
       Fresh rustc-serialize v0.3.14
       Fresh matches v0.1.2
       Fresh bitflags v0.1.1
       Fresh gcc v0.3.6
       Fresh regex-syntax v0.1.2
       Fresh libc v0.1.8
       Fresh ansi_term v0.5.2
       Fresh natord v1.0.8
       Fresh pad v0.1.4
       Fresh url v0.2.35
       Fresh regex v0.1.33
       Fresh log v0.3.1
       Fresh users v0.4.1
       Fresh rand v0.3.8
       Fresh num_cpus v0.2.6
       Fresh regex_macros v0.1.19
       Fresh getopts v0.2.11
       Fresh num v0.1.25
       Fresh libz-sys v0.1.3
       Fresh openssl-sys v0.6.2
       Fresh locale v0.1.8
       Fresh number_prefix v0.2.4
       Fresh libssh2-sys v0.1.25
       Fresh datetime v0.1.7
       Fresh libgit2-sys v0.2.14 (https://github.com/alexcrichton/git2-rs.git#f63542fb)
   Compiling exa v0.2.0 (file:///Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa)
     Running `rustc src/main.rs --crate-name exa --crate-type bin -g --cfg feature="default" --cfg feature="git2" --cfg feature="git" --out-dir /Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug --emit=dep-info,link -L dependency=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug -L dependency=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps --extern bitflags=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libbitflags-518ea12e21428edd.rlib --extern pad=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libpad-f7ff424b0c22c000.rlib --extern ansi_term=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libansi_term-2be4de112eba155d.rlib --extern users=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libusers-0d78404a03744620.rlib --extern number_prefix=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnumber_prefix-a016a95baeb20bf4.rlib --extern locale=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblocale-45cfe4875a9cd89b.rlib --extern datetime=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libdatetime-82fac66cae2e6577.rlib --extern num_cpus=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib --extern natord=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnatord-03a0e75cb3de3267.rlib --extern libc=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibc-2eda841eb12a3090.rlib --extern git2=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgit2-72109471fa78f4ae.rlib --extern unicode_width=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libunicode_width-468c348f27a79727.rlib --extern getopts=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgetopts-d6ecf60df5ea72e6.rlib -L native=/Library/Frameworks -L native=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/libgit2-sys-d4081217cfcd5e19/out/lib -L native=/usr/local/Cellar/libssh2/1.5.0/lib -L native=/usr/lib -L native=/usr/local/Cellar/libssh2/1.5.0/lib -L native=/usr/lib -L native=/usr/lib -L native=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/openssl-sys-5040130ff99796a0/out`
       Fresh git2 v0.2.11 (https://github.com/alexcrichton/git2-rs.git#f63542fb)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/exa.o" "-o" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/exa" "-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a" "-Wl,-dead_strip" "-nodefaultlibs" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libansi_term-2be4de112eba155d.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libdatetime-82fac66cae2e6577.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libregex-bee3bd02b59b955b.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libregex_syntax-8db057a1d27b1529.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnumber_prefix-a016a95baeb20bf4.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblocale-45cfe4875a9cd89b.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnum-f51f78acffae6108.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/librand-b924d9fc5b3eb5b8.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgetopts-d6ecf60df5ea72e6.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libusers-0d78404a03744620.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgit2-72109471fa78f4ae.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liburl-a4f53e129e04fc84.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libbitflags-518ea12e21428edd.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/librustc_serialize-9ef26f158d5284e0.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libmatches-68db25b520030534.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libpad-f7ff424b0c22c000.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibgit2_sys-d4081217cfcd5e19.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibssh2_sys-4edc1b7b6d8a6bc4.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libopenssl_sys-5040130ff99796a0.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibz_sys-c145b8b5c75fd5a3.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibc-2eda841eb12a3090.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libunicode_width-468c348f27a79727.rlib" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnatord-03a0e75cb3de3267.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-11582ce5.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-11582ce5.rlib" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps" "-L" "/Library/Frameworks" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/libgit2-sys-d4081217cfcd5e19/out/lib" "-L" "/usr/local/Cellar/libssh2/1.5.0/lib" "-L" "/usr/lib" "-L" "/usr/local/Cellar/libssh2/1.5.0/lib" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/openssl-sys-5040130ff99796a0/out" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/.rust/lib/x86_64-apple-darwin" "-L" "/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/lib/x86_64-apple-darwin" "-l" "z" "-l" "iconv" "-l" "ssh2" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "crypto" "-l" "z" "-l" "ssh2" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "z" "-l" "c" "-l" "m" "-l" "System" "-l" "pthread" "-l" "c" "-l" "m" "-l" "compiler-rt"
note: ld: warning: directory not found for option '-L/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/.rust/lib/x86_64-apple-darwin'
ld: warning: directory not found for option '-L/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/lib/x86_64-apple-darwin'
Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _git_path_iconv in liblibgit2_sys-d4081217cfcd5e19.rlib(r-git2-path.c.o)
  "_libiconv_close", referenced from:
      _git_path_iconv_clear in liblibgit2_sys-d4081217cfcd5e19.rlib(r-git2-path.c.o)
  "_libiconv_open", referenced from:
      _git_path_iconv_init_precompose in liblibgit2_sys-d4081217cfcd5e19.rlib(r-git2-path.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `exa`.

Caused by:
  Process didn't exit successfully: `rustc src/main.rs --crate-name exa --crate-type bin -g --cfg feature="default" --cfg feature="git2" --cfg feature="git" --out-dir /Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug --emit=dep-info,link -L dependency=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug -L dependency=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps --extern bitflags=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libbitflags-518ea12e21428edd.rlib --extern pad=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libpad-f7ff424b0c22c000.rlib --extern ansi_term=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libansi_term-2be4de112eba155d.rlib --extern users=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libusers-0d78404a03744620.rlib --extern number_prefix=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnumber_prefix-a016a95baeb20bf4.rlib --extern locale=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblocale-45cfe4875a9cd89b.rlib --extern datetime=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libdatetime-82fac66cae2e6577.rlib --extern num_cpus=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib --extern natord=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libnatord-03a0e75cb3de3267.rlib --extern libc=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/liblibc-2eda841eb12a3090.rlib --extern git2=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgit2-72109471fa78f4ae.rlib --extern unicode_width=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libunicode_width-468c348f27a79727.rlib --extern getopts=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/deps/libgetopts-d6ecf60df5ea72e6.rlib -L native=/Library/Frameworks -L native=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/libgit2-sys-d4081217cfcd5e19/out/lib -L native=/usr/local/Cellar/libssh2/1.5.0/lib -L native=/usr/lib -L native=/usr/local/Cellar/libssh2/1.5.0/lib -L native=/usr/lib -L native=/usr/lib -L native=/Users/jpscharf/Dropbox/Documents/iNtergrated/Active/exa/target/debug/build/openssl-sys-5040130ff99796a0/out` (exit code: 101)
@ogham
Copy link
Owner

ogham commented Jun 3, 2015

Weird. How did you install libgit2 - Homebrew or MacPorts?

@jpscharf
Copy link
Author

jpscharf commented Aug 6, 2015

libgit2 was installed with Homebrew. Here is the verbose log of my latest run: https://gist.github.com/d964b22855b85bd84503

@ogham ogham added os › macos macOS stuff errors › build error exa fails to build labels Sep 2, 2015
@ogham ogham self-assigned this Sep 2, 2015
@ogham
Copy link
Owner

ogham commented Sep 15, 2015

This build error looks suspiciously similar to the one in rust-lang/cargo#1032, but that error was dealt with last year already. However, this wouldn't be the first time libgit2 has fought with the linker and lost, and recently (see #72) alexcrichton did something to git2-rs's build script. Please could you cross your fingers and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors › build error exa fails to build os › macos macOS stuff
Projects
None yet
Development

No branches or pull requests

2 participants