{"action":"opened","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/481","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/481/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/481/events","html_url":"https://github.com/Andersbakken/rtags/issues/481","id":113084242,"number":481,"title":"Failing to build with link errors on OSX 10.10.5","user":{"login":"sbroberg","id":10091254,"avatar_url":"https://avatars.githubusercontent.com/u/10091254?v=3","gravatar_id":"","url":"https://api.github.com/users/sbroberg","html_url":"https://github.com/sbroberg","followers_url":"https://api.github.com/users/sbroberg/followers","following_url":"https://api.github.com/users/sbroberg/following{/other_user}","gists_url":"https://api.github.com/users/sbroberg/gists{/gist_id}","starred_url":"https://api.github.com/users/sbroberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbroberg/subscriptions","organizations_url":"https://api.github.com/users/sbroberg/orgs","repos_url":"https://api.github.com/users/sbroberg/repos","events_url":"https://api.github.com/users/sbroberg/events{/privacy}","received_events_url":"https://api.github.com/users/sbroberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-23T19:24:21Z","updated_at":"2015-10-23T19:24:21Z","closed_at":null,"body":"I'm following the instructions on the main page, but running into a link error.  My steps:\r\n\r\n    brew install homebrew/versions/llvm36 --with-libcxx --with-clang --without-assertions --rtti --with-asan --with-lldb --with-lld --with-all-targets    \r\n\r\n    git clone https://github.com/Andersbakken/rtags.git --recursive\r\n    cd rtags\r\n    mkdir build\r\n    cd build\r\n    LIBCLANG_LLVM_CONFIG_EXECUTABLE=/usr/local/bin/llvm-config-3.6 /Volumes/CarboniteToolChain/bin/cmake ..\r\n    -- The C compiler identification is Clang 6.1.0\r\n    -- The CXX compiler identification is Clang 6.1.0\r\n    -- Check for working C compiler: /usr/bin/clang\r\n    -- Check for working C compiler: /usr/bin/clang -- works\r\n    -- Detecting C compiler ABI info\r\n    -- Detecting C compiler ABI info - done\r\n    -- Check for working CXX compiler: /usr/bin/clang++\r\n    -- Check for working CXX compiler: /usr/bin/clang++ -- works\r\n    -- Detecting CXX compiler ABI info\r\n    -- Detecting CXX compiler ABI info - done\r\n    -- llvm-config executable found: /usr/local/bin/llvm-config-3.6\r\n    -- Using Clang version 3.6.2 from /usr/local/Cellar/llvm36/3.6.2/lib/llvm-3.6/lib with CXXFLAGS -I/usr/local/Cellar/llvm36/3.6.2/lib/llvm-3.6/include  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  \r\n    -- Found LibClang: /usr/local/Cellar/llvm36/3.6.2/lib/llvm-3.6/lib/libclang.dylib  \r\n    -- Found Curses: /usr/lib/libcurses.dylib  \r\n    -- Looking for backtrace\r\n    -- Looking for backtrace - found\r\n    -- Looking for CLOCK_MONOTONIC_RAW\r\n    -- Looking for CLOCK_MONOTONIC_RAW - not found\r\n    -- Looking for CLOCK_MONOTONIC\r\n    -- Looking for CLOCK_MONOTONIC - not found\r\n    -- Looking for mach_absolute_time\r\n    -- Looking for mach_absolute_time - found\r\n    -- Looking for inotify_init\r\n    -- Looking for inotify_init - not found\r\n    -- Looking for kqueue\r\n    -- Looking for kqueue - found\r\n    -- Looking for epoll_wait\r\n    -- Looking for epoll_wait - not found\r\n    -- Looking for select\r\n    -- Looking for select - found\r\n    -- Looking for FD_CLOEXEC\r\n    -- Looking for FD_CLOEXEC - found\r\n    -- Looking for SO_NOSIGPIPE\r\n    -- Looking for SO_NOSIGPIPE - found\r\n    -- Looking for MSG_NOSIGNAL\r\n    -- Looking for MSG_NOSIGNAL - not found\r\n    -- Looking for GetLogicalProcessorInformation\r\n    -- Looking for GetLogicalProcessorInformation - not found\r\n    -- Looking for SCHED_IDLE\r\n    -- Looking for SCHED_IDLE - not found\r\n    -- Looking for SHM_DEST\r\n    -- Looking for SHM_DEST - not found\r\n    OS X version 10.10.5\r\n    -- Using FSEvents\r\n    -- Performing Test HAVE_STATMTIM\r\n    -- Performing Test HAVE_STATMTIM - Failed\r\n    -- Found ZLIB: /usr/lib/libz.dylib (found version \"1.2.5\") \r\n    -- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib (found version \"0.9.8zg\") \r\n    -- Performing Test HAVE_CXX11\r\n    -- Performing Test HAVE_CXX11 - Success\r\n    -- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR\r\n    -- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR - Success\r\n    Copying files from /Users/stebro/.emacs.d-new/rtags/bin to /Users/stebro/.emacs.d-new/rtags/build/bin\r\n    -- \r\n    -- The following OPTIONAL packages have been found:\r\n    \r\n     * ZLIB\r\n     * OpenSSL\r\n    \r\n    -- The following REQUIRED packages have been found:\r\n    \r\n     * LibClang\r\n     * Curses\r\n    \r\n    -- Configuring done\r\n    -- Generating done\r\n    -- Build files have been written to: /Users/stebro/.emacs.d-new/rtags/build\r\n    \r\n    make\r\n\r\n   ...\r\n\r\n    Linking CXX executable ../bin/rdm\r\n    Undefined symbols for architecture x86_64:\r\n      \"_launch_activate_socket\", referenced from:\r\n          Server::initUnixServer() in Server.cpp.o\r\n    ld: symbol(s) not found for architecture x86_64\r\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n    make[2]: *** [bin/rdm] Error 1\r\n    make[1]: *** [src/CMakeFiles/rdm.dir/all] Error 2\r\n\r\nI run into a different compilation error when trying to use emacs's el-get to install malinka, which will build and install rtags (I'm not sure how to get it to produce more informative output regarding the configuration it's using):\r\n\r\n    [ 94%] Building CXX object src/CMakeFiles/rdm.dir/StatusJob.cpp.o\r\n    [ 95%] Building CXX object src/CMakeFiles/rdm.dir/Symbol.cpp.o\r\n    /Users/stebro/.emacs.d/el-get/rtags/src/Project.cpp:495:29: error: 'severities' cannot be captured because it does not have automatic storage duration\r\n            formatDiagnostic = [severities](const Location &loc, const Diagnostic &diagnostic) {\r\n                                ^\r\n    /Users/stebro/.emacs.d/el-get/rtags/src/Project.cpp:471:24: note: 'severities' declared here\r\n        static const char *severities[] = { \"none\", \"warning\", \"error\", \"fixit\", \"skipped\" };\r\n                           ^\r\n    /Users/stebro/.emacs.d/el-get/rtags/src/Project.cpp:503:29: error: 'severities' cannot be captured because it does not have automatic storage duration\r\n            formatDiagnostic = [severities](const Location &loc, const Diagnostic &diagnostic) {\r\n                                ^\r\n    /Users/stebro/.emacs.d/el-get/rtags/src/Project.cpp:471:24: note: 'severities' declared here\r\n        static const char *severities[] = { \"none\", \"warning\", \"error\", \"fixit\", \"skipped\" };\r\n                           ^\r\n    [ 97%] Building CXX object src/CMakeFiles/rdm.dir/RTagsClang.cpp.o\r\n    2 errors generated.\r\n    make[2]: *** [src/CMakeFiles/rdm.dir/Project.cpp.o] Error 1\r\n    make[2]: *** Waiting for unfinished jobs....\r\n    make[1]: *** [src/CMakeFiles/rdm.dir/all] Error 2\r\n    make: *** [all] Error 2\r\n    \r\n\r\n"}}