brianp / muxed

Another TMUX project manager
MIT License
59 stars 3 forks source link

Travis OSX Builds are failing #34

Closed brianp closed 5 years ago

brianp commented 5 years ago

System Info

OS: Mac OSX 10.13.3 Muxed Version: MASTER @ 41e7bceb984b95e49b87db29634788ecd5481814 Running in: Travis

Description

OSX builds in travis are failing with error:

error: linker `x86_64-apple-darwin14-clang` not found
  |
  = note: No such file or directory (os error 2)
error: aborting due to previous error
error: Could not compile `libc`.

I believe this is because the cargo config .cargo/config files points the apple-darwin target to a clang linker that doesn't exist. The travis system uses the x86_64-apple-darwin17-clang linker.

[target.x86_64-apple-darwin]
linker = "x86_64-apple-darwin14-clang"

We should probably not commit the cargo config to allow for OS defaults. And have the OSX docker cross compiler generate the config file internally. Or optionally overwrite the desired setting in travis.

Steps to reproduce

Expected

It passes.

Actual

It errors out.

Stacktrace

$ cargo build --verbose
   Compiling libc v0.2.49
       Fresh quote v0.3.15
     Running `rustc --crate-name build_script_build /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=8d6815381988d0cd -C extra-filename=-8d6815381988d0cd --out-dir /Users/travis/build/brianp/muxed/target/debug/build/libc-8d6815381988d0cd -C linker=x86_64-apple-darwin14-clang -L dependency=/Users/travis/build/brianp/muxed/target/debug/deps --cap-lints allow`
       Fresh void v1.0.2
       Fresh unicode-xid v0.0.4
       Fresh serde v0.8.23
       Fresh utf8-ranges v1.0.0
       Fresh regex-syntax v0.4.0
   Compiling lazy_static v0.2.4
     Running `rustc --crate-name lazy_static /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-0.2.4/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ee8b007376f7af6d -C extra-filename=-ee8b007376f7af6d --out-dir /Users/travis/build/brianp/muxed/target/debug/deps -C linker=x86_64-apple-darwin14-clang -L dependency=/Users/travis/build/brianp/muxed/target/debug/deps --cap-lints allow`
   Compiling strsim v0.6.0
     Running `rustc --crate-name strsim /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.6.0/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=82682e8fc0d9abaa -C extra-filename=-82682e8fc0d9abaa --out-dir /Users/travis/build/brianp/muxed/target/debug/deps -C linker=x86_64-apple-darwin14-clang -L dependency=/Users/travis/build/brianp/muxed/target/debug/deps --cap-lints allow`
error: linker `x86_64-apple-darwin14-clang` not found
  |
  = note: No such file or directory (os error 2)
error: aborting due to previous error
error: Could not compile `libc`.
Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.49/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=8d6815381988d0cd -C extra-filename=-8d6815381988d0cd --out-dir /Users/travis/build/brianp/muxed/target/debug/build/libc-8d6815381988d0cd -C linker=x86_64-apple-darwin14-clang -L dependency=/Users/travis/build/brianp/muxed/target/debug/deps --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...