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.82k stars 253 forks source link

cmake hangs if rdm is in PATH #1394

Closed noscript closed 4 years ago

noscript commented 4 years ago

Describe the bug Trying to rebuild rtags while having rdm in PATH hangs at cmake step.

To Reproduce

  1. Build rtags normally:

    $ git clone --recursive https://github.com/Andersbakken/rtags.git
    $ cd rtags
    $ mkdir build
    $ cd build
    $ cmake ..
    $ make
  2. Add bin to PATH and try to rebuild rtags in a different directory:

    $ export PATH=`pwd`/bin:$PATH
    $ cd ..
    $ mkdir build2
    $ cd build2
    $ cmake ..
    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 7.5.0
    -- Check for working C compiler: /usr/bin/cc <-- HANGS
  3. Check that rdm is running and kill it:

    $ pgrep rdm
    22109
    $ kill 22109
  4. cmake continues one step further and hangs again:

    ...
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info <-- HANGS

Expected behavior Nothing hangs.

Environment:

Additional context Why there would be unsolicited rmd execution in the first place?

noscript commented 4 years ago

Never mind, the problem was on my side. I forgot about my make alias that would start rdm automatically to accommodate gcc-rtags-wrapper.sh.