Skip to content

Instantly share code, notes, and snippets.

@v-bus
Created August 29, 2020 18:40
Show Gist options
  • Save v-bus/f9593bcc59c89b14cdc94a56ecc50dfb to your computer and use it in GitHub Desktop.
Save v-bus/f9593bcc59c89b14cdc94a56ecc50dfb to your computer and use it in GitHub Desktop.
nanoservices/v-bus-patch2 build error
Step 8/8 : RUN cd ~; git clone https://github.com/dmerkushov/nanoservices.git; cd nanoservices; mkdir build; cd build; cmake .. ; sudo /usr/share/zookeeper/bin/zkServer.sh start; cmake --build . ; cpack ; echo "echo 'Please start zookeper before you go further:'" >> ~/.bashrc ; echo "sudo /usr/share/zookeeper/bin/zkServer.sh start" >> ~/.bashrc
---> Running in f2f295a45f3f
Cloning into 'nanoservices'...
-- 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
-- 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
Preparing ns-skeleton build as a part of global nanoservices build
Sources: src/NsException.cpp;src/NsMonitoring.cpp;src/NsRpcExecutor.cpp;src/NsRpcRequest.cpp;src/NsRpcResponse.cpp;src/NsRpcResponseError.cpp;src/NsSerializer.cpp;src/NsSkelConfiguration.cpp;src/NsSkeleton.cpp;src/NsSkelJson.cpp;src/NsSkelRpcHttpServer.cpp;src/NsSkelRpcRegistry.cpp;src/NsSkelRpcReplier.cpp;src/NsSkelRpcReplierInterface.cpp;src/NsSkelRpcServer.cpp;src/NsSkelRpcService.cpp;src/NsSkelUtils.cpp;src/NsUtils.cpp;src/ConfigValidator.cpp;src/CVInvalidType.cpp;src/CVNoNodeData.cpp;src/CVTooManyChildren.cpp;src/CVTooLongData.cpp;src/NsCmdLineParameters.cpp;src/NsSkelLoopWorkerInterface.cpp;src/zoo_config/ZooConfig.cpp
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find CxxTest (missing: CXXTEST_INCLUDE_DIR CXXTEST_PYTHON_TESTGEN_EXECUTABLE)
Sources: main.cpp
ns-shutdown: Will link ns-shutdown with /home/deploy/nanoservices/build/ns-skeleton/libns-skeleton.so
Preparing ns-tests build as a part of global nanoservices build
Sources: main.cpp;testing.cpp;testing.h;testBase64.cpp;testBase64.h;testExceptionThrowThrough.cpp;testExceptionThrowThrough.h;testBrokenWrite.cpp;testBrokenWrite.h
ns-tests: Will link ns-tests with /home/deploy/nanoservices/build/ns-skeleton/libns-skeleton.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/deploy/nanoservices/build
ZooKeeper JMX enabled by default
Using config: /etc/zookeeper/conf/zoo.cfg
Starting zookeeper ... STARTED
Scanning dependencies of target ns-skeleton
[ 2%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsException.cpp.o
[ 4%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsMonitoring.cpp.o
[ 6%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsRpcExecutor.cpp.o
[ 8%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsRpcRequest.cpp.o
[ 10%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsRpcResponse.cpp.o
[ 12%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsRpcResponseError.cpp.o
[ 14%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSerializer.cpp.o
[ 17%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelConfiguration.cpp.o
[ 19%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkeleton.cpp.o
/home/deploy/nanoservices/ns-skeleton/src/NsSkeleton.cpp:176:46: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix]
constexpr std::chrono::milliseconds operator ""ms(unsigned long long ms)
^~~~
[ 21%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelJson.cpp.o
[ 23%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcHttpServer.cpp.o
[ 25%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcRegistry.cpp.o
[ 27%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcReplier.cpp.o
[ 29%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcReplierInterface.cpp.o
[ 31%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcServer.cpp.o
[ 34%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelRpcService.cpp.o
[ 36%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelUtils.cpp.o
[ 38%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsUtils.cpp.o
[ 40%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/ConfigValidator.cpp.o
[ 42%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/CVInvalidType.cpp.o
[ 44%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/CVNoNodeData.cpp.o
[ 46%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/CVTooManyChildren.cpp.o
[ 48%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/CVTooLongData.cpp.o
[ 51%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsCmdLineParameters.cpp.o
[ 53%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/NsSkelLoopWorkerInterface.cpp.o
[ 55%] Building CXX object ns-skeleton/CMakeFiles/ns-skeleton.dir/src/zoo_config/ZooConfig.cpp.o
[ 57%] Linking CXX shared library libns-skeleton.so
[ 57%] Built target ns-skeleton
Scanning dependencies of target ns-configurator
[ 59%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/main.cpp.o
[ 61%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/NsException.cpp.o
[ 63%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/NsSkelJson.cpp.o
[ 65%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/NsUtils.cpp.o
[ 68%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/ConfigValidator.cpp.o
[ 70%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/CVInvalidType.cpp.o
[ 72%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/CVNoNodeData.cpp.o
[ 74%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/CVTooManyChildren.cpp.o
[ 76%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/CVTooLongData.cpp.o
[ 78%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/NsCmdLineParameters.cpp.o
[ 80%] Building CXX object misc/ns-configurator/CMakeFiles/ns-configurator.dir/__/__/ns-skeleton/src/zoo_config/ZooConfig.cpp.o
[ 82%] Linking CXX executable ns-configurator
[ 82%] Built target ns-configurator
Scanning dependencies of target ns-shutdown
[ 85%] Building CXX object misc/ns-shutdown/CMakeFiles/ns-shutdown.dir/main.cpp.o
[ 87%] Linking CXX executable ns-shutdown
[ 87%] Built target ns-shutdown
Scanning dependencies of target ns-tests
[ 89%] Building CXX object ns-tests/CMakeFiles/ns-tests.dir/main.cpp.o
In file included from /home/deploy/nanoservices/ns-tests/main.cpp:15:0:
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:100:27: error: 'MyResult' was not declared in this scope
virtual std::shared_ptr <MyResult> processRequest(std::shared_ptr <MyArgs> args) {
^~~~~~~~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:100:35: error: template argument 1 is invalid
virtual std::shared_ptr <MyResult> processRequest(std::shared_ptr <MyArgs> args) {
^
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:100:69: error: 'MyArgs' was not declared in this scope
virtual std::shared_ptr <MyResult> processRequest(std::shared_ptr <MyArgs> args) {
^~~~~~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:100:69: note: suggested alternative: 'LogArgs'
virtual std::shared_ptr <MyResult> processRequest(std::shared_ptr <MyArgs> args) {
^~~~~~
LogArgs
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:100:75: error: template argument 1 is invalid
virtual std::shared_ptr <MyResult> processRequest(std::shared_ptr <MyArgs> args) {
^
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h: In member function 'virtual int nanoservices::tests::testExceptionThrowThrough::TestExceeptionThrowThrough_Replier::processRequest(int)':
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:103:45: error: base operand of '->' is not a pointer
std::cout << "Replier: params: i=" << args->i << ", j=" << args->j << std::endl;
^~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:103:66: error: base operand of '->' is not a pointer
std::cout << "Replier: params: i=" << args->i << ", j=" << args->j << std::endl;
^~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:109:20: error: 'MyResult' was not declared in this scope
std::shared_ptr <MyResult> result = std::make_shared<MyResult>();
^~~~~~~~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:109:28: error: template argument 1 is invalid
std::shared_ptr <MyResult> result = std::make_shared<MyResult>();
^
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:109:66: error: no matching function for call to 'make_shared<MyResult>()'
std::shared_ptr <MyResult> result = std::make_shared<MyResult>();
^
In file included from /usr/include/c++/7/memory:81:0,
from /home/deploy/nanoservices/ns-skeleton/include/NsSerializer.h:30,
from /home/deploy/nanoservices/ns-skeleton/include/NsMonitoring.h:37,
from /home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:29,
from /home/deploy/nanoservices/ns-tests/main.cpp:15:
/usr/include/c++/7/bits/shared_ptr.h:703:5: note: candidate: template<class _Tp, class ... _Args> std::shared_ptr<_Tp> std::make_shared(_Args&& ...)
make_shared(_Args&&... __args)
^~~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:703:5: note: template argument deduction/substitution failed:
In file included from /home/deploy/nanoservices/ns-tests/main.cpp:15:0:
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:119:9: error: base operand of '->' is not a pointer
result->o = args->i + 1;
^~
/home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:119:19: error: base operand of '->' is not a pointer
result->o = args->i + 1;
^~
In file included from /home/deploy/nanoservices/ns-tests/main.cpp:17:0:
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h: At global scope:
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:78:52: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
virtual std::shared_ptr<std::string> methodName() throw(nanoservices::NsException) {
^~~~~
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:83:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
processRequest(std::shared_ptr<TestBrokenWrite_A_Args> args) throw(nanoservices::NsException) {
^~~~~
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:78:39: error: looser throw specifier for 'virtual std::shared_ptr<std::__cxx11::basic_string<char> > nanoservices::tests::testBrokenWrite::TestBrokenWrite_A_Replier::methodName() throw (nanoservices::NsException)'
virtual std::shared_ptr<std::string> methodName() throw(nanoservices::NsException) {
^~~~~~~~~~
In file included from /home/deploy/nanoservices/ns-skeleton/include/NsSkeleton.h:36:0,
from /home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:30,
from /home/deploy/nanoservices/ns-tests/main.cpp:15:
/home/deploy/nanoservices/ns-skeleton/include/NsSkelRpcReplierInterface.h:41:40: error: overriding 'virtual std::shared_ptr<std::__cxx11::basic_string<char> > nanoservices::NsSkelRpcReplierInterface::methodName() noexcept'
virtual std::shared_ptr<std::string> methodName() noexcept(true) = 0;
^~~~~~~~~~
In file included from /home/deploy/nanoservices/ns-tests/main.cpp:17:0:
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:119:52: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
virtual std::shared_ptr<std::string> methodName() throw(nanoservices::NsException) {
^~~~~
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:124:63: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
processRequest(std::shared_ptr<TestBrokenWrite_B_Args> args) throw(nanoservices::NsException) {
^~~~~
/home/deploy/nanoservices/ns-tests/testBrokenWrite.h:119:39: error: looser throw specifier for 'virtual std::shared_ptr<std::__cxx11::basic_string<char> > nanoservices::tests::testBrokenWrite::TestBrokenWrite_B_Replier::methodName() throw (nanoservices::NsException)'
virtual std::shared_ptr<std::string> methodName() throw(nanoservices::NsException) {
^~~~~~~~~~
In file included from /home/deploy/nanoservices/ns-skeleton/include/NsSkeleton.h:36:0,
from /home/deploy/nanoservices/ns-tests/testExceptionThrowThrough.h:30,
from /home/deploy/nanoservices/ns-tests/main.cpp:15:
/home/deploy/nanoservices/ns-skeleton/include/NsSkelRpcReplierInterface.h:41:40: error: overriding 'virtual std::shared_ptr<std::__cxx11::basic_string<char> > nanoservices::NsSkelRpcReplierInterface::methodName() noexcept'
virtual std::shared_ptr<std::string> methodName() noexcept(true) = 0;
^~~~~~~~~~
make[2]: *** [ns-tests/CMakeFiles/ns-tests.dir/main.cpp.o] Error 1
ns-tests/CMakeFiles/ns-tests.dir/build.make:62: recipe for target 'ns-tests/CMakeFiles/ns-tests.dir/main.cpp.o' failed
CMakeFiles/Makefile2:271: recipe for target 'ns-tests/CMakeFiles/ns-tests.dir/all' failed
Makefile:151: recipe for target 'all' failed
make[1]: *** [ns-tests/CMakeFiles/ns-tests.dir/all] Error 2
make: *** [all] Error 2
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: nanoservices
CPack Error: Problem running install command: /usr/bin/cmake --build . --target "preinstall"
Please check /home/deploy/nanoservices/build/_CPack_Packages/Linux/DEB/PreinstallOutput.log for errors
CPack Error: Error when generating package: nanoservices-zoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment