mmbot nelze nainstalovat
medy75 opened this issue · comments
Postupoval jsem podle install.md, skončil jsem na krou "make all" s následující chybou. Zkoušeno ve VirtualBoxu na čisté instalaci Ubuntu 19.04.
jaroslav@jaroslav:~/mmbot$ make all
Scanning dependencies of target simpleServer
[ 1%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/abstractStream.cpp.o
[ 2%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/asyncProvider.cpp.o
[ 4%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/base64.cpp.o
[ 5%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/chunkedStream.cpp.o
[ 6%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/common.cpp.o
[ 8%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/exceptions.cpp.o
[ 9%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_client.cpp.o
[ 11%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_dynpathmap.cpp.o
[ 12%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_filemapper.cpp.o
[ 13%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_headers.cpp.o
[ 15%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_hostmapping.cpp.o
[ 16%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_parser.cpp.o
[ 18%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_pathmapper.cpp.o
[ 19%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_server.cpp.o
[ 20%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/address.cpp.o
[ 22%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/fileStream.cpp.o
[ 23%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/linuxService.cpp.o
[ 25%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/netEventDispatcher.cpp.o
[ 26%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/realpath.cpp.o
[ 27%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/ssl_socket.cpp.o
[ 29%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStream.cpp.o
[ 30%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStreamFactory.cpp.o
[ 31%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/query_parser.cpp.o
[ 33%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/sha1.cpp.o
[ 34%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/threadPoolAsync.cpp.o
/home/jaroslav/mmbot/src/server/src/simpleServer/threadPoolAsync.cpp: In member function ‘virtual void simpleServer::ThreadPoolAsyncImpl::runAsync(const simpleServer::AsyncResource&, int, const CompletionFn&)’:
/home/jaroslav/mmbot/src/server/src/simpleServer/**threadPoolAsync.cpp:136:12: error: catching polymorphic type ‘class simpleServer::OutOfSpaceException’ by value [-Werror=catch-value=]
} catch (OutOfSpaceException) {
^~~~~~~~~~~~~~~~~~~**
cc1plus: all warnings being treated as errors
make[2]: *** [src/server/src/simpleServer/CMakeFiles/simpleServer.dir/build.make:375: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/threadPoolAsync.cpp.o] Chyba 1
make[1]: *** [CMakeFiles/Makefile2:141: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/all] Chyba 2
make: *** [Makefile:130: all] Chyba 2
Zkuste pullnout včetně git submodule update
= jedná se zřejmě o nový typ warningu v novém gcc, a protože jsou vynuceny jako chyby, neprošlo to dál. Opravil jsem to zde ondra-novak/simpleServer@3d0c55d
zkusím to později v Ubuntu 19.
Kdyžtak zkuste make -k all
to vypíše všechny chyb, ne jen tu první
Udělal jsem pull a pustil to s přepínačem -k
Z logu jsem udělal Gist, protože je dost dlouhý.
https://gist.github.com/medy75/5fd6d828bfe805f5567b9d67fd3f5938
jo, zkusím to překládat v GCC-8. Já mám všude sedmičky
Zkus to pullnout teď i se submoduly
Bot úspěšně nainstalován a spuštěn. Díky
ja taky diky