@themodernis I checked against commmit and it's working fine.
PKGBUILD supposed to be updated and refer to libvterm no libvterm-0.1
Git Clone URL: | https://aur.archlinux.org/neovim-git.git (read-only, click to copy) |
---|---|
Package Base: | neovim-git |
Description: | Fork of Vim aiming to improve user experience, plugins, and GUIs |
Upstream URL: | https://neovim.io |
Keywords: | editor |
Licenses: | custom:neovim |
Conflicts: | neovim |
Provides: | neovim, vim-plugin-runtime |
Submitter: | fhahn |
Maintainer: | Farzat (gpanders) |
Last Packager: | gpanders |
Votes: | 257 |
Popularity: | 1.17 |
First Submitted: | 2014-02-21 19:50 (UTC) |
Last Updated: | 2024-09-04 00:24 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 40 Next › Last »
@themodernis I checked against commmit and it's working fine.
PKGBUILD supposed to be updated and refer to libvterm no libvterm-0.1
With this commit, libvterm has been bumped to 0.3 and soon the minimum version will be bumped to 0.2
Perhaps change the dependency to just libvterm
instead of specifying libvterm-0.1
?
You can avoid the need to independently build libvterm-0.1
by depending on libvterm01
from community and adding the following line to build()
:
export PKG_CONFIG_PATH="/usr/lib/libvterm01/pkgconfig"
Your problem is the crap you have in /usr/local/ that's not compatible with the rest of of the system.
==> Starting build()...
-- The C compiler identification is GNU 12.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/jo/.cache/yay/neovim-git/src/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_fc32c/fast && /usr/bin/make -f CMakeFiles/cmTC_fc32c.dir/build.make CMakeFiles/cmTC_fc32c.dir/build
make[1]: Entering directory '/home/jo/.cache/yay/neovim-git/src/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fc32c.dir/testCCompiler.c.o
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -o CMakeFiles/cmTC_fc32c.dir/testCCompiler.c.o -c /home/jo/.cache/yay/neovim-git/src/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_fc32c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fc32c.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now CMakeFiles/cmTC_fc32c.dir/testCCompiler.c.o -o cmTC_fc32c
/usr/local/bin/ld: /usr/lib/libc.so.6: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /usr/lib/libc.so.6 when searching for /usr/lib/libc.so.6
/usr/local/bin/ld: cannot find /usr/lib/libc.so.6
/usr/local/bin/ld: /usr/lib/libc.so.6: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /usr/lib/libc.so.6 when searching for /usr/lib/libc.so.6
/usr/local/bin/ld: /usr/lib/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /usr/lib/ld-linux-x86-64.so.2 when searching for /usr/lib/ld-linux-x86-64.so.2
/usr/local/bin/ld: cannot find /usr/lib/ld-linux-x86-64.so.2
/usr/local/bin/ld: /usr/lib/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /usr/lib/ld-linux-x86-64.so.2 when searching for /usr/lib/ld-linux-x86-64.so.2
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_fc32c.dir/build.make:99: cmTC_fc32c] Error 1
make[1]: Leaving directory '/home/jo/.cache/yay/neovim-git/src/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_fc32c/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
I'm gettting this error now any idea how to fix that?
Might I suggest the following diff as the breaking changes channel moved to the issue tracker:
--- neovim-git.install 2022-06-29 23:13:15.026592320 +0200
+++ neovim-git.install-1 2022-06-29 23:14:02.226289376 +0200
@@ -12,5 +12,5 @@
post_upgrade() {
echo ":: Check the following page to see whether this upgrade"
echo " includes any breaking changes:"
- echo " https://github.com/neovim/neovim/wiki/Following-HEAD"
+ echo " https://github.com/neovim/neovim/issues/14090"
}
Hello.
I am using Manjaro and it fails because of libvterm:
error: target not found: libvterm-0.1
And sure enough that version is no longer available in the repositories
pacman -Ss libvterm
community/libvterm 0.2-1
Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
community/libvterm01 0.1.4-2 [installed]
Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
So I tried to replace libvterm-0.1
by libvterm01
in PKGBUILD, but no good:
CMake Error at cmake/LibFindMacros.cmake:263 (message):
REQUIRED PACKAGE NOT FOUND
We could not find development headers for LIBVTERM. Do you have the
necessary dev package installed? This package is REQUIRED and you need to
install it or adjust CMake configuration in order to continue building
nvim.
Relevant CMake configuration variables:
LIBVTERM_INCLUDE_DIR=<not found>
LIBVTERM_LIBRARY=<not found>
You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.
Call Stack (most recent call first):
cmake/FindLIBVTERM.cmake:10 (libfind_process)
CMakeLists.txt:504 (find_package)
If I clone the neovim repo and run make CMAKE_BUILD_TYPE=RelWithDebInfo
it works.
gperf is no longer required: https://github.com/neovim/neovim/pull/18544
Based on the conversation here: https://github.com/neovim/neovim/issues/18235#issuecomment-1117343466 the final result of the build "might" not use the luajit specified in the Neovim build scripts.
This is the part of the PKGBUILD file I came up with, that matches the Neovim's build instructions:
build() {
cd "${srcdir}/${pkgname}"
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=/usr"
}
check() {
cd "${srcdir}/${pkgname}/build"
./bin/nvim --version
./bin/nvim --headless -u NONE -i NONE -c ':quit'
}
package() {
cd "${srcdir}/${pkgname}/build"
DESTDIR="${pkgdir}" cmake --build . --target install
cd "${srcdir}/${pkgname}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
install -Dm644 runtime/nvim.desktop "${pkgdir}/usr/share/applications/nvim.desktop"
install -Dm644 runtime/nvim.png "${pkgdir}/usr/share/pixmaps/nvim.png"
# Make Arch vim packages work
mkdir -p "${pkgdir}"/etc/xdg/nvim
echo "\" This line makes pacman-installed global Arch Linux vim packages work." > "${pkgdir}"/etc/xdg/nvim/sysinit.vim
echo "source /usr/share/nvim/archlinux.vim" >> "${pkgdir}"/etc/xdg/nvim/sysinit.vim
mkdir -p "${pkgdir}"/usr/share/vim
echo "set runtimepath+=/usr/share/vim/vimfiles" > "${pkgdir}"/usr/share/nvim/archlinux.vim
}
I'd just stay on libvterm-0.1 for now to avoid adding these hacks. Removed dependency on libutf8proc, thanks for pointing that out.
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)