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

ld: symbol(s) not found for architecture x86_64 #28

Open
mkarzhaubayeva opened this issue Jul 18, 2021 · 0 comments
Open

ld: symbol(s) not found for architecture x86_64 #28

mkarzhaubayeva opened this issue Jul 18, 2021 · 0 comments

Comments

@mkarzhaubayeva
Copy link

mkarzhaubayeva commented Jul 18, 2021

Hello all! I'm using MacBook Air on M1 and try to run darknet on OpenCL.
I've installed OpenCL (version 1.2) and clBLAS using brew install.

This is what I get after cmake:

CMake Warning at CMakeLists.txt:9 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.

Could not find a package configuration file provided by "OpenCV" with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.

Despite it, the building goes successfully, but the compilation is not.
[100%] Linking CXX executable darknet
ld: warning: ignoring file ../darknet_cl/clBLAS/libclBLAS.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 )
Undefined symbols for architecture x86_64:
"_clblasSetup", referenced from:
CLWarpper::CLWarpper(int) in cl_warpper.cpp.o
CLWarpper::CLWarpper(int) in cl_warpper.cpp.o
CLWarpper::CLWarpper() in cl_warpper.cpp.o
CLWarpper::CLWarpper() in cl_warpper.cpp.o
CLWarpper::CLWarpper(_cl_platform_id*, _cl_device_id*) in cl_warpper.cpp.o
CLWarpper::CLWarpper(_cl_platform_id*, _cl_device_id*) in cl_warpper.cpp.o
CLWarpper::createForIndexedGpu(int) in cl_warpper.cpp.o
...
"_clblasSgemm", referenced from:
gemm_gpu(int, int, int, int, int, float, CLArray, int, CLArray, int, float, CLArray, int) in gemm.cpp.o
"_clblasTeardown", referenced from:
CLWarpper::~CLWarpper() in cl_warpper.cpp.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[2]: *** [darknet] Error 1
make[1]: *** [CMakeFiles/darknet.dir/all] Error 2
make: *** [all] Error 2

Could you please help me to solve this issue?

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

1 participant