ruben2020/codequery

in windows use cscope.exe to index linux kernel code hangs

Closed this issue · 1 comments

as http://ruben2020.github.io/codequery/windows-install/HOWTO-WINDOWS.txt says:
I git clone the linux kernel project (https://github.com/torvalds/linux.git).

After creating cscope.files, I use cscope -cbv to create database.
But it hangs after some time. It seems to fall into dead loop.
This is the output log.

D:\github\linux\mycodeindex>cscope -cbv
Building cross-reference...
> Building symbol database 380 of 46703
> Building symbol database 1980 of 46703
> Building symbol database 3370 of 46703
> Building symbol database 5030 of 46703
> Building symbol database 6540 of 46703
> Building symbol database 7440 of 46703
> Building symbol database 8080 of 46703
> Building symbol database 9110 of 46703
> Building symbol database 10010 of 46703
> Building symbol database 10930 of 46703
> Building symbol database 11690 of 46703
> Building symbol database 12230 of 46703
> Building symbol database 12760 of 46703
> Building symbol database 13380 of 46703
> Building symbol database 14170 of 46703
> Building symbol database 14860 of 46703
> Building symbol database 14890 of 46703
> Building symbol database 14920 of 46703
> Building symbol database 15520 of 46703
> Building symbol database 16700 of 46703
> Building symbol database 17420 of 46703
> Building symbol database 18180 of 46703
> Building symbol database 18910 of 46703
> Building symbol database 19660 of 46703
> Building symbol database 20450 of 46703
> Building symbol database 21180 of 46703
> Building symbol database 22050 of 46703
> Building symbol database 22820 of 46703
> Building symbol database 23490 of 46703
> Building symbol database 23940 of 46703
> Building symbol database 24410 of 46703
> Building symbol database 24880 of 46703
> Building symbol database 25420 of 46703
> Building symbol database 25980 of 46703
> Building symbol database 26610 of 46703
> Building symbol database 27420 of 46703
> Building symbol database 28070 of 46703
> Building symbol database 28720 of 46703
> Building symbol database 29090 of 46703
> Building symbol database 29820 of 46703
> Building symbol database 30660 of 46703
> Building symbol database 31850 of 46703
> Building symbol database 32590 of 46703
> Building symbol database 33160 of 46703
> Building symbol database 33870 of 46703
> Building symbol database 34370 of 46703
> Building symbol database 34760 of 46703
> Building symbol database 35220 of 46703
> Building symbol database 35660 of 46703
> Building symbol database 36240 of 46703
> Building symbol database 37130 of 46703
> Building symbol database 37880 of 46703
> Building symbol database 38610 of 46703
> Building symbol database 39310 of 46703
> Building symbol database 40230 of 46703
> Building symbol database 41010 of 46703
> Building symbol database 41540 of 46703
> Building symbol database 42040 of 46703
> Building symbol database 42490 of 46703
> Building symbol database 42970 of 46703
> Building symbol database 43480 of 46703
> Building symbol database 44040 of 46703
> Building symbol database 44490 of 46703
> Building symbol database 44950 of 46703
> Building symbol database 45730 of 46703
> Building symbol database 46350 of 46703


I find the reason is that some header files like aux.h is invalid in windows. So these files will be deleted by system which causes the cscope fails to build index.