-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
error: linker command failed with exit code 1 #2033
Comments
Still haven't been able to figure this out, can anyone help me? |
sorry for late response. we are on vacation last week~. could u try #2042 |
Thanks @xingchensong for your response! I tried it and it worked! Now when I try to run a test script found in the documentation.
When I attempt to run the above script from the documentation, I'm encountering an ImportError related to the _wenet module. The error suggests there might be an issue with the expected symbols between the libwenet_api.dylib and libtorch_cpu.dylib. Here's the error for reference:
I've tried this on both Python 3.8 and 3.10, and I consistently get the same error. Based on the error message, it appears to be related to a discrepancy in the expected symbols between the provided library and the Torch library. Can you advise on the specific versions of the dependencies (especially PyTorch) you've used to successfully build from source? Additionally, any other configurations or environment setups that might be crucial would be greatly appreciated. Thank you immensely for your continued support and guidance. I can't tell you how much I appreciate your help Here is a list of my dependencies by running pip list: decorator 5.1.1 Also, for future reference should I open a new error or continue the thread here? Thanks so much. |
I think the current problem is relevant to the torch version, not itn (OR post_processor), @robin1001 any ideas? |
@xingchensong really what I am looking for is being able to stream. I do not need to use python but would like to. Is there any other method you think wouldn't give me this torch error? Should I just try different torch versions until it works? Thanks for your time an help! |
@Mddct could u do us a favor😁 |
could u try to add |
Thanks for your help! I ran:
And still got this error:
|
How about downgrade torch to 1.13.0 |
Thanks @xingchensong ! That worked! I can now stream! I edited the code to time the seconds it takes in between chunks and it is pretty slow. I have verified that the wav file is 16k, 16 bits. On CPU, is this normal? I was expecting it to be near the speed from the trimtail paper. Is there anything I can do to speed it up? For what I am doing every millisecond matters.
|
speed is highly corelate with hardware |
Describe the bug
While attempting to install Wenet Python bindings on macOS, I encountered a linker error indicating "Undefined symbols for architecture x86_64."
Error:
wenet::PostProcessor::InitITNResource(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&) in libpost_processor.a(post_processor.cc.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [api/libwenet_api.dylib] Error 1
make[2]: *** [api/CMakeFiles/wenet_api.dir/all] Error 2
make[1]: *** [CMakeFiles/_wenet.dir/rule] Error 2
make: *** [_wenet] Error 2
To Reproduce
(I had experienced an error before this that got resolved, that is why the steps look a little different.)
Steps to reproduce the behavior:
linker error related to "Undefined symbols for architecture x86_64."
Expected behavior
I expected the Python bindings for Wenet to install successfully without any linker errors.
OS: macOS
Python 3.8
The error appears to be a linker issue related to missing or misconfigured libraries. I was following the Wenet Python binding installation steps as outlined in the GitHub repository.
The text was updated successfully, but these errors were encountered: