-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Irony-install server failure #135
Comments
That is not an error but a (scary?) warning. It looks like libclang.dylib may not be in your path (ld.so.conf on Linux, on Mac OS X I have no idea). If you have such error you can try to build reinstall irony-server with this additional flags: |
|
I tried to add this addtional line to it by
|
A similar issue regarding the Maybe it's time to ask the brew guys? Regarding your command, you didn't add the argument at the right place. Try the following command in the irony-install-server prompt:
@sevki: did you ever managed to get irony-server working with homebrew? |
Thanks I don't think it's working at this moment, followed by your line I have:
In the mean time I will try to find another way to install llvm. |
Can you tell me where |
To be honest I don't know, I tried to reinstall the llvm via brew and this is what I have: If you already have LLVM installed, then "brew upgrade llvm" might not work. This formula is keg-only, which means it was not symlinked into /usr/local. Mac OS X already provides this software and installing another version in Generally there are no consequences of this for you. If you build your
|
What I don't understand is that llvm is installed in /usr/local/Cellar/llvm/3.5.0/ or something like that, but here it seems to be usr/local/opt/llvm/. Do you have multiple versions of LLVM? |
Home brew does ln -s type stuff — On Wed, Nov 12, 2014 at 4:20 PM, Guillaume Papin notifications@github.com
|
I managed to build it, ycm downloads libclang precompiled from somewhere so that came in handy. I'll repeat my self a little here but this project lacks a homebrew package so llvm updates sometimes break this and hence its not a dependency it doesn't get tested in homebrew's tests |
I don't think I have multiple version of llvm |
@chester755 you probably do since commandline tools is required for homebrew and commandline tools is simply apple's llvm toolchain. and if you have ever done brew upgrade you might have more then 2 versions, homebrew symlinks new versions to /usr/local/opt/llvm/ after removing the oldones, which is how it manages to keep multiple versions of packages |
@sevki Ahh ok, so how am I suppose to resolve this multiple version issues? Shall I just uninstall the brew one, since there is a mac default one installed? If I uninstall brew one, and trying to do irony-install-server, it says it can't find libclang anywhere. |
1-- mode: compilation; default-directory: "~/.emacs.d/irony/build/" -- This is what happened after I have uninstall the llvm from brew |
The cmake build directory has to be cleaned (I will do it automatically in irony-install-server someday as it may be confusing. Please, when you change your llvm installation/settings, remove the
And call irony-install-server again. |
Sorry about the mess, I have deleted everything and here is what I have:
|
Please try CMake with the additional argument: You need llvm 3.5.0 from homebrew of course. |
This is the output
|
You didn't add the Please install with the following command (after deleting
|
1-- mode: compilation; default-directory: "~/.emacs.d/irony/build/" -- |
@chester755
It rewrites the data of dynamic linker of libclang to specify full path of libLLVM-3.5 instead of using rpath. |
@tsukimizake i have changed that |
So can you try to rebuild and retest irony-server? |
1-- mode: compilation; default-directory: "~/.emacs.d/irony/build/" -- |
41 I think it's working now |
Nice, thanks @tsukimizake. Should homebrew or Clang be fixed? |
Thanks guys, you are wizards |
@Sarcasm |
Great, thank you. Please let me know when it's posted I may update irony-mode's FAQ to link to it or put something in the Wiki. Best, |
Closing this, hopefully the Homebrew guys will do something about it. It is now shortly documented in the Wifi at least.
@sevki: I understand the problem but the right thing to do after giving it some thoughts was to package irony-server with the Emacs package manager instead of a system package manager. Since it's a mode for C++ I'm assuming people have the necessary tools to build irony-server. I just wished I was using this platform so that I would have a better understanding of what to do, in the meantime I will rely on volunteers to make this better. Actually I believe it could be packaged without too much difficulties. What I'm not sure is how the other projects such as company-irony should be installed. |
I think I am experiencing an error related to this, but when I use the |
Here is the error messages i have when I tried to irony-in stall-server.
I am currently using Mac OS v10.9.5, with cmake version 3.0.0 and LLVM built from brew.
Thanks
Chester
The text was updated successfully, but these errors were encountered: