-
Notifications
You must be signed in to change notification settings - Fork 72
neovim failed to build (SOLVED: linuxbrew issue) #154
Comments
Looks like a problem with your setup. |
but i have gcc 5.3, maybe i need to edit brew conf |
Did you ever solve this? I have the exact same problem. |
+1 |
@tinyheero @mrodrigues Have either of you tried following the troubleshooting steps mentioned above (in the output of homebrew)? Here's the url: https://github.com/Linuxbrew/brew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting Have either of you tried following the troubleshooting steps in the homebrew-neovim repo: https://github.com/neovim/homebrew-neovim#troubleshooting? This looks like it's a Linuxbrew problem, IMHO, or a libtool one. libtool is being called with the right gcc:
But libtool decided it was going to use gcc-4.8 for the link step:
Why that is happening, I don't know. Somehow, libtool is being convinced to use a different compiler. Find the source of that, and you'll likely have found the source of the problem. |
==> Installing neovim from neovim/neovim
==> Downloading https://github.com/neovim/neovim/archive/v0.1.4.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim-0.1.4.tar.gz
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-2.0.4.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Downloading http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.18.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b9288c7b0e331c7088.tar.gz
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/releases/download/4.0.2/jemalloc-4.0.2.tar.bz2
Already downloaded: /home/schizoidcock/.cache/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_LUV=OFF -DUSE_EXISTING_SRC_DIR=ON -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/home/schizoidcock/.linuxbrew/Cellar/neovim/0.1.4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1
==> make VERBOSE=1
Last 15 lines from /home/schizoidcock/.cache/Homebrew/Logs/neovim/02.make:
libtool: compile: /home/schizoidcock/.linuxbrew/bin/gcc-5 -I. -DTERMINFO_DIRS="/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo" -Wall -std=c99 -fPIC -c uniutil.c -o uniutil.o >/dev/null 2>&1
libtool --mode=link --tag=CC /home/schizoidcock/.linuxbrew/bin/gcc-5 -L/home/schizoidcock/.linuxbrew/lib -Wl,--dynamic-linker=/home/schizoidcock/.linuxbrew/lib/ld.so -Wl,-rpath,/home/schizoidcock/.linuxbrew/lib -rpath '/tmp/neovim-20160502-15316-18yh5i5/neovim-0.1.4/deps-build/usr/lib' -version-info 3:0:3 -o libunibilium.la unibilium.lo uninames.lo uniutil.lo
libtool: link: /usr/bin/gcc-4.8 -shared -fPIC -DPIC .libs/unibilium.o .libs/uninames.o .libs/uniutil.o -L/home/schizoidcock/.linuxbrew/lib -Wl,--dynamic-linker=/home/schizoidcock/.linuxbrew/lib/ld.so -Wl,-rpath -Wl,/home/schizoidcock/.linuxbrew/lib -Wl,-soname -Wl,libunibilium.so.0 -o .libs/libunibilium.so.0.3.0
/home/schizoidcock/.linuxbrew/bin/libtool: line 10548: /usr/bin/gcc-4.8: No such file or directory
Makefile:66: recipe for target 'libunibilium.la' failed
make[3]: *** [libunibilium.la] Error 127
make[3]: Leaving directory '/tmp/neovim-20160502-15316-18yh5i5/neovim-0.1.4/deps-build/build/src/unibilium'
CMakeFiles/unibilium.dir/build.make:113: recipe for target 'build/src/unibilium-stamp/unibilium-build' failed
make[2]: *** [build/src/unibilium-stamp/unibilium-build] Error 2
make[2]: Leaving directory '/tmp/neovim-20160502-15316-18yh5i5/neovim-0.1.4/deps-build'
CMakeFiles/Makefile2:148: recipe for target 'CMakeFiles/unibilium.dir/all' failed
make[1]: *** [CMakeFiles/unibilium.dir/all] Error 2
make[1]: Leaving directory '/tmp/neovim-20160502-15316-18yh5i5/neovim-0.1.4/deps-build'
Makefile:86: recipe for target 'all' failed
make: *** [all] Error 2
READ THIS: https://github.com/Linuxbrew/brew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/neovim/homebrew-neovim/issues
These open issues may also help:
Neovim failing to build with homebrew on OS X 10.9.5 #153
Can't install via homebrew-neovim if luarocks path is set explicitly #149
Error when trying to install neovim in my Ubuntu 14.04 virtual machine. #134
The text was updated successfully, but these errors were encountered: