Package: src:pygccxml
Version: 1.7.4-3
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh  build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
        pybuild --configure -i python{version} -p 2.7
I: pybuild base:184: python2.7 setup.py config 
running config
        pybuild --configure -i python{version} -p 3.5
I: pybuild base:184: python3.5 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'

[... snipped ...]

INFO Parsing source file "core_ns_join_2.hpp" ... 
INFO Parsing source file "core_ns_join_3.hpp" ... 
INFO Parsing source file "core_membership.hpp" ... 
INFO Parsing source file "core_class_hierarchy.hpp" ... 
/<<PKGBUILDDIR>>/unittests/data/core_class_hierarchy.hpp:30:44: warning: direct 
base 'core::class_hierarchy::base_t' is inaccessible due to ambiguity:
    class core::class_hierarchy::multi_derived_t -> class 
core::class_hierarchy::derived_private_t -> class core::class_hierarchy::base_t
    class core::class_hierarchy::multi_derived_t -> class 
core::class_hierarchy::base_t [-Winaccessible-base]
class multi_derived_t : derived_private_t, protected base_t, private 
other_base_t{
                                           ^~~~~~~~~~~~~~~~
1 warning generated.
INFO Parsing source file "core_types.hpp" ... 
castxml: /usr/lib/llvm-3.7/include/clang/AST/Decl.h:169: llvm::StringRef 
clang::NamedDecl::getName() const: Assertion `Name.isIdentifier() && "Name is 
not a simple identifier"' failed.
Aborted
Castxml configured to simulate compiler None
Traceback (most recent call last):
  File "./unittests/test_all.py", line 161, in <module>
    sys.exit(run_suite())
  File "./unittests/test_all.py", line 152, in run_suite
    result = unittest.TextTestRunner(verbosity=2).run(create_suite())
  File "./unittests/test_all.py", line 147, in create_suite
    main_suite.addTest(tester.create_suite())
  File "/<<PKGBUILDDIR>>/unittests/decl_printer_tester.py", line 68, in 
create_suite
    suite.addTest(unittest.makeSuite(tester_t))
  File "/usr/lib/python2.7/unittest/loader.py", line 312, in makeSuite
    return _makeLoader(prefix, sortUsing, 
suiteClass).loadTestsFromTestCase(testCaseClass)
  File "/usr/lib/python2.7/unittest/loader.py", line 56, in 
loadTestsFromTestCase
    loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames))
  File "/<<PKGBUILDDIR>>/unittests/decl_printer_tester.py", line 41, in __init__
    compilation_mode=parser.COMPILATION_MODE.FILE_BY_FILE)
  File 
"/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pygccxml/parser/project_reader.py",
 line 249, in read_files
    return self.__parse_file_by_file(files)
  File 
"/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pygccxml/parser/project_reader.py",
 line 278, in __parse_file_by_file
    decls = reader.read_file(header)
  File 
"/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pygccxml/parser/source_reader.py",
 line 363, in read_file
    return self.read_cpp_source_file(source_file)
  File 
"/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pygccxml/parser/source_reader.py",
 line 382, in read_cpp_source_file
    xml_file = self.create_xml_file(ffname)
  File 
"/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/pygccxml/parser/source_reader.py",
 line 333, in create_xml_file
    gccxml_msg)
RuntimeError: Error occured while running CASTXML: 
E: pybuild pybuild:274: test: plugin custom failed with: exit code=1: python2.7 
./unittests/test_all.py
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:18: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense and the fact that I was
using "dpkg-buildpackage -A" is quite irrelevant.

For this particular package, I've also checked that it fails to build
from source in the reproducible builds site:

https://tests.reproducible-builds.org/

Thanks.

Reply via email to