Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

rdm reports errors on archlinux arm64 and unable to find symbols #1417

Closed Damenly closed 3 years ago

Damenly commented 3 years ago

Describe the bug Hey, thanks for the great project first. Recently I moved my workspace to an arm64 kvm but rtags seems not working. It runs fine on small project excluding the Linux kernel.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/torvalds/linux && cd linux && git checkout v5.13-rc1
  2. copy .config to linux directory
  3. bear -- make -j8
  4. rc -J .
  5. rc -F $some_symbol

Expected behavior A clear and concise description of what you expected to happen.

Screenshots/Backtrace | [ 10%] 628/6164 13:50:50 ~/linux/block/bsg.c error in 18ms. (dirty). (priority 2) Query opened 0 files for project /root/linux/ [ 10%] 629/6164 13:50:50 ~/linux/crypto/md5.c error in 15ms. (dirty). (priority 2) Query opened 0 files for project /root/linux/ [ 10%] 630/6164 13:50:50 ~/linux/fs/nls/nls_cp1250.c error in 12ms. (dirty). (priority 2) Query opened 0 files for project /root/linux/ [ 10%] 631/6164 13:50:50 ~/linux/fs/autofs/dev-ioctl.c error in 20ms. (dirty). (priority 2) Query opened 0 files for project /root/linux/ Finish output from /root/linux/block/bsg.c CI::parse loading unit: clang "-Wp,-MMD,block/.bsg.o.d" "-nostdinc" "-mlittle-endian" "-fmacro-prefix-map=./=" "-Wall" "-Wundef" "-Werror=strict-prototypes" "-Wno-trigraph$ Failed to parse clang "-Wp,-MMD,block/.bsg.o.d" "-nostdinc" "-mlittle-endian" "-fmacro-prefix-map=./=" "-Wall" "-Wundef" "-Werror=strict-prototypes" "-Wno-trigraphs" "-fno$

Finish output from /root/linux/fs/nls/nls_cp1250.c

Environment (please complete the following information):

Additional context .config compile_commands.json log are attached: https://drive.google.com/file/d/1MaehJd1-dFsue8ymSucegCayBH8iHowG/view?usp=sharing

Damenly commented 3 years ago

Reminder: call bear -- make CC=clang -j8 to compile linux then rtags works.