Skip to content

Instantly share code, notes, and snippets.

@v-bus
Created September 2, 2020 09:12
Show Gist options
  • Save v-bus/b4076182e6affc018bf62b9c9acf3386 to your computer and use it in GitHub Desktop.
Save v-bus/b4076182e6affc018bf62b9c9acf3386 to your computer and use it in GitHub Desktop.
v-bus-path2-log2
[ 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;
^~~~~~~~~~
ns-tests/CMakeFiles/ns-tests.dir/build.make:62: recipe for target 'ns-tests/CMakeFiles/ns-tests.dir/main.cpp.o' failed
make[2]: *** [ns-tests/CMakeFiles/ns-tests.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:271: recipe for target 'ns-tests/CMakeFiles/ns-tests.dir/all' failed
make[1]: *** [ns-tests/CMakeFiles/ns-tests.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
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
Removing intermediate container a646880bcc39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment