[Python-modules-team] Bug#759858: python-igraph: FTBFS: src/graphobject.c:3734:9: error: too few arguments to function 'igraph_closeness'

Lucas Nussbaum lucas at lucas-nussbaum.net
Sat Aug 30 19:03:26 UTC 2014


Source: python-igraph
Version: 0.6.5-1
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140830 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/igraph -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -c src/graphobject.c -o build/temp.linux-x86_64-2.7/src/graphobject.o
> src/graphobject.c: In function 'igraphmodule_Graph_closeness':
> src/graphobject.c:3734:9: error: too few arguments to function 'igraph_closeness'
>      if (igraph_closeness(&self->g, &res, vs, mode, weights)) {
>          ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:49:5: note: declared here
>  int igraph_closeness(const igraph_t *graph, igraph_vector_t *res, 
>      ^
> src/graphobject.c:3747:9: error: too few arguments to function 'igraph_closeness_estimate'
>      if (igraph_closeness_estimate(&self->g, &res, vs, mode,
>          ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:52:5: note: declared here
>  int igraph_closeness_estimate(const igraph_t *graph, igraph_vector_t *res, 
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_get_shortest_paths':
> src/graphobject.c:4317:7: error: too few arguments to function 'igraph_get_shortest_paths_dijkstra'
>    if (igraph_get_shortest_paths_dijkstra(&self->g, use_edges ? 0 : ptrvec,
>        ^
> In file included from /usr/include/igraph/igraph.h:61:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_paths.h:92:5: note: declared here
>  int igraph_get_shortest_paths_dijkstra(const igraph_t *graph,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_personalized_pagerank':
> src/graphobject.c:4694:14: error: incompatible type for argument 2 of 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'igraph_pagerank_algo_t' but argument is of type 'struct igraph_vector_t *'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: error: incompatible type for argument 4 of 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'igraph_real_t *' but argument is of type 'igraph_vs_t'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: error: incompatible type for argument 5 of 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'igraph_vs_t' but argument is of type 'int'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: error: incompatible type for argument 7 of 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'igraph_real_t' but argument is of type 'igraph_vs_t'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: error: incompatible type for argument 8 of 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'igraph_vs_t' but argument is of type 'struct igraph_vector_t *'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: warning: passing argument 9 of 'igraph_personalized_pagerank_vs' from incompatible pointer type
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: expected 'const struct igraph_vector_t *' but argument is of type 'struct igraph_arpack_options_t *'
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4694:14: error: too few arguments to function 'igraph_personalized_pagerank_vs'
>      retval = igraph_personalized_pagerank_vs(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:123:5: note: declared here
>  int igraph_personalized_pagerank_vs(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: error: incompatible type for argument 2 of 'igraph_personalized_pagerank'
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: expected 'igraph_pagerank_algo_t' but argument is of type 'struct igraph_vector_t *'
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: error: incompatible type for argument 4 of 'igraph_personalized_pagerank'
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: expected 'igraph_real_t *' but argument is of type 'igraph_vs_t'
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: error: incompatible type for argument 5 of 'igraph_personalized_pagerank'
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: expected 'igraph_vs_t' but argument is of type 'int'
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: error: incompatible type for argument 7 of 'igraph_personalized_pagerank'
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: expected 'igraph_real_t' but argument is of type 'struct igraph_vector_t *'
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: warning: passing argument 9 of 'igraph_personalized_pagerank' from incompatible pointer type
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: expected 'const struct igraph_vector_t *' but argument is of type 'struct igraph_arpack_options_t *'
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c:4697:14: error: too few arguments to function 'igraph_personalized_pagerank'
>      retval = igraph_personalized_pagerank(&self->g, &res, 0, vs, PyObject_IsTrue(directed),
>               ^
> In file included from /usr/include/igraph/igraph.h:60:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_centrality.h:117:5: note: declared here
>  int igraph_personalized_pagerank(const igraph_t *graph, 
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_write_graphml':
> src/graphobject.c:7708:7: error: too few arguments to function 'igraph_write_graph_graphml'
>    if (igraph_write_graph_graphml(&self->g, igraphmodule_filehandle_get(&fobj))) {
>        ^
> In file included from /usr/include/igraph/igraph.h:73:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_foreign.h:80:5: note: declared here
>  int igraph_write_graph_graphml(const igraph_t *graph, FILE *outstream, 
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_union':
> src/graphobject.c:8900:9: error: too few arguments to function 'igraph_union_many'
>      if (igraph_union_many(&g, &gs)) {
>          ^
> In file included from /usr/include/igraph/igraph.h:75:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_operators.h:54:5: note: declared here
>  int igraph_union_many(igraph_t *res, const igraph_vector_ptr_t *graphs,
>      ^
> src/graphobject.c:8916:9: error: too few arguments to function 'igraph_union'
>      if (igraph_union(&g, &self->g, &o->g)) {
>          ^
> In file included from /usr/include/igraph/igraph.h:75:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_operators.h:52:5: note: declared here
>  int igraph_union(igraph_t *res, const igraph_t *left, const igraph_t *right,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_intersection':
> src/graphobject.c:8962:9: error: too few arguments to function 'igraph_intersection_many'
>      if (igraph_intersection_many(&g, &gs)) {
>          ^
> In file included from /usr/include/igraph/igraph.h:75:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_operators.h:60:5: note: declared here
>  int igraph_intersection_many(igraph_t *res,
>      ^
> src/graphobject.c:8978:9: error: too few arguments to function 'igraph_intersection'
>      if (igraph_intersection(&g, &self->g, &o->g)) {
>          ^
> In file included from /usr/include/igraph/igraph.h:75:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_operators.h:56:5: note: declared here
>  int igraph_intersection(igraph_t *res, 
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_compose':
> src/graphobject.c:9081:7: error: too few arguments to function 'igraph_compose'
>    if (igraph_compose(&g, &self->g, &o->g)) {
>        ^
> In file included from /usr/include/igraph/igraph.h:75:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_operators.h:67:5: note: declared here
>  int igraph_compose(igraph_t *res, const igraph_t *g1, const igraph_t *g2,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_maxflow_value':
> src/graphobject.c:9256:7: error: too few arguments to function 'igraph_maxflow_value'
>    if (igraph_maxflow_value(&self->g, &result, v1, v2, &capacity_vector)) {
>        ^
> In file included from /usr/include/igraph/igraph.h:76:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_flow.h:75:5: note: declared here
>  int igraph_maxflow_value(const igraph_t *graph, igraph_real_t *value,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_maxflow':
> src/graphobject.c:9308:7: error: too few arguments to function 'igraph_maxflow'
>    if (igraph_maxflow(&self->g, &result, &flow, &cut, &partition, 0,
>        ^
> In file included from /usr/include/igraph/igraph.h:76:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_flow.h:69:5: note: declared here
>  int igraph_maxflow(const igraph_t *graph, igraph_real_t *value,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_community_leading_eigenvector':
> src/graphobject.c:10366:7: warning: passing argument 2 of 'igraph_community_leading_eigenvector' from incompatible pointer type
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: expected 'const struct igraph_vector_t *' but argument is of type 'struct igraph_matrix_t *'
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c:10366:7: warning: passing argument 3 of 'igraph_community_leading_eigenvector' from incompatible pointer type
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: expected 'struct igraph_matrix_t *' but argument is of type 'struct igraph_vector_t *'
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c:10366:7: warning: passing argument 4 of 'igraph_community_leading_eigenvector' makes pointer from integer without a cast
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: expected 'struct igraph_vector_t *' but argument is of type 'int'
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c:10366:7: warning: passing argument 5 of 'igraph_community_leading_eigenvector' makes integer from pointer without a cast
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: expected 'igraph_integer_t' but argument is of type 'struct igraph_arpack_options_t *'
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c:10366:7: warning: passing argument 6 of 'igraph_community_leading_eigenvector' from incompatible pointer type
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: expected 'struct igraph_arpack_options_t *' but argument is of type 'igraph_real_t *'
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c:10366:7: error: too few arguments to function 'igraph_community_leading_eigenvector'
>    if (igraph_community_leading_eigenvector(&self->g, &m, &members, (igraph_integer_t) n,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:200:5: note: declared here
>  int igraph_community_leading_eigenvector(const igraph_t *graph,
>      ^
> src/graphobject.c: In function 'igraphmodule_Graph_community_optimal_modularity':
> src/graphobject.c:10650:7: warning: passing argument 4 of 'igraph_community_optimal_modularity' makes pointer from integer without a cast
>    if (igraph_community_optimal_modularity(&self->g, &modularity, &membership,
>        ^
> In file included from /usr/include/igraph/igraph.h:71:0,
>                  from src/graphobject.h:27,
>                  from src/arpackobject.h:28,
>                  from src/graphobject.c:24:
> /usr/include/igraph/igraph_community.h:60:5: note: expected 'const struct igraph_vector_t *' but argument is of type 'int'
>  int igraph_community_optimal_modularity(const igraph_t *graph,
>      ^
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> dh_auto_build: python setup.py build --force returned exit code 1
> debian/rules:3: recipe for target 'build' failed
> make: *** [build] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/08/30/python-igraph_0.6.5-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures. The build
was done with DEB_BUILD_OPTIONS="parallel=4", so if your packaging tries
to support this, it might be a good idea to explore whether this might
be the cause of the failure.



More information about the Python-modules-team mailing list