Tried, but On 08.06.20 22:35, Andreas Tille wrote:
Hi,I've started packaging iitii[1]. Building the binary and moving the header file into a libiitii-dev package works but the build time test was hard enough to get configuring at all. But know there are build issues inside the test: ... /build/iitii-0.0+git20191030.85209e0/test/test_iitii.cc:185:25: error: expected primary-expression before ‘int’ 185 | auto tree = iit<int, variant, variant_beg, variant_end>::builder(variants.begin(), variants.end()).build(); | ^~~ /build/iitii-0.0+git20191030.85209e0/test/test_iitii.cc:186:28: error: expected primary-expression before ‘<’ token 186 | auto treeii = iitii<int, variant, variant_beg, variant_end>::builder(variants.begin(), variants.end()).build(megabases*10); | ^ /build/iitii-0.0+git20191030.85209e0/test/test_iitii.cc:186:29: error: expected primary-expression before ‘int’ 186 | auto treeii = iitii<int, variant, variant_beg, variant_end>::builder(variants.begin(), variants.end()).build(megabases*10); | ^~~ make[4]: *** [CMakeFiles/test_iitii.dir/build.make:63: CMakeFiles/test_iitii.dir/test_iitii.cc.o] Error 1 This is just an example for the errors. Any hint would be welcome.
dpkg-checkbuilddeps: error: Unmet build dependencies: libips4o-dev libargs-dev libmmap-allocator-dev (>= 0.4.0+git20200122.adbfbe1) catch2 libctpl-dev dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.) debuild: fatal error at line 1182: dpkg-buildpackage -us -uc -ui -i -I failed gbp:error:'debuild -i -I' failed: it exited with 29 moeller@steffen-laptop-debian:~/git/med-team/iitii$ sudo debfoster -u libips4o-dev libargs-dev libmmap-allocator-dev catch2 libctpl-dev [sudo] password for moeller: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libargs-dev E: Unable to locate package libips4o-dev E: Unable to locate package libmmap-allocator-dev I comment by not commenting, except for praising Andreas for his hard packaging work. Attempting a hint, from what I see by looking at those lines only, the compiler does not recognize these templates. Now, templates are nothing recent any more. Likely your version of g++ has an issue with "auto", then, conseqently not recognizing that line as a variable declaration. Please add -std=c++0x to the compile flags or -std=c++11 - supported by https://stackoverflow.com/questions/10063884/why-i-cannot-use-the-auto-keyword-in-the-last-version-of-gcc . Best, Steffen

