hunter522 / mumpi Goto Github PK
View Code? Open in Web Editor NEWSimple mumble client daemon for the RaspberryPi.
Simple mumble client daemon for the RaspberryPi.
Fails to build (make) on Raspberry Pi 3b+ (Raspbian OS 10 Buster)
root@raspberrypi:/tmp/mumpi/build# cat /etc/debian_version
10.0
uname -a
Linux raspberrypi 4.19.58-v7+ #1245 SMP Fri Jul 12 17:25:51 BST 2019 armv7l GNU/Linux
Installing dependencies worked fine:
apt-get install -y libboost-all-dev libssl-dev liblog4cpp5-dev libopus-dev protobuf-compiler libprotobuf-dev portaudio19-dev cmake
Cloning the repo worked fine:
cd /tmp/
git clone https://github.com/Hunter522/mumpi.git --recursive
cd mumpi/
cmake worked fine:
mkdir build && cd build
cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- system
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.1.1c")
-- Found Protobuf: /usr/lib/arm-linux-gnueabihf/libprotobuf.so;-lpthread (found version "3.6.1")
-- Checking for module 'log4cpp'
-- Found log4cpp, version 1.1
-- Checking for module 'opus'
-- Found opus, version 1.3
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/mumpi/build
make fails
make
[ 3%] Running cpp protocol buffer compiler on Mumble.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: Mumble.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
Scanning dependencies of target mumlib
[ 7%] Building CXX object deps/mumlib/CMakeFiles/mumlib.dir/src/mumlib.cpp.o
[ 10%] Building CXX object deps/mumlib/CMakeFiles/mumlib.dir/src/Callback.cpp.o
[ 14%] Building CXX object deps/mumlib/CMakeFiles/mumlib.dir/src/CryptState.cpp.o
/tmp/mumpi/deps/mumlib/src/CryptState.cpp: In function ‘void S2(subblock*)’:
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:196:22: note: in expansion of macro ‘SWAPPED’
subblock carry = SWAPPED(block[0]) >> SHIFTBITS;
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:198:20: note: in expansion of macro ‘SWAPPED’
block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:198:29: note: in expansion of macro ‘SWAPPED’
block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:198:20: note: in expansion of macro ‘SWAPPED’
block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:198:56: note: in expansion of macro ‘SWAPPED’
block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:198:20: note: in expansion of macro ‘SWAPPED’
block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:199:28: note: in expansion of macro ‘SWAPPED’
block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:199:37: note: in expansion of macro ‘SWAPPED’
block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87));
^~~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q'
#define SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;})
^
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’
#define SWAPPED(x) SWAP64(x)
^~~~~~
/tmp/mumpi/deps/mumlib/src/CryptState.cpp:199:28: note: in expansion of macro ‘SWAPPED’
block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87));
^~~~~~~
make[2]: *** [deps/mumlib/CMakeFiles/mumlib.dir/build.make:97: deps/mumlib/CMakeFiles/mumlib.dir/src/CryptState.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:205: deps/mumlib/CMakeFiles/mumlib.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
What now?
/mnt/disk/openwrt/staging_dir/host/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
/mnt/disk/openwrt/staging_dir/host/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:9 (find_package)
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- system
-- Found OpenSSL: /mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libcrypto.so (found version "1.0.2p")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found Protobuf: /mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libprotobuf.so (found version "3.3.0")
-- Checking for module 'opus'
-- Found opus, version 1.2.1
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_ARG1
CMAKE_MODULE_LINKER_FLAGS
DL_LIBRARY
-- Build files have been written to: /mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24
touch /mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/.built
touch /mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24:mumlib-2021-10-24 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include -I/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/include -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/usr/include -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include/fortify -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24:mumlib-2021-10-24 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include -I/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/include -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/usr/include -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include/fortify -I/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include " LDFLAGS="-L/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib -L/mnt/disk/openwrt/staging_dir/target-mipsel_24kc_musl/lib -L/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/usr/lib -L/mnt/disk/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/lib -znow -zrelro " make -j1 -C /mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24:mumlib-2021-10-24 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" CMAKE_COMMAND='/mnt/disk/openwrt/staging_dir/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 ;
make[3]: Entering directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
make[4]: Entering directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
make[5]: Entering directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
[ 9%] Running C++ protocol buffer compiler on Mumble.proto
Scanning dependencies of target mumlib
make[5]: Leaving directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
make[5]: Entering directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
[ 18%] Building CXX object CMakeFiles/mumlib.dir/src/mumlib.cpp.o
[ 27%] Building CXX object CMakeFiles/mumlib.dir/src/Callback.cpp.o
[ 36%] Building CXX object CMakeFiles/mumlib.dir/src/CryptState.cpp.o
[ 45%] Building CXX object CMakeFiles/mumlib.dir/src/VarInt.cpp.o
[ 54%] Building CXX object CMakeFiles/mumlib.dir/src/Transport.cpp.o
[ 63%] Building CXX object CMakeFiles/mumlib.dir/src/Audio.cpp.o
[ 72%] Building CXX object CMakeFiles/mumlib.dir/Mumble.pb.cc.o
{standard input}: Assembler messages:
{standard input}:4054: Error: opcode not supported on this processor: mips32r2 (mips32r2) `sync'
CMakeFiles/mumlib.dir/build.make:148: recipe for target 'CMakeFiles/mumlib.dir/Mumble.pb.cc.o' failed
make[5]: *** [CMakeFiles/mumlib.dir/Mumble.pb.cc.o] Error 1
make[5]: Leaving directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/mumlib.dir/all' failed
make[4]: *** [CMakeFiles/mumlib.dir/all] Error 2
make[4]: Leaving directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
Makefile:83: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24'
Makefile:40: recipe for target '/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/.built' failed
make[2]: *** [/mnt/disk/openwrt/build_dir/target-mipsel_24kc_musl/mumlib-2021-10-24/.built] Error 2
make[2]: Leaving directory '/mnt/disk/openwrt/package/mmdvm-openwrt/mumlib'
time: package/mmdvm-openwrt/mumlib/compile#12.30#0.82#14.26
package/Makefile:107: recipe for target 'package/mmdvm-openwrt/mumlib/compile' failed
make[1]: *** [package/mmdvm-openwrt/mumlib/compile] Error 2
make[1]: Leaving directory '/mnt/disk/openwrt'
/mnt/disk/openwrt/include/toplevel.mk:216: recipe for target 'package/mumlib/compile' failed
make: *** [package/mumlib/compile] Error 2
When used to listen with multiple users, the audible voice becomes unclear. especially when multiple users are talking at the same time.
root@computerroom:~/mumpi-master/build#
cmake ..
CMake Error at CMakeLists.txt:8 (add_subdirectory):
The source directory
/root/mumpi-master/deps/mumlib
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:36 (add_subdirectory):
The source directory
/root/mumpi-master/deps/googletest
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/root/mumpi-master/build/CMakeFiles/CMakeOutput.log".
root@computerroom:~/mumpi-master/build#
``
I get as far as the 'make' command. When tryinh 'make' i get:
^ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’ #define SWAPPED(x) SWAP64(x) ^~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:198:20: note: in expansion of macro ‘SWAPPED’ block[i] = SWAPPED((SWAPPED(block[i]) << 1) | (SWAPPED(block[i + 1]) >> SHIFTBITS)); ^~~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q' e SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;}) ^ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’ #define SWAPPED(x) SWAP64(x) ^~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:199:28: note: in expansion of macro ‘SWAPPED’ block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87)); ^~~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’ #define SWAPPED(x) SWAP64(x) ^~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:199:37: note: in expansion of macro ‘SWAPPED’ block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87)); ^~~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:184:104: error: invalid 'asm': invalid operand for code 'q' e SWAP64(x) ({register uint64_t __out, __in = (x); __asm__("bswap %q0" : "=r"(__out) : "0"(__in)); __out;}) ^ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:185:20: note: in expansion of macro ‘SWAP64’ #define SWAPPED(x) SWAP64(x) ^~~~~~ /home/pi/mumpi/deps/mumlib/src/CryptState.cpp:199:28: note: in expansion of macro ‘SWAPPED’ block[BLOCKSIZE - 1] = SWAPPED((SWAPPED(block[BLOCKSIZE - 1]) << 1) ^ (carry * 0x87)); ^~~~~~~ deps/mumlib/CMakeFiles/mumlib.dir/build.make:118: recipe for target 'deps/mumlib/CMakeFiles/mumlib.dir/src/CryptState.cpp.o' failed make[2]: *** [deps/mumlib/CMakeFiles/mumlib.dir/src/CryptState.cpp.o] Error 1 CMakeFiles/Makefile2:162: recipe for target 'deps/mumlib/CMakeFiles/mumlib.dir/all' failed make[1]: *** [deps/mumlib/CMakeFiles/mumlib.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.