-
Notifications
You must be signed in to change notification settings - Fork 127
"YCM-Generator/fake-toolchain/Unix/clang" is not able to compile a simple test program #19
Comments
Can you provide a link to the repo you're running it against? |
I think I have an idea what the problem might be. You're running NixOS, right? The fake toolchain assumes the existence of So there's basically two things that need to be done:
|
Can you checkout the |
That's right. Sorry I don't mean to cause you trouble since I'm running a non-standard distro. Hopefully there is a way to do things so that it works in a standard way for all distros and other POSIX-compliant systems. This change got me past the previous error. Now I'm getting something different - cmake is not finding any dependencies. For comparison, I also include what it looks like when I run cmake normally without YCM-Generator.
And here is a normal cmake run in the same environment:
|
Sorry about the delay in replying - I'm in the middle of my exams atm so free time is scarce.
It's cool, all the changes so far have made the code more portable rather than just adding special cases, so I don't mind. Can you see if using |
Nice, that worked. Apologies for not noticing and trying the By the way, in case you're curious, here's the config I ended up using: It's not the output of YCM-Generator, although the YCM-Generator template was a good starting point that I used. I ended up going with a hybrid of using cmake's generated compile_commands.json and for some reason on NixOS I needed to give YCM the path to stdlib.h and friends. So I did that by executing |
IIRC, the reason BTW, you might want to figure out which variable is the relevant one, since that'll probably cause problems for you at some stage due to Nix being so different. |
The text was updated successfully, but these errors were encountered: