You are not logged in.

#1 2016-03-29 16:19:41

claudiogc
Member
Registered: 2015-06-16
Posts: 108

Problem with software installation. Linking with `cc` failed.

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 status

error: 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

#2 2016-03-31 01:26:01

claudiogc
Member
Registered: 2015-06-16
Posts: 108

Re: Problem with software installation. Linking with `cc` failed.

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

#3 2016-03-31 02:07:20

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Problem with software installation. Linking with `cc` failed.

If you used makepkg to make a package you should just install that package and it will put everything in the right place.

Offline

#4 2016-03-31 02:51:33

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Problem with software installation. Linking with `cc` failed.

Offline

#5 2016-03-31 03:45:47

claudiogc
Member
Registered: 2015-06-16
Posts: 108

Re: Problem with software installation. Linking with `cc` failed.

circleface wrote:

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

#6 2016-03-31 04:46:56

claudiogc
Member
Registered: 2015-06-16
Posts: 108

Re: Problem with software installation. Linking with `cc` failed.

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

#7 2016-03-31 04:54:49

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Problem with software installation. Linking with `cc` failed.

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.

Offline

#8 2016-03-31 06:28:07

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Problem with software installation. Linking with `cc` failed.

Moving to AUR issues.

Offline

Board footer

Powered by FluxBB