Closed HandmannP closed 8 years ago
Warning: Anaconda is known to frequently break Homebrew builds, including Vim and MacVim, due to bundling many duplicates of system and Homebrew-available tools.
If you encounter a build failure please temporarily remove Anaconda from your $PATH and attempt the build again prior to reporting the failure to us. Thanks!
It'll be this. Remove it from your $PATH
temporarily and retry the build. I'd be enormously surprised if that doesn't do the trick.
I found something quite bizarre trying to build on 10.8:
mac:~ adam$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!
Warning: You are using OS X 10.8. We (and Apple) do not provide support for this old version. You may encounter build failures or other breakages. mac:~ adam$ brew install -v macvim Warning: You are using OS X 10.8. We (and Apple) do not provide support for this old version. You may encounter build failures or other breakages. ==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-98.tar.gz Already downloaded: /Library/Caches/Homebrew/macvim-7.4-98.tar.gz ==> Verifying macvim-7.4-98.tar.gz checksum tar xvf /Library/Caches/Homebrew/macvim-7.4-98.tar.gz [...] ==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Homebrew --with-local-dir=/usr/local --enable-cscope --enable-pythoninterp configure: creating cache auto/config.cache checking whether make sets $(MAKE)... yes checking for gcc... clang checking whether the C compiler works... no configure: error: in
/private/tmp/macvim20160305-5156-8ka370/macvim-snapshot-98/src': configure: error: C compiler cannot create executables See
config.log' for more details ==> Formula Path: /usr/local/Library/Formula/macvim.rb ==> Configuration HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/Homebrew/homebrew.git HEAD: ae798e68bb2e8cc338630e2c9e7395fd557542f0 Last commit: 2 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: dual-core 64-bit core2 OS X: 10.8.5-x86_64 Xcode: 5.1.1 CLT: 5.1.0.0.1.1396320587 Clang: 5.1 build 503 X11: 2.7.8 => /opt/X11 System Ruby: 1.8.7-p358 Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /Users/adam/.rbenv/shims/ruby => /Users/adam/.rbenv/versions/1.9.2-p290/bin/ruby Java: 1.8.0_31 ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ CFLAGS: -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 LDFLAGS: -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error /System/Library/Frameworks/Python.framework/Versions/2.7/Python MAKEFLAGS: -j2 CMAKE_PREFIX_PATH: /usr/local CMAKE_INCLUDE_PATH: /usr/include/libxml2 CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8 ACLOCAL_PATH: /usr/local/share/aclocal PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cscope/bin:/usr/bin:/bin:/usr/sbin:/sbinError: macvim 7.4-98 did not build
Hmm...
mac:~ adam$ brew install --interactive macvim Warning: You are using OS X 10.8. We (and Apple) do not provide support for this old version. You may encounter build failures or other breakages. ==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-98.tar.gz Already downloaded: /Library/Caches/Homebrew/macvim-7.4-98.tar.gz ==> Entering interactive mode Type `exit' to return and finalize the installation Install to this prefix: /usr/local/Cellar/macvim/7.4-98 bash-3.2$ ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Homebrew --with-local-dir=/usr/local --enable-cscope --enable-pythoninterp configure: creating cache auto/config.cache checking whether make sets $(MAKE)... yes checking for gcc... clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out [...] configure: updating cache auto/config.cache configure: creating auto/config.status config.status: creating auto/config.mk config.status: creating auto/config.h
So, configure works properly in an interactive session?
The build itself won't complete because of missing OpenGL headers on 10.8, likely implemented in a future Mac OS, but why would an interactive install work, but regular install not? I've resigned myself to using the binary, but this may help others trying to install this on a supported platform.
@Patricia2 Closing here, but please let us know if we can help further or the error reproduces again without Anaconda in the $PATH
.
@xenyz Not really sure why you're seeing an error there. We haven't had any reports of failure on 10.8 as far as I know recently, but perhaps the failing element is new in Vim. Feel free to open a new Issue if you'd like to.
@DomT4 @xenyz I think this is just http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa
As I mentioned here https://github.com/Homebrew/homebrew/pull/50191#issuecomment-197842785 the solution is to add
ENV.append "ARCHFLAGS", "=-Wno-error=unused-command-line-argument-hard-error-in-future"
or to install Homebrew Python. I suppose this should be added to the Formula with an if xcode >= 5.1 and OS <= 10.8 check.
Somehow I can't install macvim due to a missing c compiler. But i already installed gcc and gcc42 and gcc48 and linked everything. Do you have any Idea how to install macvim with latex suite and brew now??
brew install macvim
brew doctor: