2017-01-13 28 views
0

graph-toolの現在のgit(2.19dev)バージョンをコンパイルしようとしています。私がgcc 5.4と言うことができる限り、使用されています。私はUbuntu 16.04を実行しています。私が実行した:ノートMakefile:500: recipe for target 'graph_cairo_draw.lo' failedで失敗するように見えたメイクファイル:500:ターゲット 'graph_cairo_draw.lo'のレシピが失敗しました

git clone [email protected]:count0/graph-tool.git 
cd ./graph-tool/ 
./autogen.sh 
sudo ./configure PYTHON="/home/pmj27/anaconda/bin/python2.7" --enable-openmp 
sudo make -Wno-unused-local-typedefs 

私は(すべてのファイルを削除した後に)もう一度やり直して、configureを実行した後にconfig.logの出力を確認すると考えました。だから私は走った:

git clone [email protected]:count0/graph-tool.git 
cd ./graph-tool/ 
./autogen.sh 

返される:

libtoolize: putting auxiliary files in '.'. 
libtoolize: linking file './ltmain.sh' 
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. 
libtoolize: linking file 'm4/libtool.m4' 
libtoolize: linking file 'm4/ltoptions.m4' 
libtoolize: linking file 'm4/ltsugar.m4' 
libtoolize: linking file 'm4/ltversion.m4' 
libtoolize: linking file 'm4/lt~obsolete.m4' 
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. 
configure.ac:22: installing './compile' 
configure.ac:18: installing './config.guess' 
configure.ac:18: installing './config.sub' 
configure.ac:20: installing './install-sh' 
configure.ac:20: installing './missing' 
src/graph/Makefile.am: installing './depcomp' 
src/graph_tool/Makefile.am:3: installing './py-compile' 

を私はその後、私はconfig.logを開くことができませんでしたようsudo chmod o+rw config.log続いsudo ./configure PYTHON="/home/pmj27/anaconda/bin/python2.7" --enable-openmpを走りました。 configure画面にエラーメッセージは表示されませんでしたが、config.logは若干のエラーが発生しているようです。これらのいくつかは次のとおりです:

configure:3811: gcc -V >&5 
gcc: error: unrecognized command line option '-V' 
gcc: fatal error: no input files 
compilation terminated. 

configure:3811: gcc -qversion >&5 
gcc: error: unrecognized command line option '-qversion' 
gcc: fatal error: no input files 
compilation terminated. 

configure:4588: gcc -E conftest.c 
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory 
compilation terminated. 

残念なことに、私が探しているものが正確か、これらのエラーメッセージの意味はわかりません。誰も私にこれを手伝うことができますか?

EDIT: 問題はmakeないconfigureであると思われるコメントでアドバイスに従いこれは、元config.log sが取り付けられている。ここからのクロスポストです。私は走ったmakeコマンドが

make -Wno-unused-local-typedefs 

だったこれは、エラーのoputput以下の画面が返されました:

make all-recursive 
make[1]: Entering directory '/home/pmj27/graph-tool' 
Making all in src 
make[2]: Entering directory '/home/pmj27/graph-tool/src' 
Making all in graph 
make[3]: Entering directory '/home/pmj27/graph-tool/src/graph' 
Making all in centrality 
make[4]: Entering directory '/home/pmj27/graph-tool/src/graph/centrality' 
make[4]: Nothing to be done for 'all'. 
make[4]: Leaving directory '/home/pmj27/graph-tool/src/graph/centrality' 
Making all in clustering 
make[4]: Entering directory '/home/pmj27/graph-tool/src/graph/clustering' 
make[4]: Nothing to be done for 'all'. 
make[4]: Leaving directory '/home/pmj27/graph-tool/src/graph/clustering' 
Making all in correlations 
make[4]: Entering directory '/home/pmj27/graph-tool/src/graph/correlations' 
make[4]: Nothing to be done for 'all'. 
make[4]: Leaving directory '/home/pmj27/graph-tool/src/graph/correlations' 
Making all in draw 
make[4]: Entering directory '/home/pmj27/graph-tool/src/graph/draw' 
    CXX  graph_cairo_draw.lo 
In file included from ./../graph.hh:28:0, 
       from graph_cairo_draw.cc:18: 
./../graph_adjacency.hh:223:59: error: ‘distance_to’ function uses ‘auto’ type specifier without trailing return type 
     auto distance_to(base_edge_iterator const& other) const 
                 ^
./../graph_adjacency.hh:223:59: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_adjacency.hh: In member function ‘void boost::adj_list<Vertex>::shrink_to_fit()’: 
./../graph_adjacency.hh:367:26: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
         [](auto &es){es.shrink_to_fit();}); 
         ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:367:39: error: request for member ‘shrink_to_fit’ in ‘es’, which is of non-class type ‘int’ 
         [](auto &es){es.shrink_to_fit();}); 
            ^
./../graph_adjacency.hh: In member function ‘void boost::adj_list<Vertex>::shrink_to_fit()’: 
./../graph_adjacency.hh:369:26: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
         [](auto &es){es.shrink_to_fit();}); 
         ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:369:39: error: request for member ‘shrink_to_fit’ in ‘es’, which is of non-class type ‘int’ 
         [](auto &es){es.shrink_to_fit();}); 
            ^
./../graph_adjacency.hh: In member function ‘void boost::adj_list<Vertex>::shrink_to_fit()’: 
./../graph_adjacency.hh:372:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
             [](const auto &a, const auto& b) -> bool 
              ^
./../graph_adjacency.hh:372:62: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
             [](const auto &a, const auto& b) -> bool 
                  ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:373:48: error: request for member ‘idx’ in ‘a’, which is of non-class type ‘const int’ 
             {return a.idx < b.idx;}); 
               ^
./../graph_adjacency.hh:373:56: error: request for member ‘idx’ in ‘b’, which is of non-class type ‘const int’ 
             {return a.idx < b.idx;}); 
                 ^
./../graph_adjacency.hh: In member function ‘void boost::adj_list<Vertex>::shrink_to_fit()’: 
./../graph_adjacency.hh:380:44: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
             [&](auto idx) -> bool 
              ^
./../graph_adjacency.hh: In function ‘std::pair<typename boost::adj_list<Vertex>::edge_descriptor, bool> boost::edge(Vertex, Vertex, const boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:601:40: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           [&](const auto& e) -> bool {return e.first == t;}); 
             ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:601:67: error: request for member ‘first’ in ‘e’, which is of non-class type ‘const int’ 
           [&](const auto& e) -> bool {return e.first == t;}); 
                   ^
./../graph_adjacency.hh: In function ‘void boost::clear_vertex(Vertex, boost::adj_list<Vertex>&, Pred&&)’: 
./../graph_adjacency.hh:711:31: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_es = [&] (auto& out_edges, auto& in_edges, 
          ^
./../graph_adjacency.hh:711:48: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_es = [&] (auto& out_edges, auto& in_edges, 
               ^
./../graph_adjacency.hh:712:31: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           auto&& mk_out_edge, auto&& mk_in_edge) 
          ^
./../graph_adjacency.hh:712:51: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           auto&& mk_out_edge, auto&& mk_in_edge) 
               ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:717:43: error: request for member ‘def’ in ‘mk_out_edge’, which is of non-class type ‘int’ 
        if (!pred(mk_out_edge.def(v, oe))) 
             ^
./../graph_adjacency.hh:723:50: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
             [&](const auto& ei) -> bool 
               ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:725:65: error: request for member ‘def’ in ‘mk_in_edge’, which is of non-class type ‘int’ 
              if (!pred(mk_in_edge.def(t, ei))) 
                   ^
./../graph_adjacency.hh:727:51: error: request for member ‘first’ in ‘ei’, which is of non-class type ‘const int’ 
              if (ei.first == v) 
               ^
./../graph_adjacency.hh:729:77: error: request for member ‘second’ in ‘ei’, which is of non-class type ‘const int’ 
               g._free_indexes.push_back(ei.second); 
                      ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:739:40: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
            [&](auto& oe) 
             ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:741:64: error: request for member ‘def’ in ‘mk_out_edge’, which is of non-class type ‘int’ 
             return pred(mk_out_edge.def(v, oe)); 
                   ^
./../graph_adjacency.hh: In function ‘void boost::clear_vertex(Vertex, boost::adj_list<Vertex>&, Pred&&)’: 
./../graph_adjacency.hh:755:31: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_es = [&] (auto& out_edges, auto& in_edges, 
          ^
./../graph_adjacency.hh:755:48: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_es = [&] (auto& out_edges, auto& in_edges, 
               ^
./../graph_adjacency.hh:756:31: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           auto&& get_pos, auto&& mk_out_edge) 
          ^
./../graph_adjacency.hh:756:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           auto&& get_pos, auto&& mk_out_edge) 
              ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:761:39: error: request for member ‘def’ in ‘mk_out_edge’, which is of non-class type ‘int’ 
       if (!pred(mk_out_edge.def(v, ei))) 
            ^
./../graph_adjacency.hh:768:40: error: expression cannot be used as a function 
       auto& pos = get_pos(idx); 
             ^
./../graph_adjacency.hh:779:36: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           [&](auto& oe) 
            ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:781:60: error: request for member ‘def’ in ‘mk_out_edge’, which is of non-class type ‘int’ 
            return pred(mk_out_edge.def(v, oe)); 
                  ^
./../graph_adjacency.hh: In function ‘void boost::clear_vertex(Vertex, boost::adj_list<Vertex>&, Pred&&)’: 
./../graph_adjacency.hh:787:42: error: invalid use of ‘auto’ 
        [&](size_t idx) -> auto& {return g._epos[idx].second;}, 
             ^
./../graph_adjacency.hh:790:42: error: invalid use of ‘auto’ 
        [&](size_t idx) -> auto& {return g._epos[idx].first;}, 
             ^
./../graph_adjacency.hh: In function ‘void boost::clear_vertex(Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:798:27: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
    clear_vertex(v, g, [](auto&&){ return true; }); 
         ^
./../graph_adjacency.hh: In function ‘void boost::remove_vertex(Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:810:25: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
    auto shift_es = [&](auto& edges, int i) 
         ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:812:31: error: invalid types ‘int[int]’ for array subscript 
     for (auto& e : edges[i]) 
          ^
./../graph_adjacency.hh: In function ‘void boost::remove_vertex_fast(Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:842:30: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto rename_v = [&] (auto& out_edges, auto& in_edges, 
          ^
./../graph_adjacency.hh:842:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto rename_v = [&] (auto& out_edges, auto& in_edges, 
              ^
./../graph_adjacency.hh:843:36: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
           const auto& get_pos) 
            ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:865:51: error: expression cannot be used as a function 
          auto pos = get_pos(idx); 
               ^
./../graph_adjacency.hh: In function ‘void boost::remove_vertex_fast(Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:873:37: error: invalid use of ‘auto’ 
        [&](size_t idx) -> auto {return g._epos[idx].second;}); 
            ^
./../graph_adjacency.hh:875:37: error: invalid use of ‘auto’ 
        [&](size_t idx) -> auto {return g._epos[idx].first;}); 
            ^
./../graph_adjacency.hh: In function ‘void boost::remove_edge(Vertex, Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:926:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
            [&] (const auto& ei) -> bool 
              ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:927:52: error: request for member ‘first’ in ‘ei’, which is of non-class type ‘const int’ 
            {return t == ei.first;}); 
                ^
./../graph_adjacency.hh: In function ‘void boost::remove_edge(Vertex, Vertex, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:937:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
            [&] (const auto& ei) -> bool 
              ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:938:52: error: request for member ‘first’ in ‘ei’, which is of non-class type ‘const int’ 
            {return s == ei.first;}); 
                ^
./../graph_adjacency.hh: In function ‘void boost::remove_edge(const typename boost::adj_list<Vertex>::edge_descriptor&, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:963:30: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_e = [&] (auto& elist, auto v) 
          ^
./../graph_adjacency.hh:963:43: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
     auto remove_e = [&] (auto& elist, auto v) 
             ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:965:48: error: request for member ‘begin’ in ‘elist’, which is of non-class type ‘int’ 
       auto iter = std::find_if(elist.begin(), elist.end(), 
               ^
./../graph_adjacency.hh:965:63: error: request for member ‘end’ in ‘elist’, which is of non-class type ‘int’ 
       auto iter = std::find_if(elist.begin(), elist.end(), 
                  ^
./../graph_adjacency.hh:966:53: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
              [&] (const auto& ei) -> bool 
                ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:967:58: error: request for member ‘first’ in ‘ei’, which is of non-class type ‘const int’ 
              {return v == ei.first && idx == ei.second;}); 
                 ^
./../graph_adjacency.hh:967:77: error: request for member ‘second’ in ‘ei’, which is of non-class type ‘const int’ 
              {return v == ei.first && idx == ei.second;}); 
                      ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:968:35: error: request for member ‘end’ in ‘elist’, which is of non-class type ‘int’ 
       if (iter != elist.end()) 
           ^
./../graph_adjacency.hh:970:27: error: request for member ‘erase’ in ‘elist’, which is of non-class type ‘int’ 
        elist.erase(iter); 
         ^
./../graph_adjacency.hh: In function ‘void boost::remove_edge(const typename boost::adj_list<Vertex>::edge_descriptor&, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:982:34: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
      auto remove_e = [&] (auto& elist, const auto& get_pos) 
           ^
./../graph_adjacency.hh:982:53: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 
      auto remove_e = [&] (auto& elist, const auto& get_pos) 
                ^
./../graph_adjacency.hh: In lambda function: 
./../graph_adjacency.hh:984:42: error: request for member ‘back’ in ‘elist’, which is of non-class type ‘int’ 
       const auto& back = elist.back(); 
             ^
./../graph_adjacency.hh:986:36: error: expression cannot be used as a function 
       get_pos(back.second) = pindex; 
            ^
./../graph_adjacency.hh:988:23: error: request for member ‘pop_back’ in ‘elist’, which is of non-class type ‘int’ 
       elist.pop_back(); 
        ^
./../graph_adjacency.hh: In function ‘void boost::remove_edge(const typename boost::adj_list<Vertex>::edge_descriptor&, boost::adj_list<Vertex>&)’: 
./../graph_adjacency.hh:991:50: error: invalid use of ‘auto’ 
      remove_e(oes, [&](size_t idx) -> auto& {return g._epos[idx].first;}); 
               ^
./../graph_adjacency.hh:992:50: error: invalid use of ‘auto’ 
      remove_e(ies, [&](size_t idx) -> auto& {return g._epos[idx].second;}); 
               ^
In file included from ./../graph_filtering.hh:49:0, 
       from graph_cairo_draw.cc:22: 
./../graph_selectors.hh: At global scope: 
./../graph_selectors.hh:78:37: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g) const 
            ^
./../graph_selectors.hh:78:37: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:86:54: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g, Weight&& weight) const 
                ^
./../graph_selectors.hh:86:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:98:44: error: ‘get_in_degree’ function uses ‘auto’ type specifier without trailing return type 
         detail::no_weightS) const 
              ^
./../graph_selectors.hh:98:44: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:106:71: error: ‘get_in_degree’ function uses ‘auto’ type specifier without trailing return type 
         const ConstantPropertyMap<Value, Key>& weight) const 
                    ^
./../graph_selectors.hh:106:71: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:114:61: error: ‘get_in_degree’ function uses ‘auto’ type specifier without trailing return type 
         const UnityPropertyMap<Value, Key>&) const 
                  ^
./../graph_selectors.hh:114:61: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:121:72: error: ‘get_in_degree’ function uses ‘auto’ type specifier without trailing return type 
         const Graph& g, std::true_type, Weight& weight) const 
                     ^
./../graph_selectors.hh:121:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:134:66: error: ‘get_in_degree’ function uses ‘auto’ type specifier without trailing return type 
         const Graph&, std::false_type, Weight&&) const 
                   ^
./../graph_selectors.hh:134:66: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:149:37: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g) const 
            ^
./../graph_selectors.hh:149:37: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:157:54: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g, Weight&& weight) const 
                ^
./../graph_selectors.hh:157:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:165:72: error: ‘get_out_degree’ function uses ‘auto’ type specifier without trailing return type 
         const ConstantPropertyMap<Value, Key>& weight) const 
                     ^
./../graph_selectors.hh:165:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:173:62: error: ‘get_out_degree’ function uses ‘auto’ type specifier without trailing return type 
         const UnityPropertyMap<Value, Key>&) const 
                  ^
./../graph_selectors.hh:173:62: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:181:63: error: ‘get_out_degree’ function uses ‘auto’ type specifier without trailing return type 
         const Graph& g, const Weight& weight) const 
                  ^
./../graph_selectors.hh:181:63: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:194:61: error: ‘get_out_degree’ function uses ‘auto’ type specifier without trailing return type 
         const Graph& g, detail::no_weightS) const 
                  ^
./../graph_selectors.hh:194:61: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:208:37: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g) const 
            ^
./../graph_selectors.hh:208:37: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:216:54: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
        const Graph& g, Weight&& weight) const 
                ^
./../graph_selectors.hh:216:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:229:44: error: ‘get_total_degree’ function uses ‘auto’ type specifier without trailing return type 
          Weight&& weight) const 
              ^
./../graph_selectors.hh:229:44: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:238:77: error: ‘get_total_degree’ function uses ‘auto’ type specifier without trailing return type 
          const Graph& g, std::false_type, Weight&& weight) const 
                      ^
./../graph_selectors.hh:238:77: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:255:56: error: ‘operator()’ function uses ‘auto’ type specifier without trailing return type 
    auto operator()(const Descriptor& d, const Graph&) const 
                 ^
./../graph_selectors.hh:255:56: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:673:44: error: ‘mk_range’ function uses ‘auto’ type specifier without trailing return type 
auto mk_range(std::pair<Iter, Iter>&& range) 
              ^
./../graph_selectors.hh:673:44: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:680:35: error: ‘vertices_range’ function uses ‘auto’ type specifier without trailing return type 
auto vertices_range(const Graph& g) 
           ^
./../graph_selectors.hh:680:35: note: deduced return type only available with -std=c++14 or -std=gnu++14 
./../graph_selectors.hh:687:32: error: ‘edges_range’ function uses ‘auto’ type specifier without trailing return type 
auto edges_range(const Graph& g) 
           ^
./../graph_selectors.hh:687:32: note: deduced return type only available with -std=c++14 or -std=gnu++14 

あり、エラーのより多くの行があるが、それはすべての文字の制限を超えて私を取る掲載します。それはあなたの./configureコマンドを通じて供給されていないコンパイラオプション-std=c++14、 を必要とするので、コンパイルに失敗し

+0

あなたの '。/ configure'コマンドは、 ' configure'エラーがなかったので、エラーは発生しませんでした。 'config.log'の に表示されるエラーメッセージは、' configure'によって実行される環境検査の予想結果です。 クリーンな 'configure'はビルドエラーを排除しません。あなたは の読者がそれを再現できる手順で、失敗したビルドの実際のビルドログを投稿する必要があります。 ( 'git clone [email protected]:count0/graph-tool.git' はパスワードを要求します...) –

+0

sshキーをgitlabアカウントに追加すると、パスワード要求は消えます。私はあなたがhtmls上にそれをダウンロードしても消えるはずですか?つまり、コマンドは 'git clone https:// git.skewed.de/count0/graph-tool.git'でなければなりません。どのファイルが正確に必要ですか? 'config'を実行した後に' config.log'を実行しますか? stackoverflowに投稿する方法がわからず、何百行ものテキストを画面に表示したくないので、 '。\ configure'の後の' config.log'を投稿リンクの下に見つけることができます。 –

+0

上記のリンクの下で間違っているように思われる 'make'ステップの画面出力もアップロードしました。 –

答えて

1

C++ソースは、 C++ 14標準の機能を採用しています。

これは、パッケージの自動ツール( configureスクリプトを生成する)のバグです。パッケージユーザーとしては、ビルドに適切な C++言語標準を指定する必要はありません。事前設定する必要があります。

あなたはかなり安定したパッケージのリリースよりも、 レポのmasterブランチのヘッドを使用しているが、マスターブランチヘッドはデフォルトでビルドしていない場合、それはまだ品質 失言だからあなたはこのバグを見ることになるかもしれない./configure - それはありません:あなたのビルドブレイクを確認します。

./configureが生成するC++コンパイルオプションを制御するには、コマンドラインでCXXFLAGSに目的のオプションを割り当てて を指定します。完全な詳細については./configure -h を実行してください。)

./configure CXXFLAGS=-std=c++14 
make 
sudo make install 

は、すべての の依存関係を満たしていると仮定して、あなたに成功したビルドを与え、インストールします。

これは、ビルドブレークと接続されていないが、ところで、あなたが投稿したmakeコマンド、

sudo make -Wno-unused-local-typedefs 

は、意味がありません。 コンパイラオプション-Wno-unused-local-typedefsmakeをコンパイラではなく無視しているだけです。

./configure CXXFLAGS='-std=c++14 -Wno-unused-local-typedefs' 

それはビルドでいくつかのマイナーな警告を抑制しますが、不要である:あなたがコンパイラにこの 追加オプションを渡したい場合、あなたは ./configureに渡すCXXFLAGSに追加します。

+0

私は 'sudo ./configure CXXFLAGS =" - std = gnu ++ 14 "PYTHON ="/home/pmj27/anaconda/bin/python2.7 "CAIROMM_LIBS =" - L/home/pmj27/anaconda/includeを実行しました。 /cairomm-1.0/cairomm "--enable-openmp'これは正常にコンパイルされました。 (私は 'CAIROMM_LIBS'の部分が厳密に必要なのかどうかはわかりません)。しかし、何らかの理由で今、pythonはパッケージを見つけられません。 –

関連する問題