2014-10-19 68 views
0

我有一個加密貨幣,我一直在努力。它基於cryptonote參考代碼。當我在Travis Ci中運行構建時,它失敗了。我無法弄清楚錯誤在引用什麼。編譯時加密貨幣給出錯誤

https://travis-ci.org/DarkLordJack/Leaknote

https://github.com/DarkLordJack/Leaknote

cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../.. 
-- The C compiler identification is GNU 
-- The CXX compiler identification is GNU 
-- Check for working C compiler: /usr/bin/gcc 
-- Check for working C compiler: /usr/bin/gcc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Check for working CXX compiler: /usr/bin/g++ 
-- Check for working CXX compiler: /usr/bin/g++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Boost version: 1.53.0 
-- Found the following Boost libraries: 
-- system 
-- filesystem 
-- thread 
-- date_time 
-- chrono 
-- regex 
-- serialization 
-- program_options 
-- Found PythonInterp: /usr/bin/python (found version "2.7.3") 
-- Looking for include files CMAKE_HAVE_PTHREAD_H 
-- Looking for include files CMAKE_HAVE_PTHREAD_H - not found. 
-- Could NOT find Threads (missing: Threads_FOUND) 
-- Configuring done 
-- Generating done 
-- Build files have been written to: /home/travis/build/DarkLordJack/Leaknote/build/release 
cd build/release && make 
make[1]: Entering directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make[2]: Entering directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make[3]: Entering directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
[35m[1mScanning dependencies of target version 
[0mmake[3]: Leaving directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
[ 0%] Built target version 
make[3]: Entering directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
[35m[1mScanning dependencies of target upnpc-static 
[0mmake[3]: Leaving directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make[3]: Entering directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
[ 1%] [32mBuilding C object external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o 
[0mcc1: error: -Werror=maybe-uninitialized: no option -Wmaybe-uninitialized 
cc1: error: unrecognized command line option ‘-std=c11’ 
make[3]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/igd_desc_parse.c.o] Error 1 
make[3]: Leaving directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make[2]: *** [external/miniupnpc/CMakeFiles/upnpc-static.dir/all] Error 2 
make[2]: Leaving directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make[1]: *** [all] Error 2 
make[1]: Leaving directory `/home/travis/build/DarkLordJack/Leaknote/build/release' 
make: *** [build-release] Error 2 
travis_time:end:02672e82:start=1412981945917913452,finish=1412981946890632511,duration=972719059 
[0K 
[31;1mThe command "make" exited with 2.[0m 
Done. Your build exited with 1. 

回答

0

這意味着你的G ++版本不認可的選項-std=c11-Wmaybe-uninitialized - 換句話說,你的編譯器太舊。不承認-std=c11一定很古老。

+0

我正在用gcc編譯它而不是G ++我試着將gcc從4.6更新到4.8,我仍然得到錯誤。 – 2014-10-19 23:36:42