-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Alexandre, Wouldn't it be possible in the PKGBUILD to use sed to remove /opt/android-sdk from the $PATH and export the PATH again? Regards, Philip On 09/04/2013 04:21 AM, Alexandre Ferrando wrote:
First of all, excuse me if this is not the appropriate place for this issue, didn't know where it could fit better.
Now, the issue.
As said in the title, vim-youcompleteme-git [ 0 ] does not build when android-studio [ 1 ] is installed throwing this error:
Linking CXX shared library /dev/shm/vim-youcompleteme-git/src/YouCompleteMe/python/ycm_core.so
/opt/android-sdk/build-tools/18.0.1/libclang.so: could not read symbols:
File in wrong format collect2: error: ld returned 1 exit status make[3]: *** [/dev/shm/vim-youcompleteme-git/src/YouCompleteMe/python/ycm_core.so] Error 1 make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2 make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2 make: *** [ycm_core] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
This happens because android-studio adds /opt/android-sdk to the PATH.
Building in a clean chroot or without /opt/android-sdk added to the PATH or android-studio uninstalled is ok.
This, however, does not seem the ideal situation.
I don't know if other packages are affected by this as well because I can't think of another package that links against libclang.so at the moment, but, in this case, what could be done to solve it rather than using workarounds as mentioned?
Thank you in advance
[ 0 ] https://aur.archlinux.org/packages/vim-youcompleteme-git/ [ 1 ] https://aur.archlinux.org/packages/android-studio/
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSJznxAAoJEBXbY7Xe8exMiFcH/jozh6F75PmaCaU46Z3AZoTo MsjSoxjyEKx2N+Oas/ZPpIL7ur8IdtU0VK+af5zDl/hgw9jb944dz+7bv9Ir2WOZ 3QGAZG6Zbog0foPopuidqqKnSvMMWYGR7h9lX7HuMdiY0FZQ15+hL6ZI1n48Y0fW jRPdfIWDViSLWTkb86Alp/ouzRTY159W8U3+p15H9r6ovRw7L++L7rzFN2Um/cOf scuBTGA55LgScXOWlR64FVgy374ODuLLc+eigJ7eDIe6YtFH5ugXu8iNsObBntnr /cwLfRGO94iTipI3sC8tk/0u7izRDyOO1XmevtlZf5tj22UxpDlGWBJBh0ZoYvU= =7n8Q -----END PGP SIGNATURE-----