{"action":"closed","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1699","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1699/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1699/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1699/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1699","id":107812799,"number":1699,"title":"Got an error while building with CMake -Python2.7.a: error adding symbols","user":{"login":"isacikgoz","id":2153367,"avatar_url":"https://avatars.githubusercontent.com/u/2153367?v=3","gravatar_id":"","url":"https://api.github.com/users/isacikgoz","html_url":"https://github.com/isacikgoz","followers_url":"https://api.github.com/users/isacikgoz/followers","following_url":"https://api.github.com/users/isacikgoz/following{/other_user}","gists_url":"https://api.github.com/users/isacikgoz/gists{/gist_id}","starred_url":"https://api.github.com/users/isacikgoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isacikgoz/subscriptions","organizations_url":"https://api.github.com/users/isacikgoz/orgs","repos_url":"https://api.github.com/users/isacikgoz/repos","events_url":"https://api.github.com/users/isacikgoz/events{/privacy}","received_events_url":"https://api.github.com/users/isacikgoz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T22:09:47Z","updated_at":"2015-09-23T11:14:45Z","closed_at":"2015-09-23T11:14:45Z","body":"Hi,\r\n\r\nFirst of all, thank you for developing this kind of application to improve our productivity. I am new to Linux environment and new to vim as well. \r\n\r\nI am trying to use YCM but i cannot build it at the moment. I got an error at 90% while building with CMake. The error was:\r\n\r\n`/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC\r\n/usr/local/lib/libpython2.7.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake[3]: *** [/home/ibrahim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so] Error 1\r\nmake[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2\r\nmake[1]: *** [ycm/CMakeFiles/ycm_support_libs.dir/rule] Error 2\r\nmake: *** [ycm_support_libs] Error 2\r\n`<addr>`\r\n\r\nEventually i built YCM, after that i get some error from vim\r\n\r\n`Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\nTraceback (most recent call last):\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n  File \"<string>\", line 30, in <module>\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n  File \"/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py\", line 32, in <module>\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n    from ycm.omni_completer import OmniCompleter\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n  File \"/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/omni_completer.py\", line 22, in <module>\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n    from ycmd.completers.completer import Completer\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n  File \"/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../third_party/ycmd/ycmd/completers/completer.py\", line 25, in <module>\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\n    from ycm_client_support import FilterAndSortCandidates\r\nPress ENTER or type command to continue\r\nError detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython:\r\nline   34:\r\nImportError: /home/ibrahim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_client_support.so: undefined symbol: PyUnicodeUCS2_FromEncoded\r\nObject\r\n`<addr>`"}}