Nick
Nick

Reputation: 9041

How to fix brew Warning: Calling fails_with :llvm is deprecated

When I upgrade software in homebrew, I got the following warning:

➜  ~ brew upgrade
Warning: Calling fails_with :llvm is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/formula.rb:2373:in `fails_with'

I guess this issue has some relation with julia programming language I installed a few weeks ago, but julia has been removed. How can I fix this problem?

Update:

Problem solved by ➜ ~ brew list | grep julia | xargs brew remove

Thanks a lot for @bfontaine's hints.

Upvotes: 1

Views: 2828

Answers (2)

lambfrier
lambfrier

Reputation: 837

I had the same error, but from a different formula (a deprecated vpnc installed on an old computer).

A generic solution for others without julia who've also found this problem is to find the formulae with the deprecated compiler:

grep -R "fails_with :llvm" $(brew --cellar)
brew remove #{formula from above} 

(These are instructions for the answer in https://github.com/Homebrew/homebrew-services/issues/131. Credit to bfontaine's initial comments, but that was looking at taps)

Upvotes: 2

bfontaine
bfontaine

Reputation: 19835

This is due to the staticfloat/julia tap (= a third-party repository for additional formulae) you had to use in order to install Julia. You uninstalled Julia but kept the tap, so those errors are still there.

The tap authors are aware of the issue and removed those fails_with calls today; you should be fine after a brew update.

Given you don’t need that tap anymore you might also want to remove it:

brew untap staticfloat/julia

Upvotes: 1

Related Questions