wzpan / wukong-robot

🤖 wukong-robot 是一个简单、灵活、优雅的中文语音对话机器人/智能音箱项目,支持ChatGPT多轮对话能力,还可能是首个支持脑机交互的开源智能音箱项目。
https://wukong.hahack.com/
MIT License
6.33k stars 1.34k forks source link

M2 Mac 在Snowboy make的时候遇到问题 #324

Closed Lawrenceeeeeeee closed 4 months ago

Lawrenceeeeeeee commented 7 months ago

确认已寻找过答案

我已确认在 Github issue 页、常见问题页、文档 中都查找过,没有找到类似问题和资料。我也没有 google / bing/ 百度 / duckduckgo 到相关解答。

安装方式

手动安装

操作系统

MacBook Air M2, Sonoma 14.2.1 (23C71)

问题描述

具体说明下问题

snowboy makefile时遇到了这样的warning

% make
swig -I../../ -c++ -python -o snowboy-detect-swig.cc snowboy-detect-swig.i
clang++ -I/Users/lawrence/miniforge3/envs/wukong/include/python3.9 -I/Users/lawrence/miniforge3/envs/wukong/include/python3.9 -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -c snowboy-detect-swig.cc
clang++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0  -bundle -flat_namespace -undefined suppress snowboy-detect-swig.o \
    ../..//lib/osx/libsnowboy-detect.a -L/Users/lawrence/miniforge3/envs/wukong/lib/python3.9/config-3.9-darwin -ldl -framework CoreFoundation -lm -ldl -framework Accelerate -o _snowboydetect.so
ld: warning: -undefined suppress is deprecated
ld: warning: -undefined suppress is deprecated
ld: warning: ignoring duplicate libraries: '-ldl'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[48](snowboy-frontend-test.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[47](tdereverb_x.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[46](nsx_core.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[45](ns3.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[44](noise_suppression_x.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[43](frontend-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[42](frontend-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[41](digital_agc.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[40](analog_agc.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[39](agc.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[38](license-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[37](snowboy-detect.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[36](vad-state-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[35](vad-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[34](raw-nnet-vad-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[33](raw-energy-vad-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[32](snowboy-utils.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[31](snowboy-options.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[30](snowboy-math.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[29](snowboy-io.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[28](snowboy-debug.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[27](pipeline-vad.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[26](pipeline-nnet-forward.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[25](pipeline-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[24](pipeline-detect.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[23](intercept-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[22](eavesdrop-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[21](nnet-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[20](nnet-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[19](nnet-component.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[18](universal-detect-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[17](template-detect-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[16](template-container.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[15](vector-wrapper.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[14](matrix-wrapper.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[13](srfft.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[12](mfcc-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[11](framer-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[10](fft-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[9](feat-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[8](dtw-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[7](wave-audio.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[6](wave-audio-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[5](vqe-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[4](gain-control-stream.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[3](audio-lib.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '../..//lib/osx/libsnowboy-detect.a[2](afe-stream.o)': found architecture 'x86_64', required architecture 'arm64'
wzpan commented 4 months ago

snowboy 不支持 M 系列芯片。