You are not logged in.
I'm trying to install Vim-YouCompleteMe a code-completion engine. I downloaded snapshot here:
https://aur.archlinux.org/packages/vim- … eteme-git/
Then i runned "makepkg -s" but i'm getting the following error message:
...
...
Compiling ansi_term v0.7.1
Compiling rust-crypto v0.2.34
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "/home/rob/vim-youcompleteme-git/src/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/build/rust-crypto-daa20c09deb34369/build_script_build.0.o" "-o" "/home/rob/vim-youcompleteme-git/src/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/build/rust-crypto-daa20c09deb34369/build_script_build" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/rob/vim-youcompleteme-git/src/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/deps" "-L" "/home/rob/vim-youcompleteme-git/src/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/deps" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/rob/vim-youcompleteme-git/src/YouCompleteMe/third_party/ycmd/third_party/racerd/target/release/deps/libgcc-35300ce5fd0fa3cd.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-6a154fe0.rlib" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"
note: /usr/bin/ld: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib(jemalloc.pic.o): unrecognized relocation (0x2a) in section `.text.malloc_conf_init'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit statuserror: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `rust-crypto`.To learn more, run the command again with --verbose.
==> ERROR: A failure occurred in build().
Aborting...
Here some additional information:
cc --version
cc (GCC) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And i'm in 64bit system.
How can i fix this problem?
Thanks!
Offline
Problem fixed.
I installed "base-devel" and now the installation runned fine. I just don't know what to do now. The install manual doesn't say nothing. Where to put that "vim-youcompleteme" folder and how to make it work with vim.
Last edited by claudiogc (2016-03-31 01:29:40)
Offline
If you used makepkg to make a package you should just install that package and it will put everything in the right place.
Offline
you should read https://wiki.archlinux.org/index.php/Ar … Repository and https://wiki.archlinux.org/index.php/makepkg
Last edited by ooo (2016-03-31 02:52:33)
Offline
If you used makepkg to make a package you should just install that package and it will put everything in the right place.
Yes, as i posted in my first post, i runned "makepkg -s". Then i runned "pacman -U vim-youcompleteme-git-1763.1b76af4-1-x86_64.pkg.tar.xz". No error message on installation, but, as far as i see is not running.
Offline
I tried another installation by downloading the zip file YouCompleteMe from: https://github.com/Valloric/YouCompleteMe
I had to rename the folder from "YouCompleteMe-master" to "YouCompleteMe" and moved it to ~/.vim/bundle/
Then i did this:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
But i'm getting:
./install.py --clang-completer
File /home/rob/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py does not exist; you probably forgot to run:
git submodule update --init --recursive
Have no idea how to fix it.
My installation source:
http://vimawesome.com/plugin/youcompleteme
Offline
have you tried the suggestion given by ./install.py,
Anyway I would suggest to use AUR package/makepkg-pacman over any other install script, however you probably already know pros&cons.
Arch is home!
https://github.com/Docbroke
Offline
Moving to AUR issues.
Offline