BUStools / bustools

Tools for working with BUS files
https://bustools.github.io/
BSD 2-Clause "Simplified" License
88 stars 22 forks source link

bustools fails to build on many architectures #60

Open mestia opened 4 years ago

mestia commented 4 years ago

Bustools fails to build on Armel and many other archs, see the complete build log for Armel here: https://buildd.debian.org/status/fetch.php?pkg=bustools&arch=armel&ver=0.40.0-4&stamp=1589233599&raw=0 For other archs: https://buildd.debian.org/status/package.php?p=bustools

make -f src/CMakeFiles/bustools_core.dir/build.make src/CMakeFiles/bustools_core.dir/build
make[4]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
[  5%] Building CXX object src/CMakeFiles/bustools_core.dir/Common.cpp.o
[ 11%] Building CXX object src/CMakeFiles/bustools_core.dir/BUSData.cpp.o
[ 23%] Building CXX object src/CMakeFiles/bustools_core.dir/bustools_correct.cpp.o
[ 23%] Building CXX object src/CMakeFiles/bustools_core.dir/bustools_capture.cpp.o
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabi/src && /usr/bin/c++   -I/<<PKGBUILDDIR>>/src  -std=c++11 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g   -g -flto -o CMakeFiles/bustools_core.dir/Common.cpp.o -c /<<PKGBUILDDIR>>/src/Common.cpp
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabi/src && /usr/bin/c++   -I/<<PKGBUILDDIR>>/src  -std=c++11 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g   -g -flto -o CMakeFiles/bustools_core.dir/BUSData.cpp.o -c /<<PKGBUILDDIR>>/src/BUSData.cpp
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabi/src && /usr/bin/c++   -I/<<PKGBUILDDIR>>/src  -std=c++11 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g   -g -flto -o CMakeFiles/bustools_core.dir/bustools_capture.cpp.o -c /<<PKGBUILDDIR>>/src/bustools_capture.cpp
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabi/src && /usr/bin/c++   -I/<<PKGBUILDDIR>>/src  -std=c++11 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g   -g -flto -o CMakeFiles/bustools_core.dir/bustools_correct.cpp.o -c /<<PKGBUILDDIR>>/src/bustools_correct.cpp
In file included from /<<PKGBUILDDIR>>/src/Common.cpp:1:
/<<PKGBUILDDIR>>/src/Common.hpp: In constructor ‘Bustools_opt::Bustools_opt()’:
/<<PKGBUILDDIR>>/src/Common.hpp:67:47: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘4294967296’ to ‘0’ [-Woverflow]
   67 |   Bustools_opt() : threads(1), max_memory(1ULL<<32), type(0),
      |                                           ~~~~^~~~
/<<PKGBUILDDIR>>/src/Common.hpp: In function ‘size_t rndup(size_t)’:
/<<PKGBUILDDIR>>/src/Common.hpp:81:13: warning: right shift count >= width of type [-Wshift-count-overflow]
   81 |   v |= v >> 32;
      |             ^~
/<<PKGBUILDDIR>>/src/Common.hpp: At global scope:
/<<PKGBUILDDIR>>/src/Common.hpp:87:17: error: redefinition of ‘uint32_t rndup(uint32_t)’
   87 | inline uint32_t rndup(uint32_t v) {
      |                 ^~~~~
/<<PKGBUILDDIR>>/src/Common.hpp:73:15: note: ‘size_t rndup(size_t)’ previously defined here
   73 | inline size_t rndup(size_t v) {
      |               ^~~~~
In file included from /<<PKGBUILDDIR>>/src/bustools_capture.cpp:5:
/<<PKGBUILDDIR>>/src/Common.hpp: In constructor ‘Bustools_opt::Bustools_opt()’:
/<<PKGBUILDDIR>>/src/Common.hpp:67:47: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘4294967296’ to ‘0’ [-Woverflow]
   67 |   Bustools_opt() : threads(1), max_memory(1ULL<<32), type(0),
      |                                           ~~~~^~~~
/<<PKGBUILDDIR>>/src/Common.hpp: In function ‘size_t rndup(size_t)’:
/<<PKGBUILDDIR>>/src/Common.hpp:81:13: warning: right shift count >= width of type [-Wshift-count-overflow]
   81 |   v |= v >> 32;
      |             ^~
/<<PKGBUILDDIR>>/src/Common.hpp: At global scope:
/<<PKGBUILDDIR>>/src/Common.hpp:87:17: error: redefinition of ‘uint32_t rndup(uint32_t)’
   87 | inline uint32_t rndup(uint32_t v) {
      |                 ^~~~~
/<<PKGBUILDDIR>>/src/Common.hpp:73:15: note: ‘size_t rndup(size_t)’ previously defined here
   73 | inline size_t rndup(size_t v) {
      |               ^~~~~
In file included from /<<PKGBUILDDIR>>/src/bustools_correct.cpp:9:
/<<PKGBUILDDIR>>/src/Common.hpp: In constructor ‘Bustools_opt::Bustools_opt()’:
/<<PKGBUILDDIR>>/src/Common.hpp:67:47: warning: conversion from ‘long long unsigned int’ to ‘size_t’ {aka ‘unsigned int’} changes value from ‘4294967296’ to ‘0’ [-Woverflow]
   67 |   Bustools_opt() : threads(1), max_memory(1ULL<<32), type(0),
      |                                           ~~~~^~~~
/<<PKGBUILDDIR>>/src/Common.hpp: In function ‘size_t rndup(size_t)’:
/<<PKGBUILDDIR>>/src/Common.hpp:81:13: warning: right shift count >= width of type [-Wshift-count-overflow]
   81 |   v |= v >> 32;
      |             ^~
/<<PKGBUILDDIR>>/src/Common.hpp: At global scope:
/<<PKGBUILDDIR>>/src/Common.hpp:87:17: error: redefinition of ‘uint32_t rndup(uint32_t)’
   87 | inline uint32_t rndup(uint32_t v) {
      |                 ^~~~~
/<<PKGBUILDDIR>>/src/Common.hpp:73:15: note: ‘size_t rndup(size_t)’ previously defined here
   73 | inline size_t rndup(size_t v) {
      |               ^~~~~
make[4]: *** [src/CMakeFiles/bustools_core.dir/build.make:79: src/CMakeFiles/bustools_core.dir/Common.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [src/CMakeFiles/bustools_core.dir/build.make:92: src/CMakeFiles/bustools_core.dir/bustools_capture.cpp.o] Error 1
make[4]: *** [src/CMakeFiles/bustools_core.dir/build.make:105: src/CMakeFiles/bustools_core.dir/bustools_correct.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
make[3]: *** [CMakeFiles/Makefile2:126: src/CMakeFiles/bustools_core.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
make[2]: *** [Makefile:133: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
megan-d-perry commented 8 months ago

Has anyone made progress with this? Encountering the same.