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

Installation fails when trying to build from source on MacOS #52975

Closed
skalaydzhiyski opened this issue Feb 27, 2021 · 1 comment
Closed

Installation fails when trying to build from source on MacOS #52975

skalaydzhiyski opened this issue Feb 27, 2021 · 1 comment
Labels
module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@skalaydzhiyski
Copy link

skalaydzhiyski commented Feb 27, 2021

I am trying to build Pytorch on macOS Catalina 10.15.7 19H114 x86_64, but when I reach 94% I get the following error after running python3 setup.py install with python 3.8.2

[ 94%] Building CXX object caffe2/CMakeFiles/scalar_tensor_test.dir/__/aten/src/ATen/test/scalar_tensor_test.cpp.o Undefined symbols for architecture x86_64: [ 94%] Built target ssa_test "___kmpc_end_serialized_parallel", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o "___kmpc_fork_call", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o "___kmpc_global_thread_num", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o "___kmpc_serialized_parallel", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o "_omp_get_max_threads", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o "_omp_get_num_threads", referenced from: _.omp_outlined. in test_parallel.cpp.o _.omp_outlined..33 in test_parallel.cpp.o _.omp_outlined..35 in test_parallel.cpp.o "_omp_get_thread_num", referenced from: _.omp_outlined. in test_parallel.cpp.o _.omp_outlined..33 in test_parallel.cpp.o _.omp_outlined..35 in test_parallel.cpp.o "_omp_in_parallel", referenced from: TestParallel_NestedParallel_Test::TestBody() in test_parallel.cpp.o TestParallel_Exceptions_Test::TestBody() in test_parallel.cpp.o ld: symbol(s) not found for architecture x86_64 [ 94%] Building CXX object caffe2/CMakeFiles/scalar_test.dir/__/aten/src/ATen/test/scalar_test.cpp.o clang: error: linker command failed with exit code 1 (use -v to see invocation)

Has anyone seen this before ?

cc @malfet @seemethere @walterddr

@H-Huang H-Huang added module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Mar 1, 2021
@skalaydzhiyski
Copy link
Author

Please close this issue, I have fixed it by using conda, as per the installation guide.
Something must have happened because my million different Python versions.

Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

2 participants