This formula cannot be built with any available compilers #23580
Comments
The error message is correct. This will be another issue. However, as you've posted no debugging information we're unable to help further. Please read this: https://github.com/mxcl/homebrew/wiki/Troubleshooting |
I've posted all the debugging information I get from One thing I've noticed, there's no LLVM-GCC line in the output of Other formulas (for example, postgresql) build fine, and my system is raring to brew. |
Can you paste the output of |
Here it is: http://gist.github.com/lifepillar/7153442. Anyway, I've got MariaDB to build with I remember that, in these cases, Homebrew used to spit a warning along the lines: “this formula is reported not to build with clang; please, try --use-llvm or --use-gcc”. This is what I expected to see in this case, too. |
Very strange. @mistydemeo This seems like it may be an edge case? |
I've just learned that Apple has dropped LLVM-GCC from Xcode 5 (https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_5_0.html). I was able to build MariaDB “by chance”, because in the past I had manually installed llvm-gcc-4.2 in
(Interestingly enough, upgrading from 10.8 to 10.9 did not remove those symlinks and the llvm-gcc-4.2 directory.) I have now deleted those symlinks and tried to build MariaDB again with Maybe, llvm-gcc could be added to Homebrew to let all formulas that don't build on Clang to continue to work? Would that be possible without creating a mess? Think about formulas B and C, both depending on formula A; formula B builds with Clang, but formula C requires |
Interesting that Homebrew didn't pick up on those links for
We already include an apple-gcc42 formula for the same use case! llvm-gcc is a modified version of gcc-4.2, so from your perspective there's not really a reason to prefer llvm-gcc.
This is definitely a mess, but unfortunately there's not much we can do about it until authors fix their software with clang. :/ Since Apple only ships clang now, it's the compiler we'll be preferring going forward. |
That's fine. Shouldn't be better to drop, or at least deprecate,
I'm pretty sure that in the past I had built a few formulas with gcc, but I've never had those conflicts between libc++ and libstdc++ that I'm seeing now that I'm re-installing on 10.9. Have I been just lucky or something has changed in 10.9 that causes those errors? |
We've kept it around for the sake of users on older OS X versions whose Xcodes don't include gcc-4.2, but do include llvm-gcc.
10.9 changed the default C++ standard library. On 10.8 and below, clang's default was libstdc++, so it was compatible with Apple-provided GCCs. On 10.9 it's now libc++. |
I also just ran into this. After installing apple-gcc42, I was able to successfully install mariadb - ==> Summary |
Ok, so |
Actually, it's just |
Correct. It was failing for me earlier because I had messed up with my system. |
I've got the error “This formula cannot be built with any available compilers” for a couple of formulas since I have upgraded to OS X Mavericks. So, I have decided to re-install Homebrew from scratch. Now, I'm getting that error when trying to install mariadb:
Installing apple-gcc42 does not fix it (I think the error message is misleading).
My
brew --config
:I have installed the Xcode command-line tools, too. Am I missing some other step?
The text was updated successfully, but these errors were encountered: