Bug#799657: python-admesh: FTBFS: admesh.c:1391:47: error: type of formal parameter 1 is incomplete

Chris Lamb lamby at debian.org
Mon Sep 21 09:11:57 UTC 2015


Source: python-admesh
Version: 0.98.4-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

python-admesh fails to build from source in unstable/amd64:

  [..]

  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
  -Wstrict-prototypes -fno-strict-aliasing -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
  -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c admesh.c -o
  build/temp.linux-x86_64-2.7/admesh.o
  admesh.c:625:69: warning: 'enum stl_type' declared inside parameter
  list
   static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__stl_type(enum
   stl_type value);
                                                                       ^
  admesh.c:625:69: warning: its scope is only this definition or
  declaration, which is probably not what you want
  admesh.c: In function '__pyx_pf_6admesh_3Stl_2__str__':
  admesh.c:1391:47: error: type of formal parameter 1 is incomplete
     __pyx_t_2 =
     __Pyx_PyInt_From_enum__stl_type(__pyx_v_self->_c_stl_file.stats.type);
     if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0];
     __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                 ^
  admesh.c: At top level:
  admesh.c:13073:69: warning: 'enum stl_type' declared inside parameter
  list
   static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__stl_type(enum
   stl_type value) {
                                                                       ^
  admesh.c:13073:78: error: parameter 1 ('value') has incomplete type
   static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__stl_type(enum
   stl_type value) {
                                                                                ^
  admesh.c: In function '__Pyx_PyInt_From_enum__stl_type':
  admesh.c:13074:16: error: variable 'neg_one' has initializer but
  incomplete type
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                  ^
  admesh.c:13074:41: error: conversion to incomplete type
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                                           ^
  admesh.c:13074:25: error: storage size of 'neg_one' isn't known
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                           ^
  admesh.c:13074:41: error: variable 'const_zero' has initializer but
  incomplete type
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                                           ^
  admesh.c:13074:74: error: conversion to incomplete type
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                                                                            ^
  admesh.c:13074:55: error: storage size of 'const_zero' isn't known
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                                                         ^
  admesh.c:13077:20: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           if (sizeof(enum stl_type) < sizeof(long)) {
                      ^
  admesh.c:13079:27: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           } else if (sizeof(enum stl_type) <= sizeof(unsigned long)) {
                             ^
  admesh.c:13081:27: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           } else if (sizeof(enum stl_type) <= sizeof(unsigned
           PY_LONG_LONG)) {
                             ^
  admesh.c:13085:20: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           if (sizeof(enum stl_type) <= sizeof(long)) {
                      ^
  admesh.c:13087:27: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           } else if (sizeof(enum stl_type) <= sizeof(PY_LONG_LONG)) {
                             ^
  admesh.c:13094:52: error: invalid application of 'sizeof' to
  incomplete type 'enum stl_type'
           return _PyLong_FromByteArray(bytes, sizeof(enum stl_type),
                                                      ^
  admesh.c:13074:55: warning: unused variable 'const_zero'
  [-Wunused-variable]
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                                                         ^
  admesh.c:13074:25: warning: unused variable 'neg_one'
  [-Wunused-variable]
       const enum stl_type neg_one = (enum stl_type) -1, const_zero =
       (enum stl_type) 0;
                           ^
  admesh.c: In function '__pyx_convert__to_py_stl_stats':
  admesh.c:13177:52: error: type of formal parameter 1 is incomplete
             member = __Pyx_PyInt_From_enum__stl_type(s.type); if
             (member == NULL) goto bad;
                                                      ^
  admesh.c: In function '__Pyx_PyInt_From_enum__stl_type':
  admesh.c:13097:1: warning: control reaches end of non-void function
  [-Wreturn-type]
   }
   ^
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  E: pybuild pybuild:262: build: plugin distutils failed with: exit
  code=1: /usr/bin/python setup.py build 
  dh_auto_build: pybuild --build -i python{version} -p 2.7 --dir .
  returned exit code 13
  debian/rules:5: recipe for target 'build' failed
  make: *** [build] Error 25
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/python-admesh_0.98.4-1.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-admesh.0.98.4-1.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150921/6a1df8da/attachment-0001.txt>


More information about the debian-science-maintainers mailing list