Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bustools fails to build on many architectures #60

Open
mestia opened this issue Jul 1, 2020 · 1 comment
Open

bustools fails to build on many architectures #60

mestia opened this issue Jul 1, 2020 · 1 comment

Comments

@mestia
Copy link

mestia commented Jul 1, 2020

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'
@mestia mestia changed the title bustools fails to build to many architectures bustools fails to build on many architectures Jul 4, 2020
@megan-d-perry
Copy link

Has anyone made progress with this? Encountering the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants