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

Build failing on OSX #28

Closed
bvssvni opened this issue Dec 5, 2014 · 2 comments · Fixed by rust-lang/cc-rs#10
Closed

Build failing on OSX #28

bvssvni opened this issue Dec 5, 2014 · 2 comments · Fixed by rust-lang/cc-rs#10

Comments

@bvssvni
Copy link

bvssvni commented Dec 5, 2014

rustc 0.13.0-nightly (5484d6f6d 2014-12-02 00:22:00 +0000)

$gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Failed to run custom build command for `time v0.1.0 (file:///Users/sven/rust/time)`
Process didn't exit successfully: `/Users/sven/rust/time/target/build/time-0835b624bcc96b1e/build-script-build` (status=101)
--- stderr
task '<main>' panicked at 'Environment variable 'HOST' is unset', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:325
@bvssvni
Copy link
Author

bvssvni commented Dec 5, 2014

This might be related to rust-lang/cc-rs@9420532

bvssvni added a commit to bvssvni/gcc-rs that referenced this issue Dec 5, 2014
Instead of using “gcc” it fails, so by using `Result` instead of
`Option` the error message can be returned instead of causing task
panic.

Fixes time-rs/time#28
@ArtemGr
Copy link

ArtemGr commented Dec 5, 2014

I see that error on Linux/Debian/Jessie as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants