Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

rust formula breaks when xcode 5 developer preview clang is installed #20585

Closed
@cartazio

Description

@cartazio
carter ~ » brew upgrade rust                                                1 ↵
==> Upgrading 1 outdated package, with result:
rust 0.6
==> Upgrading rust
==> Downloading http://static.rust-lang.org/dist/rust-0.6.tar.gz
Already downloaded: /Library/Caches/Homebrew/rust-0.6.tar.gz
==> ./configure --prefix=/usr/local/Cellar/rust/0.6 --enable-clang
configure: CFG_XETEX            :=  
configure: CFG_LUATEX           :=  
configure: CFG_NODE             :=  
configure: CFG_GDB              := /usr/bin/gdb (GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb  6 22:51:23 UTC 2013))
configure: error: bad CLANG version: 5.0, need >=3.0svn

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

the odd thing here is that I have a vanilla clang build via brew install llvm --with-clang installed

carter ~ » brew info llvm                                                   1 ↵
llvm: stable 3.2 (bottled), HEAD
http://llvm.org/
/usr/local/Cellar/llvm/3.2 (1187 files, 150M)
  Built from source with: --with-clang, --shared, --all-targets
/usr/local/Cellar/llvm/HEAD (1219 files, 170M) *
  Built from source with: --with-clang, --shared, --all-targets
https://github.com/mxcl/homebrew/commits/master/Library/Formula/llvm.rb
==> Options
--all-targets
    Build all target backends
--disable-assertions
    Speeds up LLVM, but provides less debug information
--disable-shared
    Don't build LLVM as a shared library
--rtti
    Build with C++ RTTI
--universal
    Build a universal binary
--with-asan
    Include support for -faddress-sanitizer (from compiler-rt)
--with-clang
    Build Clang C/ObjC/C++ frontend
--without-python
    Build without python support
==> Caveats
Extra tools are installed in /usr/local/Cellar/llvm/3.2/share/llvm and /usr/local/Cellar/llvm/3.2/share/clang.

and linked into my path (here's my "proof")

arter ~ » which clang                                                      1 ↵
/usr/local/bin/clang
carter ~ » clang --version
clang version 3.4 
Target: x86_64-apple-darwin12.4.0
Thread model: posix
carter ~ » brew unlink llvm 
Unlinking /usr/local/Cellar/llvm/HEAD... 170 links removed
carter ~ » which clang
/usr/bin/clang
carter ~ » clang --version
Apple LLVM version 5.0 (clang-500.1.58) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
carter ~ » 

I suspect the issue is that somehow Rust has the clang path hardcoded in for mac? I'm not sure... I'll also open a ticket on their side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions