2014-10-19 5 views
0

내가 작업 한 암호 통화가 있습니다. cryptonote deference 코드를 기반으로합니다. 트래비스 Ci에서 빌드를 실행하면 실패합니다. 오류가 참조하는 것이 무엇인지 파악할 수 없습니다. 즉, 컴파일러가 너무 오래 - 컴파일 할 때 Crypto 통화에서 오류가 발생합니다.

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로 업데이트하려고 시도했지만 여전히 오류가 발생합니다. –

관련 문제