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

M-x rtags-install failed with letest rtags #1066

Closed novakboskov closed 6 years ago

novakboskov commented 6 years ago

Please mark appropriate

Problem description

M-x rtags-install has failed to compile rtags at latest version.

Expected behavior

Expect to compile.

Actual behavior

Building process has failed in compilation stage with the following output:

Downloading rtags from https://andersbakken.github.io/rtags-releases/rtags-2.14.tar.bz2

###                                                                        4.7%
#############                                                             18.6%
###################                                                       27.1%
#############################                                             40.4%
#####################################                                     51.8%
############################################                              62.2%
###########################################################               82.1%
#####################################################################     96.2%
######################################################################## 100.0%
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- llvm-config executable found: /usr/bin/llvm-config
-- Using Clang version 5.0.0 from /usr/lib with CXXFLAGS -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- Found LibClang: /usr/lib/libclang.so  
-- Performing Test LIBCLANG_COMPILES
-- Performing Test LIBCLANG_COMPILES - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for CLOCK_MONOTONIC_RAW
-- Looking for CLOCK_MONOTONIC_RAW - found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - not found
-- Looking for inotify_init
-- Looking for inotify_init - found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for epoll_wait
-- Looking for epoll_wait - found
-- Looking for select
-- Looking for select - found
-- Looking for FD_CLOEXEC
-- Looking for FD_CLOEXEC - found
-- Looking for SO_NOSIGPIPE
-- Looking for SO_NOSIGPIPE - not found
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for GetLogicalProcessorInformation
-- Looking for GetLogicalProcessorInformation - not found
-- Looking for SCHED_IDLE
-- Looking for SCHED_IDLE - found
-- Looking for SHM_DEST
-- Looking for SHM_DEST - found
-- Performing Test HAVE_STATMTIM
-- Performing Test HAVE_STATMTIM - Success
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.0f") 
-- Performing Test HAVE_CXX11
-- Performing Test HAVE_CXX11 - Success
-- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR
-- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR - Success
-- Performing Test HAVE_STRING_ITERATOR_ERASE
-- Performing Test HAVE_STRING_ITERATOR_ERASE - Success
-- The following OPTIONAL packages have been found:

 * ZLIB
 * OpenSSL
 * PkgConfig, helper tool, <https://www.freedesktop.org/wiki/Software/pkg-config/>
   We use it to get the bash completion installation path, and replace the prefix with the value of CMAKE_INSTALL_PREFIX.

-- The following REQUIRED packages have been found:

 * LibClang

-- Configuring done
-- Generating done
-- Build files have been written to: /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14
Scanning dependencies of target rtags
[  1%] Building CXX object src/CMakeFiles/rtags.dir/ClangIndexer.cpp.o
[  2%] Building CXX object src/CMakeFiles/rtags.dir/ClangThread.cpp.o
[  3%] Building CXX object src/CMakeFiles/rtags.dir/ClassHierarchyJob.cpp.o
[  5%] Building CXX object src/CMakeFiles/rtags.dir/CompilerManager.cpp.o
[  6%] Building CXX object src/CMakeFiles/rtags.dir/CompletionThread.cpp.o
[  7%] Building CXX object src/CMakeFiles/rtags.dir/DependenciesJob.cpp.o
[  9%] Building CXX object src/CMakeFiles/rtags.dir/FileManager.cpp.o
[ 10%] Building CXX object src/CMakeFiles/rtags.dir/FindFileJob.cpp.o
[ 11%] Building CXX object src/CMakeFiles/rtags.dir/FindSymbolsJob.cpp.o
[ 12%] Building CXX object src/CMakeFiles/rtags.dir/FollowLocationJob.cpp.o
[ 14%] Building CXX object src/CMakeFiles/rtags.dir/IncludeFileJob.cpp.o
[ 15%] Building CXX object src/CMakeFiles/rtags.dir/IndexMessage.cpp.o
[ 16%] Building CXX object src/CMakeFiles/rtags.dir/IndexParseData.cpp.o
[ 18%] Building CXX object src/CMakeFiles/rtags.dir/IndexerJob.cpp.o
[ 19%] Building CXX object src/CMakeFiles/rtags.dir/JobScheduler.cpp.o
[ 20%] Building CXX object src/CMakeFiles/rtags.dir/ListSymbolsJob.cpp.o
[ 22%] Building CXX object src/CMakeFiles/rtags.dir/Location.cpp.o
[ 23%] Building CXX object src/CMakeFiles/rtags.dir/Preprocessor.cpp.o
[ 24%] Building CXX object src/CMakeFiles/rtags.dir/ProcThread.cpp.o
[ 25%] Building CXX object src/CMakeFiles/rtags.dir/Project.cpp.o
/home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.cpp: In function ‘String formatDiagnostics(const Diagnostics&, Flags<QueryMessage::Flag>, Set<unsigned int>&&)’:
/home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.cpp:586:43: error: ‘Value::Value(Value::Type)’ is private within this context
         checkStyle = Value(Value::Type_Map);
                                           ^
In file included from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Symbol.h:29:0,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/RTags.h:44,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/IndexerJob.h:21,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.h:24,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.cpp:16:
/home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/rct/rct/Value.h:152:14: note: declared private here
     explicit Value(Type t) : mType(t) {}
              ^~~~~
/home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.cpp:608:67: error: ‘Value::Value(Value::Type)’ is private within this context
             checkStyle[Location::path(f)] = Value(Value::Type_List);
                                                                   ^
In file included from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Symbol.h:29:0,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/RTags.h:44,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/IndexerJob.h:21,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.h:24,
                 from /home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/Project.cpp:16:
/home/novak/.emacs.d/elpa/rtags-20171006.1343/rtags-2.14/src/rct/rct/Value.h:152:14: note: declared private here
     explicit Value(Type t) : mType(t) {}
              ^~~~~
make[2]: *** [src/CMakeFiles/rtags.dir/build.make:519: src/CMakeFiles/rtags.dir/Project.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1277: src/CMakeFiles/rtags.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Environment

tbrantseg commented 6 years ago

Same error occurs on Mac OS X 10.12.6 with clang 3.7.1.

bradprob commented 6 years ago

The same error with debian testing.

tbrantseg commented 6 years ago

Well, I got it to build for now by moving this line in rct/Value.h to the public section: explicit Value(Type t) : mType(t) {}

Andersbakken commented 6 years ago

I've fixed it now. I had a bug in my release script that didn't properly pick up on changes in submodules.

Thanks for the report and sorry about the bug.

On Sun, Oct 8, 2017 at 10:06 AM, Tom Brantseg notifications@github.com wrote:

Well, I got it to build for now by moving this line in rct/Value.h to the public section: explicit Value(Type t) : mType(t) {}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/1066#issuecomment-335021217, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEdSiwGcnjh-hVZxapveiY7WUZ5GaM2ks5sqQEkgaJpZM4PxVyj .

novakboskov commented 6 years ago

@Andersbakken Looks good. I'm closing this issue.

Thank you for your work on RTags! :)