[Fixed] Depends_on 'llvm@4' => :build fails on TravisCI (el_capitan)


(Nat!) #1

I have this problem in a TravisCI script. TravisCI runs OS X el_capitan. When I use depends_on 'llvm' => :build in my formula on TravisCI, I get llvm 3.9. But I need llvm 4.0. On my yosemite desktop I can say brew install llvm@4 and that works. So I hoped depends_on 'llvm@4' => :build would fix this on Travis, but it didn’t.
I also tried homebrew/versions/llvm@4 with no success.

Unfortunately I don’t have a el_capitan machine and Travis doesn’t support yosemite, so it’s tricky to debug. Does anybody have a suggestion ?

Edit1: a friend tried brew search llvm@4 on his el_capitan and to my surprise it worked. Will recheck Travis again for more clues.

Edit2: Travis Log

instance: 7ad8659d-2a3e-4a5b-aa9e-b3ba6146bf51:travis-ci-osx10.11-xcode7.3-1480691248

$ brew install mulle-kybernetik/software/mulle-objc-developer
==> Tapping mulle-kybernetik/software
Cloning into '/usr/local/Homebrew/Library/Taps/mulle-kybernetik/homebrew-software'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 27 (delta 13), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (27/27), done.
Tapped 24 formulae (74 files, 54.6K)
==> Installing mulle-objc-developer from mulle-kybernetik/software
==> Tapping codeon-gmbh/software
Cloning into '/usr/local/Homebrew/Library/Taps/codeon-gmbh/homebrew-software'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Tapped 1 formula (30 files, 27.3K)
Error: No available formula with the name "llvm@4" (dependency of mulle-kybernetik/software/mulle-objc-developer)
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
The command "brew install mulle-kybernetik/software/mulle-objc-developer" failed and exited with 1 during .

Your build has been stopped.

Edit3: The problem could be fixed, by adding a manual “brew update”. Apparently the default brew is to old, and doesn’t know versioning. Also there was a warning Disabling Homebrew auto update. If your Homebrew package requires Homebrew DB be up to date, please run "brew update" explicitly. :grimacing:

Thx
Nat!