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

Where can I find webrtc_noise_gain_cpp.cpython-310-arm-linux-musleabihf.so #26

Open
goddade opened this issue Oct 18, 2024 · 4 comments

Comments

@goddade
Copy link

goddade commented Oct 18, 2024

Only linux so is found in pypi.

@synesthesiam
Copy link
Contributor

You will need to build from source for musl.

@goddade
Copy link
Author

goddade commented Oct 23, 2024

build.log
I'm building on openwrt and getting this error.
Any suggestions?

#python3 setup.py build_ext
running build_ext
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include -fPIC -I/usr/include/python3.10 -c -std=c++17 flagcheck.cpp -o flagcheck.o -std=c++17
building 'webrtc_noise_gain_cpp' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include -fPIC -DVERSION_INFO=1.2.5 -I/root/webrtc-noise-gain/webrtc-audio-processing -I/root/webrtc-noise-gain/webrtc-audio-processing/webrtc-audio-processing-1 -I/root/webrtc-noise-gain/webrtc-audio-processing/subprojects/abseil-cpp-20230125.1 -I/usr/lib/python3.10/site-packages/pybind11/include -I/usr/include/python3.10 -c -std=c++17 /root/webrtc-noise-gain/python.cpp -o build/temp.linux-armv7l-cpython-310/root/webrtc-noise-gain/python.o -fvisibility=hidden -g0 -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DNDEBUG -DWEBRTC_APM_DEBUG_DUMP=0 -D_GNU_SOURCE -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -DWEBRTC_POSIX -DWEBRTC_ARCH_LITTLE_ENDIAN -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_ARCH_ARM_FAMILY -DWEBRTC_ARCH_32_BITS -DWEBRTC_HAS_NEON -mfpu=neon
.....
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/Python-3.10.13=Python-3.10.13 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/include -fPIC -DVERSION_INFO=1.2.5 -I/root/webrtc-noise-gain/webrtc-audio-processing -I/root/webrtc-noise-gain/webrtc-audio-processing/webrtc-audio-processing-1 -I/root/webrtc-noise-gain/webrtc-audio-processing/subprojects/abseil-cpp-20230125.1 -I/usr/lib/python3.10/site-packages/pybind11/include -I/usr/include/python3.10 -c /root/webrtc-noise-gain/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/signal_processing/auto_corr_to_refl_coef.c -o build/temp.linux-armv7l-cpython-310/root/webrtc-noise-gain/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/signal_processing/auto_corr_to_refl_coef.o -fvisibility=hidden -g0 -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DNDEBUG -DWEBRTC_APM_DEBUG_DUMP=0 -D_GNU_SOURCE -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -DWEBRTC_POSIX -DWEBRTC_ARCH_LITTLE_ENDIAN -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_ARCH_ARM_FAMILY -DWEBRTC_ARCH_32_BITS -DWEBRTC_HAS_NEON -mfpu=neon
{standard input}: Assembler messages:
{standard input}:106: Error: selected processor does not support `qadd16 r6,r6,ip' in ARM mode
{standard input}:144: Error: selected processor does not support `qadd16 fp,r3,fp' in ARM mode
{standard input}:153: Error: selected processor does not support `qadd16 r6,r6,r3' in ARM mode
error: command '/usr/bin/gcc' failed with exit code 1

@synesthesiam
Copy link
Contributor

What kind of CPU is in the device?

@goddade
Copy link
Author

goddade commented Oct 24, 2024

Openwrt running in QEMU, cpu is cortex-a15

sudo qemu-system-arm -nographic -M virt -m 512M \
-smp 8 -cpu cortex-a15 \
-kernel openwrt-armvirt-zImage \

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