我有一个加密货币,我一直在努力。它基于密码子干扰代码。当我在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 :(得分:0)
这意味着您的G ++版本无法识别选项-std=c11
和-Wmaybe-uninitialized
- 换句话说,您的编译器太旧了。不承认-std=c11
一定很古老。