-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
mac mavericks, /usr/include/module.map|36 col 14 error| header 'float.h' not found #809
Comments
I've already checked #303 & google, but found no solution related to this issue. |
After changing my ycm_extra_conf.py, I've got another error
Maybe it's dunplicated to #749, I'll try to reinstall again. |
solved. |
How did you fix this? I'm getting all the errors you are, and I've reinstalled a few times. |
same here... |
I got it to work. You to do the long install method and not the quick one. No need to erase your current install either. Go to the link indicated and On Wed, Feb 12, 2014 at 9:25 PM, Ladislas notifications@github.com wrote:
|
that's what I did twice but with the same result. Maybe Homebrew messed up stuff, I'll check later when I get the time. |
I also used vim & cmake from homebrew On Wed, Feb 12, 2014 at 9:43 PM, Ladislas notifications@github.com wrote:
|
Me too, but I also have clang installed and after reading the comment from oblitum, I think I might have to start from scratch... |
Me too. I followed |
Maybe my explanation is not very clear...
|
@marchtea Thanks for more details. I have exactly the same environment as yours, I followed the |
@no-z-turn Here is
|
@michaelajr your .ycm_extra_conf.py misses |
@no-z-turn thanks for your reply. I added the dirs listed in the verbose output to the conf file. Still get the same problems. float.h and other headers are not found. See screen shot. Am I missing something? It works fine when I compile from the command line. |
Prob not a huge deal. I'm doing small projects for now. Just one of those oddities that I can't figure out (which rives me crazy). |
@michaelajr |
@michaelajr |
@marchtea - yes, I did the full install with the system version of clang/llvm, as well as the downloaded version of clang/llvm. Same issues. Also made sure the build was using the downloaded version. Been a long day. :) |
I'm using 10.9.1 and Xcode 5.0.2. Just can't seem to get rid of the module.map errors. Just built from scratch again, against a downloaded version of clang (3.4) and using the downloaded clang paths in the conf file - and still getting the module.map errors. |
I'll just live with it until someone else can reproduce. Does not look like there is a ready solution. Thanks for the help. |
@michealajr |
I was running into this error as well and reinstalling YCM did not fix it. I then reinstalled Xcode command line tools via |
@mcnulty good point, in the past, not ycm related, when I upgraded to Mountain Lion, that was also necessary to make the system stable again, for developing. |
So... I have not been able to fix this issue. I appreciate all the help. But I have tried all possible combinations of system clang, downloaded llvm, 3.3, 3.4, different flags and paths, etc. I can get completion. I can get error highlighting and messaging. But I can not get rid of the /usr/include/module.map errors. I reinstalled the command-line tools. I used the downloaded version of llvm both to compile YCM and in the extra conf paths in the flags, but nothing works. I'll live with it - just seems so odd. Thanks again. |
@michaelajr sad you have wasted so much time into this... by the way, I have a (very related) post about why I moved from mac, if it's an option anyway. Now I boot it in very rare situations =) |
@michaelajr Since xcode is upgraded to 5.1 recently. I have tried to reproduce the problem again. I used the full installation guide. Using downloaded llvm 3.4 will cause the same issue, but llvm 3.3 works fine. Using the system default clang also works fine.
My .ycm_extra_conf.py
|
So, uh, did anyone figure out what's actually going on here? Is it a libclang bug? |
Okay this actually looks to be an issue with how YouCompleteMe interacts with libclang. It appears libclang.dylib looks for the builtin compiler includes directory relative to itself at To fix this, install YCM as normal. Whether you use the install.sh or "full" guide should make no difference. Then download LLVM 3.4, extract it somewhere and copy its Boom. No more silly module.map errors. I'll submit a proper pull request when I have time. |
@nickhutchinson Sounds fantastic. I'll try that later. |
Can this really be?! :) Will attempt a rebuild this weekend. Thanks @nickhutchinson. |
Thank you for taking a closer look at this and providing your analysis!
Please do! If that's the actual fix I'd love to see it merged. |
PR #910 was reverted because it was breaking a lot of people; we need a more nuanced approach. |
Stuck to this problem again after update to latest YCM.
@nickhutchinson 's solution takes no effect.
|
then, strangely, later I install again using My env is latest command line tools with llvm 3.4
my flags in .ycm_extra_conf.py
|
@marchtea You've got two |
I can confirm that reinstalling using |
I resolved this successfully by following the recommendation given by @nickhutchinson except I had to copy LLVM's "lib/clang" folder to "YouCompleteMe/third_party/ycmd". In this end I had this setup:
|
Again, installing using But with xcode 5.0 will cause YCM not able to launch, it required to download the latest clang version(3.4). <--- Edit: This may caused by inconsistent Python version. Edit:
|
Using OS X... Xcode and command lines tools got updated, issue started to raise. I just,
|
same problem...but osx10.11... |
You need to include OS X system header does in your flags. See the FAQ (entry contains something like
|
@puremourning
|
I'm closing this because it is not a YCM bug or feature request (per CONTRIBUTING.md). I can't really help with your android dev question. Try asking on ycm-users. |
So this problem has come back for me (Xcode 7.2.1 on 10.11) but I'll keep digging. @oblitum your instructions sound plausible, but they are not complete. Link the Also having all these headers checked into ycmd repo sounds awful. If a clang is getting downloaded, shouldnt the download include the headers that go with the clang that got downloaded? So we should be unpacking those and referencing those, and now moving them around or changing them into a link shouldnt cause the entire repo and the parent repo to become dirty. |
You need to include the system include paths in your flags. See the FAQ about something like |
When using .ycm_extra_conf.py modified based on default version, When using
:YcmDiags
, I've got error.I suppose this is a configure issue, but I have no idea how to deal with it.
Env:
Mac OSX Mavericks 10.9.1
latest clt installed
YcmDiags output:
DebugInfo:
My .ycm_extra_conf.py
The text was updated successfully, but these errors were encountered: