YCM-Generator icon indicating copy to clipboard operation
YCM-Generator copied to clipboard

Stuck on Linux kernel (cross compilation) "fake compilation"

Open mellowcandle opened this issue 9 years ago • 3 comments

It's stuck on the following command:

/bin/sh -c set -e; echo ' CHK include/generated/timeconst.h'; mkdir -p include/generated/; ?(echo | bc -q kernel/time/timeconst.bc ) < kernel/time/timeconst.

Linux kernel version: 4.7 Cross compiling for arc.

mellowcandle avatar Sep 15 '16 13:09 mellowcandle

Cross compiling for arc.

Cross-compilation with the kernel probably won't work, since you're specifying a different toolchain through KConfig. Try either removing the toolchain setting or pointing it to the toolchain in ~/.vim/bundle/YCM-Generator/fake-toolchain/Unix/ (You might need to add some more symlinks to that folder to get it to work with your target ARCH).

rdnetto avatar Sep 21 '16 12:09 rdnetto

Hi, first of all, thanks for this tool guys!!

I've just release a YCM-Generator based tool, which basically process build log outputs and generate the corresponding compilation database file. The idea is to be faster (doesn't need a clean build or even an actual build) and more "cross-compilation friendly". I've used it successfully to index some large AOSP modules in ~1 minute and used its output with tools like YouCompleteMe, Deoplete and Rtags.

Feel free to try it out, open issues/feature requests and send PRs :)

https://github.com/nickdiego/compiledb-generator

Thanks, Nick

nickdiego avatar Aug 03 '17 00:08 nickdiego

i have exactly the same issue, make -i -j8 doesn't call make at all, it just stucks at bc -q kernel/time/timeconst.bc

jm33-m0 avatar Jan 14 '19 08:01 jm33-m0